Last active
December 19, 2015 09:49
-
-
Save spg/5935434 to your computer and use it in GitHub Desktop.
Running ChromeDriver against a DevMode GWT application
This file contains 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
@Provides | |
@Singleton | |
protected WebDriver getDefaultWebDriver() throws IOException { | |
ChromeOptions chromeOptions = new ChromeOptions(); | |
// to find the location of your gwtDev.plugin: go to chrome://plugins -> + Details | |
chromeOptions.addArguments("--load-plugin=/Users/Simon/Library/Application " + | |
"Support/Google/Chrome/Default/Extensions/jpjpnpmbddbjkfaccnmhnkdgjideieim/1.0.11357_0/Darwin-gcc3/gwtDev.plugin"); | |
ChromeDriver chromeDriver = new ChromeDriver(chromeOptions); | |
return chromeDriver; | |
} | |
**** and make sure to add the GWT Dev plugin query params at the end of the remote url: | |
http://127.0.0.1:8888/sceneverse.html?gwt.codesvr=127.0.0.1:9997 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment