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 much does selenium license cost per client machine?
What are the languages supported by webdriver?
How to verify if the checkbox/radio is checked or not?
What are the uses of findelement() and findelements()?
List some of the test types that are supported by selenium.
What are the different exceptions you have faced in selenium webdriver?
Why should Selenium be selected as a testing tool?
What are the important features of selenium ide?
How to get an attribute value using selenium webdriver?
What is Selenese?
Explain junit. What are annotations?
Explain what is the difference between find elements () and find element ()?
What is an explicit wait in selenium?
How will you use selenium to upload a file?
How does one store the current url using selenium 2.0?