How do you handle Multiple windows in your application?
Answer Posted / suresh777
Set<String> parent=driver.getWindowHandles();
Object[] child=parent.toArray();
driver.switchTo().window((String) child[1]);
Here we have handle at any number of Windows
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
If the test case frame contains several test cases, how can one execute just the selected one of those test cases?
Tell us can captcha and bar code reader be automated by using selenium?
What is the alternate way to click on the login button?
What programming languages does Selenium use?
What is testng?
How you are integrating cucumber feature files with step files?
How do I start the browser using WebDriver?
What’s new in selenium 3.0?
What is testng assert and list out some common assertions supported by testng?
How to test ajax application with selenium?
Mention why to choose python over java in selenium?
For database testing in selenium webdriver what api is required?
What are some advantages of selenium grid?
How to handle frame in webdriver?
What is parameterized testing in testng?