Ejemplo n.º 1
0
 public override void InitialiseDriver(DesiredCapabilities caps, int waitSecs)
 {
     SauceLabsFlowController.ControlFlow();
     try {
         Driver = new SauceryRemoteWebDriver(new Uri(SauceryConstants.SAUCELABS_HUB), caps);
         Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(waitSecs);
     } catch (Exception ex) {
         Console.WriteLine(ex.Message);
     }
 }
Ejemplo n.º 2
0
 public override void InitialiseDriver(DriverOptions opts, int waitSecs)
 {
     SauceLabsFlowController.ControlFlow();
     try {
         //Console.WriteLine("About to create Driver");
         Driver = new SauceryRemoteWebDriver(new Uri(SauceOpsConstants.SAUCELABS_HUB), opts.ToCapabilities());
         Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(waitSecs);
     } catch (Exception ex) {
         Console.WriteLine(ex.Message);
     }
 }