Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98321

How to open a new blank window using webdriver in java.

$
0
0

I am using (Webdriver) driver.close(to close the browser instead of using driver.quit). After the browser window is closed i am not able to use driver.get(url) -which throws unreachableBrowserException.

As a work around i am trying to get windowHandles.size(), when it is zero i want to open a new blank window and then use driver.get(url).

But i cound'not find any methods to open a blank window in Webdriver class.


Viewing all articles
Browse latest Browse all 98321

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>