Skip to content

Instantly share code, notes, and snippets.

@kmaria
Last active July 31, 2018 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmaria/1a61ce6bfa4064fc73c72d5f842992dd to your computer and use it in GitHub Desktop.
Save kmaria/1a61ce6bfa4064fc73c72d5f842992dd to your computer and use it in GitHub Desktop.
System.setProperty("webdriver.gecko.driver", SELENIUM_EXECUTABLE_DIR_NAME + SELENIUM_GECKO_DRIVER_EXECUTABLE);
DesiredCapabilities dc = DesiredCapabilities.firefox();
FirefoxProfile profile = new FirefoxProfile();
dc.setCapability(FirefoxDriver.PROFILE, profile);
dc.setCapability(FirefoxDriver.SystemProperty.DRIVER_USE_MARIONETTE, "true");
Webdriver driver = new FirefoxDriver(dc);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment