Last active
September 27, 2016 18:22
-
-
Save jesuscast/8b9daa11099e2b9729f1c98b6c5876d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chromeCapabilities, chromeOptions, driver; | |
chromeCapabilities = selenium.Capabilities.chrome(); | |
chromeOptions = { | |
'args': ['--load-extension=yourExtensionFolder'] | |
}; | |
chromeCapabilities.set('chromeOptions', chromeOptions); | |
driver = new selenium.Builder().usingServer('http://x.x.x.x:4444/wd/hub').withCapabilities(chromeCapabilities).build(); | |
driver.getWindowHandle(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment