Created
August 24, 2018 20:56
-
-
Save nikolay-advolodkin/8fbb967d2b20b20245565ade99e618a3 to your computer and use it in GitHub Desktop.
How to set browerVersion and platformName for ChromeOptions
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.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