Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
lorenzobrion
Posts : 1
Join date : 2011-10-19

Wait for two possible results Empty Wait for two possible results

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.
Thanks.
avatar
ashish_techie
Amateur
Amateur
Posts : 73
Join date : 2011-08-09

Wait for two possible results Empty Re: Wait for two possible results

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.

Regards
Ashish
9888179981
For Selenium training and videos over 55 hours, visit
www.qtpselenium.com/selenium-training
pushpendra
pushpendra
Active particpant
Active particpant
Posts : 23
Join date : 2011-09-26

Wait for two possible results Empty Re: Wait for two possible results

Mon Nov 07, 2011 4:33 pm
Hi,
i think you need to wait till complete page loaded .
use
selenium.waitForPageToLoad("80000");

and after that there is a method isTextPresent();

which you can use .

all d bst
Sponsored content

Wait for two possible results Empty Re: Wait for two possible results

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