Esempio n. 1
0
 public DesiredCapabilities GetAndroidWebDesiredCapability()
 {
     capabilities_.SetCapability("username", env_.GetEnvironmentInfo().USER_NAME);
     capabilities_.SetCapability("accessKey", env_.GetEnvironmentInfo().API_KEY);
     capabilities_.SetCapability("sessionName", "[C#] Android Web");
     capabilities_.SetCapability("sessionDescription", "testing selenium web with c# on android device");
     capabilities_.SetCapability("deviceOrientation", "portrait");
     capabilities_.SetCapability("captureScreenshots", true);
     capabilities_.SetCapability("deviceGroup", "KOBITON");
     capabilities_.SetCapability("browserName", "chrome");
     capabilities_.SetCapability("platformName", "Android");
     capabilities_.SetCapability("deviceName", "*");
     capabilities_.SetCapability("platformVersion", "*");
     return(capabilities_);
 }
Esempio n. 2
0
 public RemoteWebDriver CreateWebDriver(DesiredCapabilities capability)
 {
     driver_ = new RemoteWebDriver(env_.GetEnvironmentInfo().API_URL, capability, System.TimeSpan.FromMilliseconds(TIMEOUT));
     driver_.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromMilliseconds(IMPLICIT_WAIT));
     return(driver_);
 }