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
Write the code to right click an element in selenium?
How to scroll down a page using javascript in selenium?
Explain me how many types of webdriver apis are available in selenium?
Mention what are the types of listeners in testng?
Which are the browsers supported by selenium rc?
What are some limitations of selenium?
How to delete browser cookies with selenium web driver?
What is the difference between assert and verify in selenium?
What are the different components of selenium?
How does one calculate the number of rows using selenium 2.0?
Tell us what are the two modes of views in selenium ide?
How can we submit a form in selenium?
How you can switch between frames?
How can I read test data from excels?
Why selenium rc is used?