How will you handle working with multiple windows in selenium?



How will you handle working with multiple windows in selenium?..

Answer / Ravindra Kumar Chaudhary

Handling multiple windows in Selenium can be achieved by using the `getWindowHandles()` method, which returns a set of all open window handles. To switch between them, use the `switchTo().window(String windowHandle)` method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What programming languages does Selenium use?

1 Answers  


To generate pdf reports mention what java api is required?

1 Answers  


How can we handle window ui elements and window pop ups using selenium?

1 Answers  


How to write in a text box using Selenium?

1 Answers  


Explain how to assert text of webpage using selenium 2.0?

1 Answers  


What are the types of listeners in testng?

1 Answers  


What is the difference between “type” and “type and wait for” command?

1 Answers  


Why should selenium be selected as a test program?

1 Answers  


Why testers should opt for selenium and not qtp? Selenium is more popular than qtp as

1 Answers  


What does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.

1 Answers  


What is the use of @listener annotation in testng?

1 Answers  


Tell us can captcha and bar code reader be automated by using selenium?

1 Answers  


Categories