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 programming languages are you able to use in selenium rc?
How to capture screenshot in selenium webdriver?
What is fluent wait in selenium webdriver?
Name an api used for reading and writing data to excel files?
Explain the different kinds of frameworks in automation?
How do I launch the browser using webdriver?
What is a data driven framework?
How to find the xpath of web table elements.in chrome or internet explorer.or without using fire bug.?
List the parameters that one needs to pass in selenium.
When should I use Selenium IDE?
My application uses ajax heavily how do I use selenium rc to work with ajax operations?
How to assert title of the web page?
What is junit annotations and what are different types of annotations which are useful?
Mention what is selenium 3.0?
What is the automation test?