0

Appium Server Log:

[ADB] Getting package info for 'io.appium.unlock' [ADB] Running 'C:\Users\ab.chauhan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 93e6ecca0903 shell dumpsys package io.appium.unlock' [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0') [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8202 [ADB] Forwarding system: 8202 to device: 6790 [ADB] Running 'C:\Users\ab.chauhan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 93e6ecca0903 forward tcp:8202 tcp:6790' [ADB] Running 'C:\Users\ab.chauhan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 93e6ecca0903 shell rm -rf /data/local/tmp/strings.json' [AndroidDriver] Extracting strings from apk [AndroidDriver] C:\Users\ab.chauhan\AppData\Local\Android\Sdk\platform-tools\AceApp.apk [AndroidDriver] undefined [AndroidDriver] C:\Users\AB1636~1.CHA\AppData\Local\Temp\"com.ionicframework.aceappclient150562" [ADB] Extracting strings for language: default [ADB] Successfully extracted 27 strings from 'C:\Users\ab.chauhan\AppData\Local\Android\Sdk\platform-tools\AceApp.apk' resources for '(default)' configuration

Code:

        DesiredCapabilities cap = new DesiredCapabilities();
        cap.setCapability("platformName", "Android");

        cap.setCapability("deviceName", device);
        cap.setCapability(CapabilityType.VERSION,version);
        cap.setCapability("app", "C:\\Users\\ab.chauhan\\AppData\\Local\\Android\\Sdk\\platform-tools\\AceApp.apk");

       cap.setCapability("automationName", cfg.getAutomationName());
        cap.setCapability ("appPackage", cfg.getAppPackage());
        cap.setCapability ("appActivity", cfg.getAppActivity());
        cap.setCapability("noReset", true);

        driver = new AndroidDriver<MobileElement>(new URL(cfg.getApplicationUrl()), cap);
        System.out.println(driver);

        driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.