In the next example we are going to open up two pop-up windows and move between them and theparent window as it completes its steps.
Start Selenium IDE and go to Chapter(Getting Started with Selenium IDE)on the website.
Click on the Click this link to launch another window link. This will launch a pop-up window.
Assert the text on the page. We do this by right-clicking and selecting assert Text.
Go back to the parent window and click on the link to launch the second pop-up window.
Verify the text on the page.
Move to the first pop-up window and close it using the close link. As before, be aware of click And Wait instead of click.
Move to the second pop-up window and close it using the close link.
Move back to the parent window and verify an element on that page.
Run your test and watch how it moves between the windows. When complete it should look like the following screen shot:
What just happened?
We just had a look at creating a test that can move between multiple windows. We saw how we can move between the child windows and its parent window as though we were a user.
Selenium Related Interview Questions
|SILK TEST Interview Questions||QTP Interview Questions|
|JMeter Interview Questions||Automation Testing Interview Questions|
|Software testing Interview Questions||JUnit Interview Questions|
|TestNG Interview Questions||SAP Testing Interview Questions|
|Selenium WebDriver Interview Questions||Selenium IDE Interview Questions|
|QUnit Testing Interview Questions||Performance Testing Interview Questions|
|Hadoop Testing Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.