Webdriver.io для Android/IOS saucelabs

#saucelabs

#saucelabs

Вопрос:

Я пытаюсь запустить selenium webdriver.io в saucelabs для Android / IOS, но скрипты не работают в saucelabs, какие оптимальные возможности конфигурации рекомендуются?

Ответ №1:

 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);