Display results as :

Rechercher Advanced Search

Latest topics

Wait for two possible results

View previous topic View next topic Go down

Wait for two possible results

Post by lorenzobrion on Wed Oct 19, 2011 11:48 pm

I'm still a newbie with Selenium and trying to learn the basics.
The issue I have right now is this:
when the user clicks a button the page is refreshed, but depending on which options the user has selected, when the page is loading it can show two possible textboxes (one or another, not both).
I've been looking like crazy for a solution and found the common ways to wait for a certain element to be present.
What I need to do is wait until one of those two elements is present and I don't know how to do this.
Hope somebody can help.


Posts : 1
Join date : 2011-10-19

Back to top Go down

Re: Wait for two possible results

Post by ashish_techie on Fri Nov 04, 2011 9:20 pm

Using javascript executer class of selenium you can wait for the full page to load, you may have to write some java code.

For Selenium training and videos over 55 hours, visit


Posts : 73
Join date : 2011-08-09

Back to top Go down

Re: Wait for two possible results

Post by pushpendra on Mon Nov 07, 2011 4:33 pm

i think you need to wait till complete page loaded .

and after that there is a method isTextPresent();

which you can use .

all d bst
Active particpant
Active particpant

Posts : 23
Join date : 2011-09-26

Back to top Go down

Re: Wait for two possible results

Post by Sponsored content

Sponsored content

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum