justGoscha
justGoscha

Reputation: 24145

How to switch window in NodeJS WebDriver?

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

Answers (1)

justGoscha
justGoscha

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

Related Questions