我正在尝试在Android / IOS的ucelabs中运行selenium webdriver.io,但是脚本在ucelabs中失败了,建议的最佳配置功能是什么?
答案 0 :(得分:0)
For Android:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("deviceName", "Samsung Galaxy S4 Emulator");
capabilities.setCapability("platformVersion", "4.4");
capabilities.setCapability("app", "souce-storage:***.apk");
capabilities.setCapability("browserName", "");
capabilities.setCapability("deviceOrientation", "portrait");
capabilities.setCapability("appiumVersion", "1.5.3");
driver = new AndroidDriver<>(new URL(URL), capabilities);