wait until the next page loads.

54 views
Skip to first unread message

Bharath Raj

unread,
Aug 10, 2012, 3:49:18 AM8/10/12
to webd...@googlegroups.com
Hi,

I have clicked on a button login and the page is loading for logiing in some time. After it loads one window appears,there i have to click on a button which opens the webpage.

So after clicking on login button, what is the wait command that I have to use until window appears.




Mike Riley

unread,
Aug 11, 2012, 11:03:38 PM8/11/12
to webd...@googlegroups.com
Are you saying a new window opens, or just another page is displayed?

If the former is the case, wait for the window to show up, switch to the window, and wait for the button to be present that you need to click on.

If the latter is the case, you simply need to wait for the button to appear on the new page.  I use a wrapper routine for those cases that verifies the right page is loaded by checking the title, so it does the click and then waits for the expected title.  If another title shows up that is an error that causes an exception to be thrown.

Mike

Mike
Reply all
Reply to author
Forward
0 new messages