[EMAIL PROTECTED] wrote:
I need selenium to select a value in the ajax - generated select list
(step 3 in sequence below) after selenium 'types' first few
characters of the word into associated text input field
Hi Jake. Long time no see.
After Selenium has executed a command, it can be set to wait until some
condition is true before continuing. Basically, it will poll until the
"readyToContinue" condition is true. Typically the condition is that a
new page has loaded, and is set up by appending "AndWait" to a command.
However, a while back David Kemp added the "waitForValue" command, which
will cause Selenium to wait (ie. poll) until a certain input element has
a specified value. This can be used to wait until an asynchronous event
(ie. AJAX) has populated a form field.
(Proviso: "waitForValue" only does exact matching of the value right now
... but it could easily be changed to use PatternMatcher.)
Take a look at the source for doWaitForValue(); it's pretty
straightforward. If it's not suitable for your purposes, it should be
relatively easy to roll your own doWaitForSomethingElse() function.
Hope that helps.
--
cheers, MikeW http://www.dogbiscuit.org/mdub/
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users