[info] [Appium] Welcome to Appium v1.8.1 [info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"desiredCapabilities":{"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"Moto C Plus","platformName":"Android","platformVersion":"7.0"},"capabilities":{"desiredCapabilities":{"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"Moto C Plus","platformName":"Android","platformVersion":"7.0"},"firstMatch":[{"platformName":"android"}]}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"Moto C Plus","platformName":"Android","platformVersion":"7.0"},null,{"desiredCapabilities":{"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"Moto C Plus","platformName":"Android","platformVersion":"7.0"},"firstMatch":[{"platformName":"android"}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1534225358827 (11:12:38 GMT+0530 (India Standard Time)) [warn] [Appium] Could not parse W3C capabilities: 'deviceName' can't be blank. Falling back to JSONWP protocol. [warn] [Appium] The following capabilities were provided in the JSONWP desired capabilities that are missing in W3C capabilities: ["appActivity","appPackage","deviceName","platformName","platformVersion"]. Falling back to JSONWP protocol. [warn] [Appium] Consider setting 'automationName' capability to 'uiautomator2' on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor. [info] [Appium] Creating new AndroidDriver (v2.7.0) session [info] [Appium] Capabilities: [info] [Appium] appActivity: com.android.launcher3.GoogleNowPanel [info] [Appium] appPackage: com.motorola.launcher3 [info] [Appium] deviceName: Moto C Plus [info] [Appium] platformName: Android [info] [Appium] platformVersion: 7.0 [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"appActivity":"com.android... [info] [BaseDriver] Session created with session id: 6b102533-f273-49bc-ba6a-5a5af93aa131 [debug] [AndroidDriver] Getting Java version[info] [AndroidDriver] Java version is: 1.8.0_151 [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices...[debug] [ADB] 1 device(s) connected [info] [AndroidDriver] Looking for a device with Android '7.0' [debug] [ADB] Setting device id to ZW2224KZ5W [info] [ADB] Getting device platform version [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 7.0 [info] [AndroidDriver] Using device: ZW2224KZ5W [debug] [ADB] Setting device id to ZW2224KZ5W [info] [AndroidDriver] App file was not listed, instead we're going to run com.motorola.launcher3 directly on the device [debug] [AndroidDriver] Checking whether package is present on the device [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell pm list packages com.motorola.launcher3'[info] [AndroidDriver] Starting Android session [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W wait-for-device'[info] [AndroidDriver] Starting Android session [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W wait-for-device' [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell pm list packages io.appium.settings'[debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell dumpsys package io.appium.settings'[debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell dumpsys package io.appium.settings'[debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell dumpsys package io.appium.settings'[debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0') [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell ps'[debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 24 [debug] [ADB] Device API level: 24 [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'[debug] [ADB] Device API level: 24 [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell appops set io.appium.settings android\:mock_location allow'[debug] [AndroidDriver] Pushing unlock helper app to device... [debug] [ADB] Getting install status for io.appium.unlock [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell pm list packages io.appium.unlock'[debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.unlock' [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell dumpsys package io.appium.unlock'[debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0') [info] [ADB] Getting device platform version [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 7.0 [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell wm size'[debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell getprop ro.product.model' [debug] [ADB] Current device property 'ro.product.model': Moto C Plus [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell getprop ro.product.manufacturer'[debug] [ADB] Current device property 'ro.product.manufacturer': motorola [warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [AndroidDriver] No app capability. Assuming it is already on the device [debug] [ADB] Getting install status for com.motorola.launcher3 [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell pm list packages com.motorola.launcher3'[debug] [ADB] App is installed [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell am force-stop com.motorola.launcher3'[debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell pm clear com.motorola.launcher3'[debug] [AndroidDriver] Performed fast reset on the installed 'com.motorola.launcher3' application (stop and clear) [debug] [AndroidBootstrap] Watching for bootstrap disconnect [debug] [ADB] Forwarding system: 4724 to device: 4724 [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W forward tcp\:4724 tcp\:4724' [debug] [UiAutomator] Starting UiAutomator [debug] [UiAutomator] Moving to state 'starting' [debug] [UiAutomator] Parsing uiautomator jar [debug] [UiAutomator] Found jar name: 'AppiumBootstrap.jar' [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W push 'C:\\Program Files (x86)\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-android-bootstrap\\bootstrap\\bin\\AppiumBootstrap.jar' /data/local/tmp/'[debug] [ADB] Attempting to kill all uiautomator processes [debug] [ADB] Getting all processes with uiautomator [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell ps'[info] [ADB] No uiautomator process found to kill, continuing... [debug] [UiAutomator] Starting UIAutomator [debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","ZW2224KZ5W","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.motorola.launcher3","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false][debug] [UiAutomator] Moving to state 'online' [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Loading json... [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers. [info] [AndroidBootstrap] Android bootstrap socket is now connected [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell dumpsys window' [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected[info] [AndroidDriver] Screen already unlocked, doing nothing [debug] [ADB] Device API level: 24 [debug] [ADB] Running 'C:\Users\SagarK\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZW2224KZ5W shell am start -W -n com.motorola.launcher3/com.android.launcher3.GoogleNowPanel -S'[info] [Appium] New AndroidDriver session created successfully, session 6b102533-f273-49bc-ba6a-5a5af93aa131 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1534225387770 (11:13:07 GMT+0530 (India Standard Time)) [debug] [MJSONWP] Responding to client with driver.createSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"Moto C Plus","platformName":"Android","platformVersion":"7.0"},"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"ZW2224KZ5W","platformName":"Android","platformVersion":"7.0","deviceUDID":"ZW2224KZ5W","deviceScreenSize":"720x1280","deviceModel":"Moto C Plus","deviceManufacturer":"motorola"} [info] [HTTP] <-- POST /wd/hub/session 200 28963 ms - 728 [info] [HTTP] [info] [HTTP] --> GET /wd/hub/session/6b102533-f273-49bc-ba6a-5a5af93aa131 [info] [HTTP] {} [debug] [W3C] Calling AppiumDriver.getSession() with args: ["6b102533-f273-49bc-ba6a-5a5af93aa131"] [debug] [MJSONWP] Responding to client with driver.getSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"Moto C Plus","platformName":"Android","platformVersion":"7.0"},"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"ZW2224KZ5W","platformName":"Android","platformVersion":"7.0","deviceUDID":"ZW2224KZ5W","deviceScreenSize":"720x1280","deviceModel":"Moto C Plus","deviceManufacturer":"motorola"} [info] [HTTP] <-- GET /wd/hub/session/6b102533-f273-49bc-ba6a-5a5af93aa131 200 6 ms - 728 [info] [HTTP]  [info] [HTTP] --> GET /wd/hub/session/6b102533-f273-49bc-ba6a-5a5af93aa131 [info] [HTTP] {} [debug] [W3C] Calling AppiumDriver.getSession() with args: ["6b102533-f273-49bc-ba6a-5a5af93aa131"] [debug] [MJSONWP] Responding to client with driver.getSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"Moto C Plus","platformName":"Android","platformVersion":"7.0"},"appActivity":"com.android.launcher3.GoogleNowPanel","appPackage":"com.motorola.launcher3","deviceName":"ZW2224KZ5W","platformName":"Android","platformVersion":"7.0","deviceUDID":"ZW2224KZ5W","deviceScreenSize":"720x1280","deviceModel":"Moto C Plus","deviceManufacturer":"motorola"} [info] [HTTP] <-- GET /wd/hub/session/6b102533-f273-49bc-ba6a-5a5af93aa131 200 7 ms - 728 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/6b102533-f273-49bc-ba6a-5a5af93aa131/element [info] [HTTP] {"using":"xpath","value":"//android.widget.TextView[@text='Phone']"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[@text='Phone']","6b102533-f273-49bc-ba6a-5a5af93aa131"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='Phone']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='Phone']","context":"","multiple":false}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[@text='Phone']' using 'XPATH' with the contextId: '' multiple: false[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying. [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[@text='Phone']' using 'XPATH' with the contextId: '' multiple: false [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"} [debug] [AndroidBootstrap] Received command result from bootstrap [debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError [info] [HTTP] <-- POST /wd/hub/session/6b102533-f273-49bc-ba6a-5a5af93aa131/element 500 261 ms - 164 [info] [HTTP]