Reputation: 24145
How do I get a window handle of a new window that opens up in WebDriverJS when there is no getWindowHandles()
function?
I need to switchTo
a new window to login with Facebook for a test.
Upvotes: 1
Views: 1546
Reputation: 24145
The function is called getAllWindowHandles()
in NodeJS Webdriver see here: http://selenium.googlecode.com/git/docs/api/javascript/class_webdriver_WebDriver.html
Upvotes: 1