Exemplo n.º 1
0
 public void SetUp()
 {
     var configuration = new SessionConfiguration { Driver = typeof(SauceLabsDriver) };
     var desiredCapabilites = new DesiredCapabilities("chrome", "46", Platform.CurrentPlatform);
     desiredCapabilites.SetCapability("platform", "Windows 7");
     desiredCapabilites.SetCapability("username", "sebllabres");
     desiredCapabilites.SetCapability("accessKey", "892fdc2f-7409-4979-a592-e5e3d3ee73bc");
     desiredCapabilites.SetCapability("name", TestContext.CurrentContext.Test.Name);
     _driver = new SauceLabsDriver(Browser.Parse(ConfigurationSettings.AppSettings["browser"]), desiredCapabilites, new CustomRemoteDriver(new Uri("http://ondemand.saucelabs.com:80/wd/hub"), desiredCapabilites));
     _browserSession = new BrowserSession(configuration, _driver);
     _browserSession.MaximiseWindow();
 }
Exemplo n.º 2
0
        public static void Start()
        {
            var sessionConfiguration = new SessionConfiguration
            {
                AppHost = "localhost/lateseats",
                Port = 80,
                Driver = typeof(SeleniumWebDriver)
            };
            Browser = new BrowserSession(sessionConfiguration);
            Browser.MaximiseWindow();

            ScenarioContext.Current.Add("Browser", Browser);
        }