Search This Blog

August 11, 2016

How to handle multiple windows in Selenium?

If new members work on automated tests via our Selenium test framework, the common question they have is how to handle the additional window popbox if we click the url in the current window ?

It is pretty easy.  Using the following C # code works perfectly.

                      var windows = _driver.WindowHandles;

                      // do something such as Assertion.

1 comment:

akhilapriya404 said...

The information which you have provided is very good. It is very useful who is looking for selenium Online Training Bangalore