- lorenzobrion
- Posts : 1
Join date : 2011-10-19
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.
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.
- ashish_techieAmateur
- Posts : 73
Join date : 2011-08-09
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
Regards
Ashish
9888179981
For Selenium training and videos over 55 hours, visit
www.qtpselenium.com/selenium-training
- pushpendraActive particpant
- Posts : 23
Join date : 2011-09-26
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
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
Permissions in this forum:
You cannot reply to topics in this forum