[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":[{"platformName":"Android","appium:automationName":"UiAutomator2","appium:platformVersion":"6.0","appium:deviceName":"127.0.0.1:7555","appium:appPackage":"com.xueqiu.android","appium:appActivity":"com.xueqiu.android.common.MainActivity"}]},"desiredCapabilities":{"platformName":"Android","automationName":"UiAutomator2","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.xueqiu.android","appActivity":"com.xueqiu.android.common.MainActivity"}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","automationName":"UiAutomator2","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.xueqiu.android","appActivity":"com.xueqiu.android.common.MainActivity"},null,{"firstMatch":[{"platformName":"Android","appium:automationName":"UiAutomator2","appium:platformVersion":"6.0","appium:deviceName":"127.0.0.1:7555","appium:appPackage":"com.xueqiu.android","appium:appActivity":"com.xueqiu.android.common.MainActivity"}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1600533744718 (00:42:24 GMT+0800 (中国标准时间)) [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:automationName": "UiAutomator2", [debug] [BaseDriver] "appium:platformVersion": "6.0", [debug] [BaseDriver] "appium:deviceName": "127.0.0.1:7555", [debug] [BaseDriver] "appium:appPackage": "com.xueqiu.android", [debug] [BaseDriver] "appium:appActivity": "com.xueqiu.android.common.MainActivity" [debug] [BaseDriver] }, [debug] [BaseDriver] "firstMatch": [ [debug] [BaseDriver] {} [debug] [BaseDriver] ] [debug] [BaseDriver] } [info] [BaseDriver] Session created with session id: 860bc035-de71-4dba-9ee5-aea8259edda1 [info] [UiAutomator2] Starting 'com.xueqiu.android' directly on the device[info] [ADB] Using 'adb.exe' from 'D:\MyDrivers\software\Android\android-sdk\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] Looking for a device with Android '6.0' [debug] [ADB] Setting device id to 127.0.0.1:7555 [info] [ADB] Getting device platform version [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 6.0.1 [debug] [ADB] Setting device id to 127.0.0.1:7555 [info] [AndroidDriver] Using device: 127.0.0.1:7555 [info] [ADB] Using 'adb.exe' from 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe' [debug] [ADB] Setting device id to 127.0.0.1:7555 [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\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 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 wait-for-device'[debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\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 'D:\MyDrivers\software\Android\android-sdk\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 'D:\MyDrivers\software\Android\android-sdk\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 ["D:\\MyDrivers\\software\\Android\\android-sdk\\platform-tools\\apkanalyzer.bat","D:\\MyDrivers\\software\\Android\\android-sdk\\emulator\\apkanalyzer.bat","D:\\MyDrivers\\software\\Android\\android-sdk\\tools\\apkanalyzer.bat","D:\\MyDrivers\\software\\Android\\android-sdk\\tools\\bin\\apkanalyzer.bat","D:\\MyDrivers\\software\\Android\\android-sdk\\build-tools\\29.0.3\\apkanalyzer.bat"]. Do you have Android Build Tools installed at 'D:\MyDrivers\software\Android\android-sdk'? [info] [ADB] Using 'aapt.exe' from 'D:\MyDrivers\software\Android\android-sdk\build-tools\29.0.3\aapt.exe'[debug] [ADB] The version code of the installed 'io.appium.settings' is greater than the application version code (26 > 19) [debug] [ADB] There is no need to downgrade 'io.appium.settings' [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell 'pgrep --help; echo $?''[debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\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 'D:\MyDrivers\software\Android\android-sdk\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[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\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l' 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-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at 'C:\Users\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l' 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 'D:\MyDrivers\software\Android\android-sdk\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 'D:\MyDrivers\software\Android\android-sdk\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 ["D:\\MyDrivers\\software\\Android\\android-sdk\\platform-tools\\apkanalyzer.bat","D:\\MyDrivers\\software\\Android\\android-sdk\\emulator\\apkanalyzer.bat","D:\\MyDrivers\\software\\Android\\android-sdk\\tools\\apkanalyzer.bat","D:\\MyDrivers\\software\\Android\\android-sdk\\tools\\bin\\apkanalyzer.bat","D:\\MyDrivers\\software\\Android\\android-sdk\\build-tools\\29.0.3\\apkanalyzer.bat"]. Do you have Android Build Tools installed at 'D:\MyDrivers\software\Android\android-sdk'?[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\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l\appium-uiautomator2-server-v4.3.0.apk [info] [ADB] Using 'apksigner.bat' from 'D:\MyDrivers\software\Android\android-sdk\build-tools\29.0.3\apksigner.bat' [debug] [ADB] Starting 'D:\MyDrivers\software\Android\android-sdk\build-tools\29.0.3\apksigner.bat' with args '["verify","--print-certs","C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2020820-11292-1wbumv3.z18l\\appium-uiautomator2-server-v4.3.0.apk"]'[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] 'C:\Users\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l\appium-uiautomator2-server-v4.3.0.apk' is already signed. [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\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\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l\appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting 'D:\MyDrivers\software\Android\android-sdk\build-tools\29.0.3\apksigner.bat' with args '["verify","--print-certs","C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2020820-11292-1wbumv3.z18l\\appium-uiautomator2-server-debug-androidTest.apk"]'[debug] [ADB] apksigner stdout: Signer #1 certificate DN: CN=Android Debug, O=Android, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: 3e4f2ab66d641bbbd363421151755f8b12b66ea37a5db43c52116596b7392a8e [debug] [ADB] Signer #1 certificate SHA-1 digest: e24fc8971c0aad07d1df6cc62af7fb0d48b45b60 [debug] [ADB] Signer #1 certificate MD5 digest: 5623d53469c7f7147b52ace9d09901eb [debug] [ADB] [debug] [ADB] 'C:\Users\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l\appium-uiautomator2-server-debug-androidTest.apk' is signed with non-default certificate [info] [ADB] Using 'zipalign.exe' from 'D:\MyDrivers\software\Android\android-sdk\build-tools\29.0.3\zipalign.exe' [debug] [ADB] C:\Users\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l\appium-uiautomator2-server-debug-androidTest.apk' is already zip-aligned. Doing nothing [debug] [ADB] Signing 'C:\Users\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l\appium-uiautomator2-server-debug-androidTest.apk' with default cert [debug] [ADB] Starting 'D:\MyDrivers\software\Android\android-sdk\build-tools\29.0.3\apksigner.bat' with args '["sign","--key","C:\\Program Files\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-adb\\keys\\testkey.pk8","--cert","C:\\Program Files\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-adb\\keys\\testkey.x509.pem","C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2020820-11292-1wbumv3.z18l\\appium-uiautomator2-server-debug-androidTest.apk"]'[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 'D:\MyDrivers\software\Android\android-sdk\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 'D:\MyDrivers\software\Android\android-sdk\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] [Instrumentation] The process has exited with code 0 [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 uninstall io.appium.uiautomator2.server'[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server' command output: Success [info] [ADB] io.appium.uiautomator2.server was successfully uninstalled [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\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 'D:\MyDrivers\software\Android\android-sdk\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: 7 [info] [ADB] The application at 'C:\Users\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l\appium-uiautomator2-server-v4.3.0.apk' is already cached to '/data/local/tmp/appium_cache/0cc1725a60a05dbb5d0d09256f2fc6ece7e3b10f.apk' [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\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 1.669s [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 'D:\MyDrivers\software\Android\android-sdk\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 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell am force-stop io.appium.uiautomator2.server.test'[debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\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 'D:\MyDrivers\software\Android\android-sdk\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: 7 [info] [ADB] The application at 'C:\Users\ADMINI~1\AppData\Local\Temp\2020820-11292-1wbumv3.z18l\appium-uiautomator2-server-debug-androidTest.apk' is already cached to '/data/local/tmp/appium_cache/cd247f042368990c9f33b2d7bf2390d8cf4f4e24.apk' [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell pm install -r /data/local/tmp/appium_cache/cd247f042368990c9f33b2d7bf2390d8cf4f4e24.apk'[info] [ADB] The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 3.893s [debug] [ADB] Install command stdout: pkg: /data/local/tmp/appium_cache/cd247f042368990c9f33b2d7bf2390d8cf4f4e24.apk [debug] [ADB] Success [debug] [UiAutomator2] Waiting up to 30000ms for services to be available [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\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 8211 [debug] [ADB] Forwarding system: 8211 to device: 6790 [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 forward tcp\:8211 tcp\:6790' [debug] [UiAutomator2] No app capability. Assuming it is already on the device [debug] [ADB] Getting install status for com.xueqiu.android [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell dumpsys package com.xueqiu.android'[debug] [ADB] 'com.xueqiu.android' is installed [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell am force-stop com.xueqiu.android'[debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell pm clear com.xueqiu.android'[debug] [AndroidDriver] Performed fast reset on the installed 'com.xueqiu.android' application (stop and clear) [debug] [UiAutomator2] Performing shallow cleanup of automation leftovers [debug] [UiAutomator2] No obsolete sessions have been detected (Error: socket hang up) [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\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:8211/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:8211/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:8211/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 3147ms [debug] [WD Proxy] Matched '/session' to command name 'createSession' [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8211/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","automationName":"UiAutomator2","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.xueqiu.android","appActivity":"com.xueqiu.android.common.MainActivity"},"platformName":"Android","automationName":"UiAutomator2","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.xueqiu.android","appActivity":"com.xueqiu.android.common.MainActivity","deviceUDID":"127.0.0.1:7555"}],"alwaysMatch":{}}} [debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":{"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","automationName":"UiAutomator2","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.xueqiu.android","appActivity":"com.xueqiu.android.common.MainActivity"},"platformName":"Android","automationName":"UiAutomator2","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.xueqiu.android","appActivity":"com.xueqiu.android.common.MainActivity","deviceUDID":"127.0.0.1:7555"}],"alwaysMatch":{}}}} [info] [WD Proxy] Determined the downstream protocol as 'W3C' [debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/appium/device/info] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":{"androidId":"b70e7dd098e7b0eb","manufacturer":"Netease","model":"MuMu","brand":"Android","apiVersion":"23","platformVersion":"6.0.1","carrierName":"中国移动","realDisplaySize":"720x1280","displayDensity":240,"networks":[{"type":1,"typeName":"WIFI","subtype":0,"subtypeName":"","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":"\"50Io6I4T\"","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 'D:\MyDrivers\software\Android\android-sdk\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.xueqiu.android/com.xueqiu.android.common.MainActivity and waiting for 'com.xueqiu.android/com.xueqiu.android.common.MainActivity' [debug] [ADB] Running 'D:\MyDrivers\software\Android\android-sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1\:7555 shell am start -W -n com.xueqiu.android/com.xueqiu.android.common.MainActivity -S'[debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/appium/device/pixel_ratio] with body: {} [debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":1.5} [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:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/appium/device/system_bars] with body: {}[debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":{"statusBar":36}} [debug] [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [WD Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/window/current/size] with body: {} [debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":{"height":1280,"width":720}} [info] [Appium] New AndroidUiautomator2Driver session created successfully, session 860bc035-de71-4dba-9ee5-aea8259edda1 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1600533785155 (00:43:05 GMT+0800 (中国标准时间)) [debug] [W3C (860bc035)] Cached the protocol value 'W3C' for the new session 860bc035-de71-4dba-9ee5-aea8259edda1 [debug] [W3C (860bc035)] 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","automationName":"UiAutomator2","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.xueqiu.android","appActivity":"com.xueqiu.android.common.MainActivity"},"platformName":"Android","automationName":"UiAutomator2","platformVersion":"6.0.1","deviceName":"127.0.0.1:7555","appPackage":"com.xueqiu.android","appActivity":"com.xueqiu.android.common.MainActivity","deviceUDID":"127.0.0.1:7555","deviceApiLevel":23,"deviceScreenSize":"720x1280","deviceScreenDensity":240,"deviceModel":"MuMu","deviceManufacturer":"Netease","pixelRatio":1.5,"statBarHeight":36,"viewportRect":{"left":0,"top":36,"width":720,"height":1244}}} [info] [HTTP] <-- POST /wd/hub/session 200 40441 ms - 942 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/timeouts [info] [HTTP] {"implicit":10000} [debug] [W3C (860bc035)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,10000,"860bc035-de71-4dba-9ee5-aea8259edda1"] [debug] [BaseDriver] W3C timeout argument: {"implicit":10000}} [debug] [BaseDriver] Set implicit wait to 10000ms [debug] [W3C (860bc035)] Responding to client with driver.timeouts() result: null [info] [HTTP] <-- POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/timeouts 200 7 ms - 14 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element [info] [HTTP] {"using":"xpath","value":"//*[@resource-id=\"com.xueqiu.android:id/tab_name\" and @text=\"交易\"]"} [debug] [W3C (860bc035)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@resource-id=\"com.xueqiu.android:id/tab_name\" and @text=\"交易\"]","860bc035-de71-4dba-9ee5-aea8259edda1"] [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:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/element] with body: {"strategy":"xpath","selector":"//*[@resource-id=\"com.xueqiu.android:id/tab_name\" and @text=\"交易\"]","context":"","multiple":false}[debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":{"ELEMENT":"dcc90b3f-d694-48e4-8b57-832e6e812126","element-6066-11e4-a52e-4f735466cecf":"dcc90b3f-d694-48e4-8b57-832e6e812126"}} [debug] [W3C (860bc035)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"dcc90b3f-d694-48e4-8b57-832e6e812126","ELEMENT":"dcc90b3f-d694-48e4-8b57-832e6e812126"} [info] [HTTP] <-- POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element 200 964 ms - 137 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element/dcc90b3f-d694-48e4-8b57-832e6e812126/click [info] [HTTP] {"id":"dcc90b3f-d694-48e4-8b57-832e6e812126"} [debug] [W3C (860bc035)] Calling AppiumDriver.click() with args: ["dcc90b3f-d694-48e4-8b57-832e6e812126","860bc035-de71-4dba-9ee5-aea8259edda1"] [debug] [WD Proxy] Matched '/element/dcc90b3f-d694-48e4-8b57-832e6e812126/click' to command name 'click' [debug] [WD Proxy] Proxying [POST /element/dcc90b3f-d694-48e4-8b57-832e6e812126/click] to [POST http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/element/dcc90b3f-d694-48e4-8b57-832e6e812126/click] with body: {"element":"dcc90b3f-d694-48e4-8b57-832e6e812126"}[debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":null} [debug] [W3C (860bc035)] Responding to client with driver.click() result: null [info] [HTTP] <-- POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element/dcc90b3f-d694-48e4-8b57-832e6e812126/click 200 657 ms - 14 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element [info] [HTTP] {"using":"xpath","value":"//android.view.View[@content-desc=\"A股开户\"]"} [debug] [W3C (860bc035)] Calling AppiumDriver.findElement() with args: ["xpath","//android.view.View[@content-desc=\"A股开户\"]","860bc035-de71-4dba-9ee5-aea8259edda1"] [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:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/element] with body: {"strategy":"xpath","selector":"//android.view.View[@content-desc=\"A股开户\"]","context":"","multiple":false}[info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","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 1821 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/element] with body: {"strategy":"xpath","selector":"//android.view.View[@content-desc=\"A股开户\"]","context":"","multiple":false}[info] [WD Proxy] Got an unexpected response with status 404: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","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 2914 ms so far[debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/element] with body: {"strategy":"xpath","selector":"//android.view.View[@content-desc=\"A股开户\"]","context":"","multiple":false}[debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":{"ELEMENT":"a429a1ce-77b6-451d-a833-e2bfa32913e3","element-6066-11e4-a52e-4f735466cecf":"a429a1ce-77b6-451d-a833-e2bfa32913e3"}} [debug] [W3C (860bc035)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"a429a1ce-77b6-451d-a833-e2bfa32913e3","ELEMENT":"a429a1ce-77b6-451d-a833-e2bfa32913e3"} [info] [HTTP] <-- POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element 200 4627 ms - 137 [info] [HTTP]  [info] [HTTP] --> GET /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element/a429a1ce-77b6-451d-a833-e2bfa32913e3/displayed [info] [HTTP] {} [debug] [W3C (860bc035)] Calling AppiumDriver.elementDisplayed() with args: ["a429a1ce-77b6-451d-a833-e2bfa32913e3","860bc035-de71-4dba-9ee5-aea8259edda1"] [debug] [WD Proxy] Matched '/element/a429a1ce-77b6-451d-a833-e2bfa32913e3/attribute/displayed' to command name 'getAttribute' [debug] [WD Proxy] Proxying [GET /element/a429a1ce-77b6-451d-a833-e2bfa32913e3/attribute/displayed] to [GET http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/element/a429a1ce-77b6-451d-a833-e2bfa32913e3/attribute/displayed] with body: {} [debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":"true"} [debug] [W3C (860bc035)] Responding to client with driver.elementDisplayed() result: true [info] [HTTP] <-- GET /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element/a429a1ce-77b6-451d-a833-e2bfa32913e3/displayed 200 42 ms - 14 [info] [HTTP]  [info] [HTTP] --> GET /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element/a429a1ce-77b6-451d-a833-e2bfa32913e3/enabled [info] [HTTP] {} [debug] [W3C (860bc035)] Calling AppiumDriver.elementEnabled() with args: ["a429a1ce-77b6-451d-a833-e2bfa32913e3","860bc035-de71-4dba-9ee5-aea8259edda1"] [debug] [WD Proxy] Matched '/element/a429a1ce-77b6-451d-a833-e2bfa32913e3/attribute/enabled' to command name 'getAttribute' [debug] [WD Proxy] Proxying [GET /element/a429a1ce-77b6-451d-a833-e2bfa32913e3/attribute/enabled] to [GET http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/element/a429a1ce-77b6-451d-a833-e2bfa32913e3/attribute/enabled] with body: {} [debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":"true"} [debug] [W3C (860bc035)] Responding to client with driver.elementEnabled() result: true [info] [HTTP] <-- GET /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element/a429a1ce-77b6-451d-a833-e2bfa32913e3/enabled 200 49 ms - 14 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element [info] [HTTP] {"using":"xpath","value":"//android.view.View[@content-desc=\"A股开户\"]"} [debug] [W3C (860bc035)] Calling AppiumDriver.findElement() with args: ["xpath","//android.view.View[@content-desc=\"A股开户\"]","860bc035-de71-4dba-9ee5-aea8259edda1"] [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:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/element] with body: {"strategy":"xpath","selector":"//android.view.View[@content-desc=\"A股开户\"]","context":"","multiple":false}[debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":{"ELEMENT":"e48533bc-6253-48a5-b981-88f18698f75a","element-6066-11e4-a52e-4f735466cecf":"e48533bc-6253-48a5-b981-88f18698f75a"}} [debug] [W3C (860bc035)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"e48533bc-6253-48a5-b981-88f18698f75a","ELEMENT":"e48533bc-6253-48a5-b981-88f18698f75a"} [info] [HTTP] <-- POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element 200 297 ms - 137 [info] [HTTP]  [info] [HTTP] --> POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element/e48533bc-6253-48a5-b981-88f18698f75a/click [info] [HTTP] {"id":"e48533bc-6253-48a5-b981-88f18698f75a"} [debug] [W3C (860bc035)] Calling AppiumDriver.click() with args: ["e48533bc-6253-48a5-b981-88f18698f75a","860bc035-de71-4dba-9ee5-aea8259edda1"] [debug] [WD Proxy] Matched '/element/e48533bc-6253-48a5-b981-88f18698f75a/click' to command name 'click' [debug] [WD Proxy] Proxying [POST /element/e48533bc-6253-48a5-b981-88f18698f75a/click] to [POST http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/element/e48533bc-6253-48a5-b981-88f18698f75a/click] with body: {"element":"e48533bc-6253-48a5-b981-88f18698f75a"}[debug] [WD Proxy] Got response with status 200: {"sessionId":"fe312092-391a-4c57-b169-4fde05603c58","value":null} [debug] [W3C (860bc035)] Responding to client with driver.click() result: null [info] [HTTP] <-- POST /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/element/e48533bc-6253-48a5-b981-88f18698f75a/click 200 71 ms - 14 [info] [HTTP] [info] [HTTP] --> GET /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/window/handles [info] [HTTP] {} [info] [W3C (860bc035)] Driver proxy active, passing request on via HTTP proxy [debug] [WD Proxy] Matched '/wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/window/handles' to command name 'getWindowHandles' [debug] [Protocol Converter] Did not know how to rewrite the original URL '/wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/window/handles' for W3C protocol [debug] [WD Proxy] Proxying [GET /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/window/handles] to [GET http://localhost:8211/wd/hub/session/fe312092-391a-4c57-b169-4fde05603c58/window/handles] with body: {} [info] [WD Proxy] Got an unexpected response with status 404: [debug] [W3C (860bc035)] Encountered internal error running command: Error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - "" [debug] [W3C (860bc035)] at doJwpProxy (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:490:13) [info] [HTTP] <-- GET /wd/hub/session/860bc035-de71-4dba-9ee5-aea8259edda1/window/handles 500 129 ms - 761 [info] [HTTP]