Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created July 9, 2017 20:56
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 angelovstanton/ce49c6ff9a3058b0899f8513a7444046 to your computer and use it in GitHub Desktop.
Save angelovstanton/ce49c6ff9a3058b0899f8513a7444046 to your computer and use it in GitHub Desktop.
private string _username = "antonangelov2";
private string _authkey = "yxMDqyW62chvy3QycWRb";
private IWebDriver _driver;
[SetUp]
public void SetupTest()
{
var caps = new DesiredCapabilities();
caps.SetCapability("browserstack.debug", "true");
caps.SetCapability("build", "1.0");
caps.SetCapability("os", "Windows");
caps.SetCapability("os_version", "8.1");
caps.SetCapability("browser", "Firefox");
caps.SetCapability("browser_version", "54.0");
caps.SetCapability("resolution", "1366x768");
caps.SetCapability("browserstack.video", "true");
caps.SetCapability("build", "version1");
caps.SetCapability("project", "AutomateThePlanet");
caps.SetCapability("browserstack.user", _username);
caps.SetCapability("browserstack.key", _authkey);
_driver = new RemoteWebDriver(new Uri("http://hub-cloud.browserstack.com/wd/hub/"), caps, TimeSpan.FromSeconds(180));
}
[TearDown]
public void TeardownTest()
{
_driver.Quit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment