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
Define selenium 2.x?
Can you explain the framework which you have used in your selenium project?
How can we move to nth child element using css selector?
How can we submit a form in selenium?
What are the operating systems supported by selenium webdriver?
What is heightened privileges browsers?
How many types of waits in selenium?
How does testng allow you to state dependencies? Explain it with an example.
Why should selenium be selected as a test tool?
Which are the browsers supported by selenium rc?
Explain me how to check a checkbox in selenium?
How do you simulate scroll down action?
What are core extension?
How to check which option in the dropdown is selected?
What will be the different kinds of locators in selenium?