Created
February 28, 2016 19:04
-
-
Save angelovstanton/c73f6b6f7a740763e823 to your computer and use it in GitHub Desktop.
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
ChromeOptions options = new ChromeOptions(); | |
options.AddArguments("load-extension=/pathTo/extension"); | |
DesiredCapabilities capabilities = new DesiredCapabilities(); | |
capabilities.SetCapability(ChromeOptions.Capability, options); | |
DesiredCapabilities dc = DesiredCapabilities.Chrome(); | |
dc.SetCapability(ChromeOptions.Capability, options); | |
IWebDriver driver = new RemoteWebDriver(dc); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment