Skip to content

Instantly share code, notes, and snippets.

@nikolay-advolodkin
Created August 24, 2018 20:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikolay-advolodkin/8fbb967d2b20b20245565ade99e618a3 to your computer and use it in GitHub Desktop.
Save nikolay-advolodkin/8fbb967d2b20b20245565ade99e618a3 to your computer and use it in GitHub Desktop.
How to set browerVersion and platformName for ChromeOptions
ChromeOptions options = new ChromeOptions();
options.UseSpecCompliantProtocol = true;
options.BrowserVersion = "latest";
options.PlatformName = "Windows 10";
Driver = new RemoteWebDriver(new Uri("http://ondemand.saucelabs.com:80/wd/hub"), options.ToCapabilities(),
TimeSpan.FromSeconds(600));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment