|
It is possible to use Selenium on pages that do dynamic content loading. It requires a lot of waiting for elements with known IDs or consistent XPaths to be present before proceeding to the next step. At my company we've developed a wrapper toolkit around Selenium (it can use other drivers, too, but I've only experience with the Selenium part) which allows us to write automated tests against that type of site more easily. Unfortunately I can't give you it but I recommend you do something similar, I don't think there are any automated web testing kits that make it straightforward.
Testing this kind of site will always be slow and unreliable, as with any UI testing and particularly network-dependent testing. But it can be automated with Selenium.
|
|
|
|
|
That's what I was trying (I believe). I had it load the login page, and was able to get it to fill out the user id/password, and submit.
I then used the F12 tool in Internet Explorer to find the ids of objects that would load after login, and I put in a wait for those, but it always fails. Maybe I'm not waiting long enough like you said. I'll increase the timeout and see what happens.
|
|
|
|
|
In some cases, I've had to skip the built in wait and use the execute javascript on the page in a loop in order to find elements and execute handlers that weren't triggered on a selenium click for some reason.
Also, I've found a series of short waits in a loop to be more reliable than one longer wait.
|
|
|
|
|
Take a look at http://www.sikuli.org/[^]. It may help you automate things better if selenium is not an option.
--
"My software never has bugs. It just develops random features."
|
|
|
|
|
A Halo for NGC 6164 [^]
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
Those who seek perfection will only find imperfection
nils illegitimus carborundum
me, me, me
me, in pictures
|
|
|
|
|
Cool, looks like a Star Trek being,
|
|
|
|
|
Odd thing happened this morning, out of the corner of my eye I see a small dark creature whiz by about a foot off the ground. Turns out it was a mouse our cat KC was attempting to teach to fly. He was determined to be successful as he kept at it, scooping the hapless creature up and letting it fly but it wouldn’t catch on and maintain flight.
After reading Griff’s post [^]yesterday and reading the post just below this one, I have the feeling the cats and the rodents are planning a takeover. Coincidence? Let’s hope.
It was broke, so I fixed it.
|
|
|
|
|
No, just Dij's post about the method of flying has many readers and followers in the catinternez. Don't worry they only share fun information and nothing about taking over the world, or so I've heard.
Microsoft ... the only place where VARIANT_TRUE != true
|
|
|
|
|
|
Lies !
Just look deep in those cute little eyes, deep, deeper, look deeper human slave :evil laugh:
Microsoft ... the only place where VARIANT_TRUE != true
|
|
|
|
|
Wait until Tentacles [^]kick in...
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
|
Kitty got a surprise there.
The report of my death was an exaggeration - Mark Twain
Simply Elegant Designs JimmyRopes Designs
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
That would suck.
It was broke, so I fixed it.
|
|
|
|
|
So I'm tapping away at my keyboard about 20 minutes ago, working on some CSS buttons for one of my own websites.
Just about to save, update some HTML, and refresh my browser when...
...wait for it...
...the whole suburb loses power. Complete blackout and I can't see a thing.
It's not even raining, let alone storming with lightning!
So the family grabs some candles, lights them, and we all laugh a bit, but then a few minutes later the power comes back on.
What was that all about?!
modified 22-May-14 7:22am.
|
|
|
|
|
Must have been the Spanish Inquisition
|
|
|
|
|
Or the butterflies in Peru!
|
|
|
|
|
Exactly! Nobody expects the Spanish inquisition!
Anything that is unrelated to elephants is irrelephant Anonymous ----- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 ----- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
Probably a solar flare playing havoc with power before it melts us all tomorrow. Either that, or a power cut.
Regards,
Rob Philpott.
|
|
|
|
|
Quick, change the CSS back to the way it was before and act like you don't know what happened!!!
[EDIT] And next time, try to be a more careful coder! [EDIT]
Anything that is unrelated to elephants is irrelephant Anonymous ----- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 ----- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
But did you save? You said you were just about to....
|
|
|
|
|
Nope.
But fortunately I save regularly and only lost about 5 mins of work.
|
|
|
|
|
So you're living up to your username. That's good.
What is this talk of release? I do not release software. My software escapes leaving a bloody trail of designers and quality assurance people in its wake.
|
|
|
|
|
But being careful doesn't mean I don't make mistakes!
It just means that I'm more at fault when I do make them...
|
|
|
|
|
Nope. If he was being careful he'd either be using a laptop or have an UPS attached to his desktop; in either case he wouldn't've lost power.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|