Skip to content

Instantly share code, notes, and snippets.

@spg
Last active December 19, 2015 09:49
Show Gist options
  • Save spg/5935434 to your computer and use it in GitHub Desktop.
Save spg/5935434 to your computer and use it in GitHub Desktop.
Running ChromeDriver against a DevMode GWT application
@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