Skip to content

Instantly share code, notes, and snippets.

@jimevans
Last active September 6, 2019 18:49
Show Gist options
  • Save jimevans/f33be4b7ee5db0074fcd3e927e39d927 to your computer and use it in GitHub Desktop.
Save jimevans/f33be4b7ee5db0074fcd3e927e39d927 to your computer and use it in GitHub Desktop.
Dictionary<string, object> browserStackOptions = new Dictionary<string, object>();
browserStackOptions.Add("os", "Windows");
browserStackOptions.Add("osVersion", "10");
browserStackOptions.Add("resolution", "1024x768");
browserStackOptions.Add("userName", "barancev");
browserStackOptions.Add("accessKey", "xxx");
browserStackOptions.Add("sessionName", "Bstack-[C_sharp] Sample Test");
ChromeOptions options = new ChromeOptions();
options.BrowserVersion = "62.0";
options.AddAdditionalOption("bstack:options", browserStackOptions);
driver = new RemoteWebDriver(new Uri("http://hub-cloud.browserstack.com/wd/hub/"), options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment