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
What are selenium tests normally named (as displayed at the top of each test when viewed from within a browser)?
How can we check if an element is getting displayed on a web page?
How will u write page object models and data driven model.
Give ide's main parts and components?
How to scroll down to a particular element?
How to check the checkbox or radio button is selected?
What api is required for database testing in selenium webdriver?
What are the types of waits available in selenium webdriver?
Tell me what kind of mouse actions can be performed in selenium?
List some advantages of test automation?
sorting java array
How can we find all the links on a web page?
Can we use selenium rc for tests driving on two different browsers on one operating system without selenium grid?
How can you fetch an attribute from an element? How to retrieve typed text from a textbox?
Which web driver implementation is the fastest?