[info] [Appium] Welcome to Appium v1.15.1 [info] [Appium] Non-default server args: [info] [Appium] allowInsecure: { [info] [Appium] } [info] [Appium] denyInsecure: { [info] [Appium] } [info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"firstMatch":[{"appium:appPackage":"com.tencent.mm","appium:appActivity":"com.tencent.mm.ui.LauncherUI","platformName":"android","appium:deviceName":"127.0.0.1:7555","appium:noReset":true,"appium:unicodeKeyboard":true,"appium:resetKeyBoard":true,"appium:chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","appium:chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"appium:adbport":5038}]},"desiredCapabilities":{"appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","platformName":"android","deviceName":"127.0.0.1:7555","noReset":true,"unicodeKeyboard":true,"resetKeyBoard":true,"chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"adbport":5038}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","platformName":"android","deviceName":"127.0.0.1:7555","noReset":true,"unicodeKeyboard":true,"resetKeyBoard":true,"chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"adbport":5038},null,{"firstMatch":[{"appium:appPackage":"com.tencent.mm","appium:appActivity":"com.tencent.mm.ui.LauncherUI","platformName":"android","appium:deviceName":"127.0.0.1:7555","appium:noReset":true,"appium:unicodeKeyboard":true,"appium:resetKeyBoard":true,"appium:chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","appium:chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"appium:adbport":5038}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1604200641263 (11:17:21 GMT+0800 (中国标准时间)) [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session [debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided [debug] [BaseDriver] Creating session with W3C capabilities: { [debug] [BaseDriver] "alwaysMatch": { [debug] [BaseDriver] "platformName": "android", [debug] [BaseDriver] "appium:appPackage": "com.tencent.mm", [debug] [BaseDriver] "appium:appActivity": "com.tencent.mm.ui.LauncherUI", [debug] [BaseDriver] "appium:deviceName": "127.0.0.1:7555", [debug] [BaseDriver] "appium:noReset": true, [debug] [BaseDriver] "appium:unicodeKeyboard": true, [debug] [BaseDriver] "appium:resetKeyBoard": true, [debug] [BaseDriver] "appium:chromedriverExecutable": "D:/download/chromedriver/chromedriver_52.exe", [debug] [BaseDriver] "appium:chromeOptions": { [debug] [BaseDriver] "androidProcess": "com.tencent.mm:appbrand0" [debug] [BaseDriver] }, [debug] [BaseDriver] "appium:adbport": 5038 [debug] [BaseDriver] }, [debug] [BaseDriver] "firstMatch": [ [debug] [BaseDriver] {} [debug] [BaseDriver] ] [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] resetKeyBoard [warn] [BaseDriver] adbport [info] [BaseDriver] Session created with session id: 6b582339-d6f7-486f-ab5c-938aace46e37 [info] [UiAutomator2] Starting 'com.tencent.mm' directly on the device[info] [ADB] Using 'adb.exe' from 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe' [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices...[debug] [ADB] Connected devices: [{"udid":"127.0.0.1:7555","state":"device"}] [info] [AndroidDriver] Using device: 127.0.0.1:7555 [info] [ADB] Using 'adb.exe' from 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe' [debug] [ADB] Setting device id to 127.0.0.1:7555 [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell getprop ro.build.version.sdk'[debug] [ADB] Current device property 'ro.build.version.sdk': 23 [debug] [ADB] Device API level: 23 [warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 wait-for-device' [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell echo ping'[debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell dumpsys package io.appium.settings'[debug] [ADB] 'io.appium.settings' is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell dumpsys package io.appium.settings' [info] [ADB] Cannot extract apk info using apkanalyzer. Falling back to aapt. Original error: Could not find 'apkanalyzer.bat' in ["C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\platform-tools\\apkanalyzer.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\emulator\\apkanalyzer.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\apkanalyzer.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\bin\\apkanalyzer.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\build-tools\\21.1.2\\apkanalyzer.bat"]. Do you have Android Build Tools installed at 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows'? [info] [ADB] Using 'aapt.exe' from 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\build-tools\21.1.2\aapt.exe'[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('2.14.2' >= '2.14.2') [debug] [ADB] There is no need to install/upgrade 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell 'pgrep --help; echo $?'' [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell pgrep -f io\\.appium\\.settings'[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell appops set io.appium.settings android\:mock_location allow'[debug] [Logcat] Starting logcat capture[debug] [AndroidDriver] Enabling Unicode keyboard support [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell settings get secure default_input_method'[debug] [AndroidDriver] Unsetting previous IME io.appium.settings/.UnicodeIME [debug] [AndroidDriver] Setting IME to 'io.appium.settings/.UnicodeIME' [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell ime enable io.appium.settings/.UnicodeIME'[debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell ime set io.appium.settings/.UnicodeIME'[info] [UiAutomator2] Server package at 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at 'C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.3.0.apk' is not writeable. Will copy it into the temporary location at 'C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell dumpsys package io.appium.uiautomator2.server'[debug] [ADB] 'io.appium.uiautomator2.server' is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell dumpsys package io.appium.uiautomator2.server' [info] [ADB] Cannot extract apk info using apkanalyzer. Falling back to aapt. Original error: Could not find 'apkanalyzer.bat' in ["C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\platform-tools\\apkanalyzer.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\emulator\\apkanalyzer.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\apkanalyzer.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\bin\\apkanalyzer.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\build-tools\\21.1.2\\apkanalyzer.bat"]. Do you have Android Build Tools installed at 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows'?[debug] [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.3.0' >= '4.3.0') [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled [debug] [ADB] Checking app cert for C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm\appium-uiautomator2-server-v4.3.0.apk [warn] [ADB] Cannot use apksigner tool for signature verification. Original error: Could not find 'apksigner.bat' in ["C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\platform-tools\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\emulator\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\bin\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\build-tools\\21.1.2\\apksigner.bat"]. Do you have Android Build Tools installed at 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows'? [debug] [ADB] Defaulting to verify.jar[debug] [ADB] 'C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm\appium-uiautomator2-server-v4.3.0.apk' is already signed. [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell dumpsys package io.appium.uiautomator2.server.test' [debug] [ADB] 'io.appium.uiautomator2.server.test' is installed [debug] [ADB] Checking app cert for C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm\appium-uiautomator2-server-debug-androidTest.apk [warn] [ADB] Cannot use apksigner tool for signature verification. Original error: Could not find 'apksigner.bat' in ["C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\platform-tools\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\emulator\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\bin\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\build-tools\\21.1.2\\apksigner.bat"]. Do you have Android Build Tools installed at 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows'? [debug] [ADB] Defaulting to verify.jar[debug] [ADB] 'C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm\appium-uiautomator2-server-debug-androidTest.apk' is not signed with debug cert: Exception in thread "main" java.lang.Exception: Invalid cert. [debug] [ADB] at v.Verify.verify(Verify.java:57) [debug] [ADB] at v.Verify.main(Verify.java:72) [debug] [ADB] [debug] [ADB] Signing 'C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm\appium-uiautomator2-server-debug-androidTest.apk' with default cert [warn] [ADB] Cannot use apksigner tool for signing. Defaulting to sign.jar. Original error: Could not find 'apksigner.bat' in ["C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\platform-tools\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\emulator\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\tools\\bin\\apksigner.bat","C:\\Users\\Geili\\Downloads\\android-sdk_r24.4.1-windows\\android-sdk-windows\\build-tools\\21.1.2\\apksigner.bat"]. Do you have Android Build Tools installed at 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows'? [debug] [ADB] Resigning apk.[info] [ADB] Using 'zipalign.exe' from 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\build-tools\21.1.2\zipalign.exe'[debug] [ADB] 'C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm\appium-uiautomator2-server-debug-androidTest.apk' is not zip-aligned. Aligning [info] [UiAutomator2] Server packages are going to be (re)installed [info] [UiAutomator2] Full packages reinstall is going to be performed [debug] [ADB] Uninstalling io.appium.uiautomator2.server [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell dumpsys package io.appium.uiautomator2.server'[debug] [ADB] 'io.appium.uiautomator2.server' is installed [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell am force-stop io.appium.uiautomator2.server'[debug] [Instrumentation] INSTRUMENTATION_RESULT: shortMsg=Process crashed. [debug] [Instrumentation] INSTRUMENTATION_CODE: 0[debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 uninstall io.appium.uiautomator2.server' [debug] [Instrumentation] The process has exited with code 0[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server' command output: Success [info] [ADB] io.appium.uiautomator2.server was successfully uninstalled[debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell 'ls -t -1 /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''[debug] [ADB] The current Android API does not support extended ls options. Defaulting to no-options call [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell 'ls /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''[debug] [ADB] The count of applications in the cache: 3 [info] [ADB] The application at 'C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm\appium-uiautomator2-server-v4.3.0.apk' is already cached to '/data/local/tmp/appium_cache/0cc1725a60a05dbb5d0d09256f2fc6ece7e3b10f.apk' [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell pm install -r /data/local/tmp/appium_cache/0cc1725a60a05dbb5d0d09256f2fc6ece7e3b10f.apk'[info] [ADB] The installation of 'appium-uiautomator2-server-v4.3.0.apk' took 3.159s [debug] [ADB] Install command stdout: pkg: /data/local/tmp/appium_cache/0cc1725a60a05dbb5d0d09256f2fc6ece7e3b10f.apk [debug] [ADB] Success [debug] [ADB] Uninstalling io.appium.uiautomator2.server.test [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell dumpsys package io.appium.uiautomator2.server.test'[debug] [ADB] 'io.appium.uiautomator2.server.test' is installed [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell am force-stop io.appium.uiautomator2.server.test'[debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 uninstall io.appium.uiautomator2.server.test'[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server.test' command output: Success [info] [ADB] io.appium.uiautomator2.server.test was successfully uninstalled [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell 'ls /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''[debug] [ADB] The count of applications in the cache: 3 [info] [ADB] The application at 'C:\Users\Geili\AppData\Local\Temp\2020101-9176-wqcu9i.zjbjm\appium-uiautomator2-server-debug-androidTest.apk' is already cached to '/data/local/tmp/appium_cache/178843d5e972a004c397eddb225cc6e8cfdecafe.apk' [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell pm install -r /data/local/tmp/appium_cache/178843d5e972a004c397eddb225cc6e8cfdecafe.apk'[info] [ADB] The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 2.380s [debug] [ADB] Install command stdout: pkg: /data/local/tmp/appium_cache/178843d5e972a004c397eddb225cc6e8cfdecafe.apk [debug] [ADB] Success [debug] [UiAutomator2] Waiting up to 30000ms for services to be available [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell pm list instrumentation'[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8202 [debug] [ADB] Forwarding system: 8202 to device: 6790 [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 forward tcp\:8202 tcp\:6790'[debug] [UiAutomator2] No obsolete sessions have been detected (Error: socket hang up) [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell am force-stop io.appium.uiautomator2.server.test'[info] [UiAutomator2] Starting UIAutomator2 server 4.3.0 [info] [UiAutomator2] Using UIAutomator2 server from 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.3.0.apk' and test from 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' [info] [UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online... [debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","127.0.0.1:7555","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"][debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body [info] [WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body [info] [WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"ready":true,"message":"UiAutomator2 Server is ready to accept commands"}} [debug] [UiAutomator2] The initialization of the instrumentation process took 3131ms [debug] [WD Proxy] Matched '/session' to command name 'createSession' [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8202/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","deviceName":"127.0.0.1:7555","noReset":true,"unicodeKeyboard":true,"resetKeyBoard":true,"chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"adbport":5038},"platformName":"android","appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","deviceName":"127.0.0.1:7555","noReset":true,"unicodeKeyboard":true,"resetKeyBoard":true,"chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"adbport":5038,"deviceUDID":"127.0.0.1:7555"}],"alwaysMatch":{}}} [debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","deviceName":"127.0.0.1:7555","noReset":true,"unicodeKeyboard":true,"resetKeyBoard":true,"chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"adbport":5038},"platformName":"android","appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","deviceName":"127.0.0.1:7555","noReset":true,"unicodeKeyboard":true,"resetKeyBoard":true,"chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"adbport":5... [info] [WD Proxy] Determined the downstream protocol as 'W3C' [debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/appium/device/info] with no body[debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"androidId":"db4d8ed9d93b964e","manufacturer":"Netease","model":"MuMu","brand":"Android","apiVersion":"23","platformVersion":"6.0.1","carrierName":"","realDisplaySize":"576x1024","displayDensity":192,"networks":[{"type":1,"typeName":"WIFI","subtype":0,"subtypeName":"","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":"\"OUgDB2NhH1\"","isAvailable":true,"isFailover":false,"isRoaming":false,"capabilities":{"transportTypes":"NET_CAPABILITY_SUPL","networkCapabilities":"","linkUpstreamBandwidthKbps":1048576,"linkDownBandwidthKbps":1048576,"signalStrength":-55,"networkSpecifier":null,"SSID":null}}],"locale":"zh_CN","timeZone":"Asia\/Shanghai"}} [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell dumpsys window' [info] [AndroidDriver] Screen already unlocked, doing nothing [info] [UiAutomator2] Starting 'com.tencent.mm/com.tencent.mm.ui.LauncherUI and waiting for 'com.tencent.mm/com.tencent.mm.ui.LauncherUI' [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell am start -W -n com.tencent.mm/com.tencent.mm.ui.LauncherUI -S'[debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/appium/device/pixel_ratio] with body: {}[debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":1.2} [debug] [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/appium/device/system_bars] with body: {} [debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"statusBar":29}} [debug] [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [WD Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/window/current/size] with body: {} [debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"height":1024,"width":576}} [info] [Appium] New AndroidUiautomator2Driver session created successfully, session 6b582339-d6f7-486f-ab5c-938aace46e37 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1604200681440 (11:18:01 GMT+0800 (中国标准时间)) [debug] [W3C (6b582339)] Cached the protocol value 'W3C' for the new session 6b582339-d6f7-486f-ab5c-938aace46e37 [debug] [W3C (6b582339)] Responding to client with driver.createSession() result: {"capabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","deviceName":"127.0.0.1:7555","noReset":true,"unicodeKeyboard":true,"resetKeyBoard":true,"chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"adbport":5038},"platformName":"android","appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","deviceName":"127.0.0.1:7555","noReset":true,"unicodeKeyboard":true,"resetKeyBoard":true,"chromedriverExecutable":"D:/download/chromedriver/chromedriver_52.exe","chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"adbport":5038,"deviceUDID":"127.0.0.1:7555","deviceApiLevel":23,"platformVersion":"6.0.1","deviceScreenSize":"576x1024","deviceScreenDen... [info] [HTTP] <-- POST /wd/hub/session 200 40184 ms - 1241 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/timeouts [info] [HTTP] {"implicit":30000} [debug] [W3C (6b582339)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"6b582339-d6f7-486f-ab5c-938aace46e37"] [debug] [BaseDriver] W3C timeout argument: {"implicit":30000}} [debug] [BaseDriver] Set implicit wait to 30000ms [debug] [W3C (6b582339)] Responding to client with driver.timeouts() result: null [info] [HTTP] <-- POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/timeouts 200 8 ms - 14 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/element [info] [HTTP] {"using":"xpath","value":"//*[@text='通讯录']"} [debug] [W3C (6b582339)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@text='通讯录']","6b582339-d6f7-486f-ab5c-938aace46e37"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 30000 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false}[info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 483 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false} [info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 1021 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false}[info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 1786 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false}[info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 2414 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false} [info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 2959 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false} [info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 3519 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false} [info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 4080 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false}[info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 4633 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false} [info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 5186 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false} [info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 5730 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false} [info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 6274 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false} [info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 6822 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false}[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false} [info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 7932 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false}[info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [BaseDriver] Waited for 10356 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='通讯录']","context":"","multiple":false}[debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"ELEMENT":"6a95b19a-7545-4eda-af86-27ed1ccc14d2","element-6066-11e4-a52e-4f735466cecf":"6a95b19a-7545-4eda-af86-27ed1ccc14d2"}} [debug] [W3C (6b582339)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"6a95b19a-7545-4eda-af86-27ed1ccc14d2","ELEMENT":"6a95b19a-7545-4eda-af86-27ed1ccc14d2"} [info] [HTTP] <-- POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/element 200 26046 ms - 137 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/timeouts [info] [HTTP] {"implicit":10000} [debug] [W3C (6b582339)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,10000,"6b582339-d6f7-486f-ab5c-938aace46e37"] [debug] [BaseDriver] W3C timeout argument: {"implicit":10000}} [debug] [BaseDriver] Set implicit wait to 10000ms [debug] [W3C (6b582339)] Responding to client with driver.timeouts() result: null [info] [HTTP] <-- POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/timeouts 200 7 ms - 14 [info] [HTTP] [debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"height":1024,"width":576}} [debug] [W3C (6b582339)] Responding to client with driver.getWindowRect() result: {"width":576,"height":1024,"x":0,"y":0} [info] [HTTP] <-- GET /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/window/rect 200 40 ms - 49 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/touch/perform [info] [HTTP] {"actions":[{"action":"press","options":{"x":288,"y":409.6}},{"action":"wait","options":{"ms":0}},{"action":"moveTo","options":{"x":288,"y":921.6}},{"action":"release","options":{}}]} [debug] [W3C (6b582339)] Calling AppiumDriver.performTouch() with args: [[{"action":"press","options":{"x":288,"y":409.6}},{"action":"wait","options":{"ms":0}},{"action":"moveTo","options":{"x":288,"y":921.6}},{"action":"release","options":{}}],"6b582339-d6f7-486f-ab5c-938aace46e37"] [debug] [WD Proxy] Matched '/touch/perform' to command name 'performTouch' [debug] [WD Proxy] Proxying [POST /touch/perform] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/touch/perform] with body: {"startX":288,"startY":409.6,"endX":288,"endY":921.6,"steps":22}[debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":null} [debug] [W3C (6b582339)] Responding to client with driver.performTouch() result: null [info] [HTTP] <-- POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/touch/perform 200 3036 ms - 14 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/element [info] [HTTP] {"using":"id","value":"com.tencent.mm:id/cna"} [debug] [W3C (6b582339)] Calling AppiumDriver.findElement() with args: ["id","com.tencent.mm:id/cna","6b582339-d6f7-486f-ab5c-938aace46e37"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 10000 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"id","selector":"com.tencent.mm:id/cna","context":"","multiple":false}[debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"ELEMENT":"cbc2cecd-500b-476c-a195-cc2e3ccf8b19","element-6066-11e4-a52e-4f735466cecf":"cbc2cecd-500b-476c-a195-cc2e3ccf8b19"}} [debug] [W3C (6b582339)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"cbc2cecd-500b-476c-a195-cc2e3ccf8b19","ELEMENT":"cbc2cecd-500b-476c-a195-cc2e3ccf8b19"} [info] [HTTP] <-- POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/element 200 482 ms - 137 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/element/cbc2cecd-500b-476c-a195-cc2e3ccf8b19/click [info] [HTTP] {"id":"cbc2cecd-500b-476c-a195-cc2e3ccf8b19"} [debug] [W3C (6b582339)] Calling AppiumDriver.click() with args: ["cbc2cecd-500b-476c-a195-cc2e3ccf8b19","6b582339-d6f7-486f-ab5c-938aace46e37"] [debug] [WD Proxy] Matched '/element/cbc2cecd-500b-476c-a195-cc2e3ccf8b19/click' to command name 'click' [debug] [WD Proxy] Proxying [POST /element/cbc2cecd-500b-476c-a195-cc2e3ccf8b19/click] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element/cbc2cecd-500b-476c-a195-cc2e3ccf8b19/click] with body: {"element":"cbc2cecd-500b-476c-a195-cc2e3ccf8b19"}[debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":null} [debug] [W3C (6b582339)] Responding to client with driver.click() result: null [info] [HTTP] <-- POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/element/cbc2cecd-500b-476c-a195-cc2e3ccf8b19/click 200 404 ms - 14 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/element [info] [HTTP] {"using":"xpath","value":"//*[@text='自选']"} [debug] [W3C (6b582339)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@text='自选']","6b582339-d6f7-486f-ab5c-938aace46e37"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 10000 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/element] with body: {"strategy":"xpath","selector":"//*[@text='自选']","context":"","multiple":false}[debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":{"ELEMENT":"667c56c4-52d7-435a-bea5-168b8ce78c07","element-6066-11e4-a52e-4f735466cecf":"667c56c4-52d7-435a-bea5-168b8ce78c07"}} [debug] [W3C (6b582339)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"667c56c4-52d7-435a-bea5-168b8ce78c07","ELEMENT":"667c56c4-52d7-435a-bea5-168b8ce78c07"} [info] [HTTP] <-- POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/element 200 557 ms - 137 [info] [HTTP] [info] [HTTP] --> GET /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/contexts [info] [HTTP] {} [debug] [W3C (6b582339)] Calling AppiumDriver.getContexts() with args: ["6b582339-d6f7-486f-ab5c-938aace46e37"] [debug] [AndroidDriver] Getting a list of available webviews [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell cat /proc/net/unix'[info] [AndroidDriver] Not checking whether webviews have active pages; use the 'ensureWebviewsHavePages' cap to turn this check on [debug] [AndroidDriver] Found webviews: [] [debug] [AndroidDriver] Available contexts: ["NATIVE_APP"] [debug] [W3C (6b582339)] Responding to client with driver.getContexts() result: ["NATIVE_APP"] [info] [HTTP] <-- GET /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/contexts 200 196 ms - 24 [info] [HTTP]  [info] [HTTP] --> GET /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/source [info] [HTTP] {} [info] [W3C (6b582339)] Driver proxy active, passing request on via HTTP proxy [debug] [WD Proxy] Matched '/wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/source' to command name 'getPageSource' [debug] [WD Proxy] Proxying [GET /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/source] to [GET http://localhost:8202/wd/hub/session/853419cf-e590-4e7d-a2d3-94cdcea1932c/source] with body: {}[debug] [WD Proxy] Got response with status 200: {"sessionId":"853419cf-e590-4e7d-a2d3-94cdcea1932c","value":"\r\n\r\n \r\n \r\n  POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/context [info] [HTTP] {"name":"WEBVIEW_xweb"} [debug] [W3C (6b582339)] Calling AppiumDriver.setContext() with args: ["WEBVIEW_xweb","6b582339-d6f7-486f-ab5c-938aace46e37"] [debug] [AndroidDriver] Getting a list of available webviews [debug] [ADB] Running 'C:\Users\Geili\Downloads\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell cat /proc/net/unix'[info] [AndroidDriver] Not checking whether webviews have active pages; use the 'ensureWebviewsHavePages' cap to turn this check on [debug] [AndroidDriver] Found webviews: [] [debug] [AndroidDriver] Available contexts: ["NATIVE_APP"] [debug] [W3C (6b582339)] Encountered internal error running command: NoSuchContextError: No such context found. [debug] [W3C (6b582339)] at AndroidUiautomator2Driver.setContext (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:57:11) [info] [HTTP] <-- POST /wd/hub/session/6b582339-d6f7-486f-ab5c-938aace46e37/context 400 167 ms - 309 [info] [HTTP]