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
How to write in a text box using Selenium?
Why and how will you use an excel sheet in your project?
How do you verify if the checkbox/radio is checked or not?
Does selenium support mobile internet testing?
what are the testing frameworks used in selenium?
What is the main difference between web-driver and rc?
How to do file upload in selenium?
How you can use recovery scenario with selenium?
Mention what are the challenges in handling ajax call in selenium webdriver?
What are junit annotations?
How can we fetch the page source in selenium?
Can we test apis or web services using selenium webdriver?
Is selenium capable of handling windows pop-ups?
What are the different types of wait statements in selenium webdriver? Or how do you achieve synchronization in webdriver?
What kind of mouse actions can be performed in selenium?