-
Notifications
You must be signed in to change notification settings - Fork 55
Zebrunner Hub capabilities
Alexey Khursevich edited this page Mar 1, 2021
·
2 revisions
Zebrunner Hub uses standard Selenium desired capabilities mechanism to resolve browser/device for testing.
Web browser session:
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("platform", "*");
caps.setCapability("browserName", "chrome");
caps.setCapability("browserVersion", "88.0");
caps.setCapability("enableVNC", true);
WebDriver driver = new RemoteWebDriver(new URL("https://<user>:<password>@hub.zebrunner.com/wd/hub"), caps);
// Test here
driver.quit();
Mobile browser session:
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("platform", "ANDROID");
caps.setCapability("browserName", "chrome");
caps.setCapability("browserVersion", "mobile-86.0");
caps.setCapability("skin", "WXGA720");
caps.setCapability("enableVNC", true);
WebDriver driver = new RemoteWebDriver(new URL("https://<user>:<password>@hub.zebrunner.com/wd/hub"), caps);
// Test here
driver.quit();
Mobile native session:
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("platform", "ANDROID");
caps.setCapability("platformVersion", "9.0");
caps.setCapability("deviceName", "android");
caps.setCapability("skin", "WXGA720");
caps.setCapability("app", "https://qaprosoft.s3-us-west-2.amazonaws.com/carinademoexample.apk");
caps.setCapability("enableVNC", true);
WebDriver driver = new RemoteWebDriver(new URL("https://<user>:<password>@hub.zebrunner.com/wd/hub"), caps);
// Test here
driver.quit();