Skip to content

Instantly share code, notes, and snippets.

@loveiset
Created June 7, 2018 11:29
Show Gist options
  • Save loveiset/cb7ac175c7b42e007b19f54c764756cb to your computer and use it in GitHub Desktop.
Save loveiset/cb7ac175c7b42e007b19f54c764756cb to your computer and use it in GitHub Desktop.
C:\Users\hechangshu1 (hechangshu1@1.0.0)
λ cappium --session-override --chromedriver-executable D:\hcs\Downloads\chromedriver_win32\chromedriver.exe
[Appium] Welcome to Appium v1.8.1
[Appium] Non-default server args:
[Appium] sessionOverride: true
[Appium] chromedriverExecutable: D:\hcs\Downloads\chromedriver_win32\chromedriver.exe
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"appium:unicodeKeyboard":"True","appium:resetKeyboard":"True","appium:noReset":false,"appium:noSign":true,"appium:fullReset":false,"appium:automationName":"Uiautomator2","appium:app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v260.apk","appium:deviceName":"1df270ff","appium:recreateChromeDriverSessions":true,"appium:platformVersion":"7.1.1","appium:chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","appium:chromedriverExecutableDir":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver","platformName":"Android","appium:nativeWebScreenshot":true},"firstMatch":[{}]},"desiredCapabilities":{"deviceName":"1df270ff","chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","recreateChromeDriverSessions":true,"app"
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"1df270ff","chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","recreateChromeDriverSessions":true,"app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v260.apk","noReset":false,"unicodeKeyboard":"True","chromedriverExecutableDir":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver","noSign":true,"nativeWebScreenshot":true,"resetKeyboard":"True","platformVersion":"7.1.1","fullReset":false,"platformName":"Android","automationName":"Uiautomator2"},null,{"alwaysMatch":{"appium:unicodeKeyboard":"True","appium:resetKeyboard":"True","appium:noReset":false,"appium:noSign":true,"appium:fullReset":false,"appium:automationName":"Uiautomator2","appium:app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v260.apk","appium:deviceName":"1df270ff","appium:recreateChromeDriverSessions":true,"appium:platformVersion":"7...
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1528370841910 (19:27:21 GMT+0800 (中国标准时间))
[Appium] Creating new AndroidUiautomator2Driver (v1.12.0) session
[Appium] Capabilities:
[Appium] platformName: Android
[Appium] unicodeKeyboard: True
[Appium] resetKeyboard: True
[Appium] noReset: false
[Appium] noSign: true
[Appium] fullReset: false
[Appium] automationName: Uiautomator2
[Appium] app: D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v260.apk
[Appium] deviceName: 1df270ff
[Appium] recreateChromeDriverSessions: true
[Appium] platformVersion: 7.1.1
[Appium] chromedriverChromeMappingFile: D:\hcs\Documents\workspace\app_auto_android\lib\appbase\driver\tools\chromedriver\chromedriver.json
[Appium] chromedriverExecutableDir: D:\hcs\Documents\workspace\app_auto_android\lib\appbase\driver\tools\chromedriver
[Appium] nativeWebScreenshot: true
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities [object Object] were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.
[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.
[BaseDriver] Capability 'unicodeKeyboard' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'resetKeyboard' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Session created with session id: 39e86255-1b7e-4c0a-a4a9-14294bc3118e
[BaseDriver] Using local app 'D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v260.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_144
[ADB] Checking whether adb is present
[ADB] Found 2 'build-tools' folders under 'D:\hcs\Documents\Android-SDK' (newest first):
[ADB] D:/hcs/Documents/Android-SDK/build-tools/27.0.3
[ADB] D:/hcs/Documents/Android-SDK/build-tools/26.0.2
[ADB] Using adb.exe from D:\hcs\Documents\Android-SDK\platform-tools\adb.exe
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android '7.1.1'
[debug] [ADB] Setting device id to 1df270ff
[ADB] Getting device platform version
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 7.1.1
[AndroidDriver] Using device: 1df270ff
[debug] [ADB] Setting device id to 1df270ff
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 25
[debug] [ADB] Device API level: 25
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Using the alternative activity name detection method because of: Could not find apkanalyzer.bat in D:\hcs\Documents\Android-SDK\platform-tools\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\emulator\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\tools\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\tools\bin\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\build-tools\26.0.2\apkanalyzer.bat. Do you have the Android SDK installed at 'D:\hcs\Documents\Android-SDK'?
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from D:\hcs\Documents\Android-SDK\build-tools\27.0.3\aapt.exe
[ADB] Extracting package and launch activity from manifest
[ADB] Package name: 'com.crc.hrt'
[ADB] Main activity name: 'com.hrt.platform.activity.FlashActivity'
[debug] [AndroidDriver] Parsed package and activity are: com.crc.hrt/com.hrt.platform.activity.FlashActivity
[ADB] Getting device platform version
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 7.1.1
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell wm size'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell wm density'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell getprop ro.product.model'
[debug] [ADB] Current device property 'ro.product.model': ONEPLUS A5010
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell getprop ro.product.manufacturer'
[debug] [ADB] Current device property 'ro.product.manufacturer': OnePlus
[debug] [ADB] Device API level: 25
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Checking app cert for C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk
[ADB] Using apksigner.bat from D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat
[debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-11612-1ox5psz.c8ny\apksigner.bat' with args 'verify,--print-certs,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[debug] [ADB] 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' is not signed with debug cert.
[debug] [ADB] Zip-aligning 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[ADB] Checking whether zipalign is present
[ADB] Using zipalign.exe from D:\hcs\Documents\Android-SDK\build-tools\27.0.3\zipalign.exe
[debug] [ADB] Signing 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' with default cert
[debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-11612-rio233.v4yzd\apksigner.bat' with args 'sign,--key,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,--cert,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[debug] [ADB] Checking app cert for C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-11612-gjiy8e.zn74i\apksigner.bat' with args 'verify,--print-certs,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is not signed with debug cert.
[debug] [ADB] Zip-aligning 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] Signing 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' with default cert
[debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-11612-18vogjk.u4v9\apksigner.bat' with args 'sign,--key,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,--cert,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] Uninstalling io.appium.uiautomator2.server
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell pm list packages io.appium.uiautomator2.server'
[debug] [ADB] App is installed
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff uninstall io.appium.uiautomator2.server'
[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server' command output: Success
[ADB] io.appium.uiautomator2.server was successfully uninstalled
[debug] [ADB] Uninstalling io.appium.uiautomator2.server.test
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell pm list packages io.appium.uiautomator2.server.test'
[debug] [ADB] App is installed
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell am force-stop io.appium.uiautomator2.server.test'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff uninstall io.appium.uiautomator2.server.test'
[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server.test' command output: Success
[ADB] io.appium.uiautomator2.server.test was successfully uninstalled
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell pm list packages io.appium.uiautomator2.server'
[debug] [ADB] App is not installed
[debug] [ADB] App 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' not installed. Installing
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff install C\:\\Users\\hechangshu1\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v1.12.0.apk'
[debug] [ADB] Install command stdout: Success
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell pm list packages io.appium.uiautomator2.server.test'
[debug] [ADB] App is not installed
[debug] [ADB] App 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' not installed. Installing
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff install C\:\\Users\\hechangshu1\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] Install command stdout: Success
[debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell pm list instrumentation'
[debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff wait-for-device'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell pm list packages io.appium.settings'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell dumpsys package io.appium.settings'
[debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0')
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell ps'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Device API level: 25
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell appops set io.appium.settings android\:mock_location allow'
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'null' and country: 'null'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Enabling Unicode keyboard support
[debug] [AndroidDriver] Pushing unicode ime to device...
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff install C\:\\Users\\hechangshu1\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-android-ime\\bin\\UnicodeIME-debug.apk'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff install C\:\\Users\\hechangshu1\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-android-ime\\bin\\UnicodeIME-debug.apk'
[debug] [ADB] Application 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-ime\bin\UnicodeIME-debug.apk' already installed. Continuing.
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell settings get secure default_input_method'
[debug] [AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME
[debug] [AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell ime enable io.appium.android.ime/.UnicodeIME'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell ime set io.appium.android.ime/.UnicodeIME'
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Getting install status for io.appium.unlock
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell pm list packages io.appium.unlock'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.unlock'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell dumpsys package io.appium.unlock'
[debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0')
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff forward tcp\:8200 tcp\:6790'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell rm -rf /data/local/tmp/strings.json'
[debug] [AndroidDriver] Extracting strings from apk
[debug] [AndroidDriver] D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v260.apk
[debug] [AndroidDriver] null
[debug] [AndroidDriver] C:\Users\HECHAN~1\AppData\Local\Temp\com.crc.hrt
[debug] [ADB] Extracting strings for language: default
[ADB] Successfully extracted 1291 strings from 'D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v260.apk' resources for '(default)' configuration
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff push C\:\\Users\\HECHAN~1\\AppData\\Local\\Temp\\com.crc.hrt\\strings.json /data/local/tmp'
[debug] [ADB] Getting install status for com.crc.hrt
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell pm list packages com.crc.hrt'
[debug] [ADB] App is not installed
[debug] [ADB] Getting install status for com.crc.hrt
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell pm list packages com.crc.hrt'
[debug] [ADB] App is not installed
[debug] [ADB] App 'D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v260.apk' not installed. Installing
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff install D\:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v260.apk'
[debug] [ADB] Install command stdout: Success
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell am force-stop io.appium.uiautomator2.server'
[UiAutomator2] Starting uiautomator2 server 1.12.0
[UiAutomator2] Using UIAutomator2 server from 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' and test from 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Running command: 'adb -s 1df270ff shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner'
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online...
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8200/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","unicodeKeyboard":true,"resetKeyboard":true,"noReset":false,"noSign":true,"fullReset":false,"automationName":"Uiautomator2","app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v260.apk","deviceName":"1df270ff","recreateChromeDriverSessions":true,"platformVersion":"7.1.1","chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","chromedriverExecutableDir":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver","nativeWebScreenshot":true},"platformName":"Android","unicodeKeyboard":true,"resetKeyboard":true,"noReset":false,"noSign":true,"fullReset":false,"automationName":"Uiautomator2","app":"D:\\hcs\\Docum...
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":"Created Session"}
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell dumpsys window'
[AndroidDriver] Screen already unlocked, doing nothing
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'com.crc.hrt/com.hrt.platform.activity.FlashActivity'. Starting it ourselves
[debug] [ADB] Device API level: 25
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell am start -W -n com.crc.hrt/com.hrt.platform.activity.FlashActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[debug] [ADB] Waiting up to 20000ms for activity matching pkg: 'com.crc.hrt' and activity: 'com.hrt.platform.activity.FlashActivity' to be focused
[debug] [ADB] Possible activities, to be checked: 'com.hrt.platform.activity.FlashActivity', 'com.crc.hrt.com.hrt.platform.activity.FlashActivity'
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell dumpsys window windows'
[debug] [ADB] Found package: 'com.crc.hrt' and fully qualified activity name : 'com.hrt.platform.activity.FlashActivity'
[debug] [JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/appium/device/pixel_ratio] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":2.625}"
[debug] [JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/appium/device/system_bars] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":{\"statusBar\":63}}"
[debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/window/current/size] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":{\"height\":2034,\"width\":1080}}"
[Appium] New AndroidUiautomator2Driver session created successfully, session 39e86255-1b7e-4c0a-a4a9-14294bc3118e added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1528370870294 (19:27:50 GMT+0800 (中国标准时间))
[debug] [W3C] 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","unicodeKeyboard":true,"resetKeyboard":true,"noReset":false,"noSign":true,"fullReset":false,"automationName":"Uiautomator2","app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v260.apk","deviceName":"1df270ff","recreateChromeDriverSessions":true,"platformVersion":"7.1.1","chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","chromedriverExecutableDir":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver","nativeWebScreenshot":true},"platformName":"Android","unicodeKeyboard":true,"resetKeyboard":true,"noReset":false,"noSign":true,"fullReset":false,"automationName":"Uiautomator2","app":"D:\\hcs\\Documents\\w...
[HTTP] <-- POST /wd/hub/session 200 28398 ms - 1816
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/appium/device/unlock
[HTTP] {"sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e"}
[debug] [W3C] Calling AppiumDriver.unlock() with args: ["39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell dumpsys window'
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [W3C] Responding to client with driver.unlock() result: null
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/appium/device/unlock 200 121 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"xpath","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"//android.widget.TextView[@resource-id='com.crc.hrt:id/tv_header_title']/parent::android.widget.RelativeLayout[@resource-id='com.crc.hrt:id/rl_title']/following-sibling::android.widget.LinearLayout//android.widget.Button[@resource-id='com.crc.hrt:id/bn_left' and @text='下次再说']"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["xpath","//android.widget.TextView[@resource-id='com.crc.hrt:id/tv_header_title']/parent::android.widget.RelativeLayout[@resource-id='com.crc.hrt:id/rl_title']/following-sibling::android.widget.LinearLayout//android.widget.Button[@resource-id='com.crc.hrt:id/bn_left' and @text='下次再说']","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"xpath","selector":"//android.widget.TextView[@resource-id='com.crc.hrt:id/tv_header_title']/parent::android.widget.RelativeLayout[@resource-id='com.crc.hrt:id/rl_title']/following-sibling::android.widget.LinearLayout//android.widget.Button[@resource-id='com.crc.hrt:id/bn_left' and @text='下次再说']","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[{"ELEMENT":"4cf5e1d9-f68a-4387-9b46-a3795c1c5818"}]}
[debug] [W3C] Responding to client with driver.findElements() result: [{"element-6066-11e4-a52e-4f735466cecf":"4cf5e1d9-f68a-4387-9b46-a3795c1c5818"}]
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 126 ms - 90
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"xpath","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"//android.widget.TextView[@resource-id='com.crc.hrt:id/tv_header_title']/parent::android.widget.RelativeLayout[@resource-id='com.crc.hrt:id/rl_title']/following-sibling::android.widget.LinearLayout//android.widget.Button[@resource-id='com.crc.hrt:id/bn_left' and @text='下次再说']"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["xpath","//android.widget.TextView[@resource-id='com.crc.hrt:id/tv_header_title']/parent::android.widget.RelativeLayout[@resource-id='com.crc.hrt:id/rl_title']/following-sibling::android.widget.LinearLayout//android.widget.Button[@resource-id='com.crc.hrt:id/bn_left' and @text='下次再说']","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"xpath","selector":"//android.widget.TextView[@resource-id='com.crc.hrt:id/tv_header_title']/parent::android.widget.RelativeLayout[@resource-id='com.crc.hrt:id/rl_title']/following-sibling::android.widget.LinearLayout//android.widget.Button[@resource-id='com.crc.hrt:id/bn_left' and @text='下次再说']","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[{"ELEMENT":"f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0"}]}
[debug] [W3C] Responding to client with driver.findElements() result: [{"element-6066-11e4-a52e-4f735466cecf":"f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0"}]
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 68 ms - 90
[HTTP]
[HTTP] --> GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/displayed
[HTTP] {}
[debug] [W3C] Calling AppiumDriver.elementDisplayed() with args: ["f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [GET /element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/attribute/displayed] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/attribute/displayed] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":\"true\"}"
[debug] [W3C] Responding to client with driver.elementDisplayed() result: true
[HTTP] <-- GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/displayed 200 31 ms - 14
[HTTP]
[HTTP] --> GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/size
[HTTP] {}
[W3C] Driver proxy active, passing request on via HTTP proxy
[debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/size] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/size] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":{\"width\":328,\"height\":118}}"
[JSONWP Proxy] Replacing sessionId 82b20795-0dc0-494c-9f18-e329864041f7 with 39e86255-1b7e-4c0a-a4a9-14294bc3118e
[HTTP] <-- GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/size 200 29 ms - 98
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/touch/perform
[HTTP] {"sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","actions":[{"action":"tap","options":{"y":59,"x":164,"count":1,"element":"f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0"}}]}
[debug] [W3C] Calling AppiumDriver.performTouch() with args: [[{"action":"tap","options":{"y":59,"x":164,"count":1,"element":"f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0"}}],"39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[UiAutomator2] calling get location: f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0
[debug] [JSONWP Proxy] Proxying [GET /element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/location] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/location] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":{\"x\":212,\"y\":1144}}"
[debug] [JSONWP Proxy] Proxying [POST /element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/click] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/element/f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0/click] with body: {"element":"f66d4c6b-c3d7-49ad-ab53-92dd2b442ab0","x":376,"y":1203}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":true}
[debug] [W3C] Responding to client with driver.performTouch() result: null
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/touch/perform 200 96 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"id","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"com.crc.hrt:id/viewPager"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/viewPager","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"id","selector":"com.crc.hrt:id/viewPager","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[{"ELEMENT":"d3fbef59-611b-431e-88fd-bb4416bb7083"}]}
[debug] [W3C] Responding to client with driver.findElements() result: [{"element-6066-11e4-a52e-4f735466cecf":"d3fbef59-611b-431e-88fd-bb4416bb7083"}]
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 1101 ms - 90
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"id","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"com.crc.hrt:id/btn_to_go"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/btn_to_go","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"id","selector":"com.crc.hrt:id/btn_to_go","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[]}
[debug] [W3C] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 50 ms - 12
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"id","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"com.crc.hrt:id/btn_to_go"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/btn_to_go","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"id","selector":"com.crc.hrt:id/btn_to_go","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[]}
[debug] [W3C] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 36 ms - 12
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"id","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"com.crc.hrt:id/btn_to_go"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/btn_to_go","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"id","selector":"com.crc.hrt:id/btn_to_go","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[]}
[debug] [W3C] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 72 ms - 12
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"id","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"com.crc.hrt:id/btn_to_go"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/btn_to_go","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"id","selector":"com.crc.hrt:id/btn_to_go","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[]}
[debug] [W3C] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 60 ms - 12
[HTTP]
[HTTP] --> GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/window/rect
[HTTP] {}
[debug] [W3C] Calling AppiumDriver.getWindowRect() with args: ["39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/window/current/size] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":{\"height\":2034,\"width\":1080}}"
[debug] [W3C] Responding to client with driver.getWindowRect() result: {"width":1080,"height":2034,"x":0,"y":0}
[HTTP] <-- GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/window/rect 200 46 ms - 50
[HTTP]
[HTTP] --> GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/window/rect
[HTTP] {}
[debug] [W3C] Calling AppiumDriver.getWindowRect() with args: ["39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/window/current/size] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":{\"height\":2034,\"width\":1080}}"
[debug] [W3C] Responding to client with driver.getWindowRect() result: {"width":1080,"height":2034,"x":0,"y":0}
[HTTP] <-- GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/window/rect 200 33 ms - 50
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/touch/perform
[HTTP] {"sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","actions":[{"action":"press","options":{"y":1017,"x":810}},{"action":"wait","options":{"ms":300}},{"action":"moveTo","options":{"y":1017,"x":270}},{"action":"release","options":{}}]}
[debug] [W3C] Calling AppiumDriver.performTouch() with args: [[{"action":"press","options":{"y":1017,"x":810}},{"action":"wait","options":{"ms":300}},{"action":"moveTo","options":{"y":1017,"x":270}},{"action":"release","options":{}}],"39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [POST /touch/perform] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/touch/perform] with body: {"startX":810,"startY":1017,"endX":270,"endY":1017,"steps":8}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":true}
[debug] [W3C] Responding to client with driver.performTouch() result: true
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/touch/perform 200 992 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"id","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"com.crc.hrt:id/btn_to_go"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/btn_to_go","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"id","selector":"com.crc.hrt:id/btn_to_go","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[]}
[debug] [W3C] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 526 ms - 12
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"id","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"com.crc.hrt:id/btn_to_go"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/btn_to_go","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"id","selector":"com.crc.hrt:id/btn_to_go","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[]}
[debug] [W3C] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 657 ms - 12
[HTTP]
[HTTP] --> GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/window/rect
[HTTP] {}
[debug] [W3C] Calling AppiumDriver.getWindowRect() with args: ["39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/window/current/size] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":{\"height\":2034,\"width\":1080}}"
[debug] [W3C] Responding to client with driver.getWindowRect() result: {"width":1080,"height":2034,"x":0,"y":0}
[HTTP] <-- GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/window/rect 200 51 ms - 50
[HTTP]
[HTTP] --> GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/window/rect
[HTTP] {}
[debug] [W3C] Calling AppiumDriver.getWindowRect() with args: ["39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/window/current/size] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":{\"height\":2034,\"width\":1080}}"
[debug] [W3C] Responding to client with driver.getWindowRect() result: {"width":1080,"height":2034,"x":0,"y":0}
[HTTP] <-- GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/window/rect 200 28 ms - 50
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/touch/perform
[HTTP] {"sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","actions":[{"action":"press","options":{"y":1017,"x":810}},{"action":"wait","options":{"ms":300}},{"action":"moveTo","options":{"y":1017,"x":270}},{"action":"release","options":{}}]}
[debug] [W3C] Calling AppiumDriver.performTouch() with args: [[{"action":"press","options":{"y":1017,"x":810}},{"action":"wait","options":{"ms":300}},{"action":"moveTo","options":{"y":1017,"x":270}},{"action":"release","options":{}}],"39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [POST /touch/perform] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/touch/perform] with body: {"startX":810,"startY":1017,"endX":270,"endY":1017,"steps":8}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":true}
[debug] [W3C] Responding to client with driver.performTouch() result: true
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/touch/perform 200 981 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"id","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"com.crc.hrt:id/btn_to_go"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/btn_to_go","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"id","selector":"com.crc.hrt:id/btn_to_go","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[{"ELEMENT":"1d24009f-a5d0-4b4e-8bd2-c6acec510e43"}]}
[debug] [W3C] Responding to client with driver.findElements() result: [{"element-6066-11e4-a52e-4f735466cecf":"1d24009f-a5d0-4b4e-8bd2-c6acec510e43"}]
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 242 ms - 90
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"id","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"com.crc.hrt:id/btn_to_go"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/btn_to_go","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"id","selector":"com.crc.hrt:id/btn_to_go","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[{"ELEMENT":"0d4f08ee-1f2d-432e-9564-fa1756bd2fa9"}]}
[debug] [W3C] Responding to client with driver.findElements() result: [{"element-6066-11e4-a52e-4f735466cecf":"0d4f08ee-1f2d-432e-9564-fa1756bd2fa9"}]
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 49 ms - 90
[HTTP]
[HTTP] --> GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/element/0d4f08ee-1f2d-432e-9564-fa1756bd2fa9/displayed
[HTTP] {}
[debug] [W3C] Calling AppiumDriver.elementDisplayed() with args: ["0d4f08ee-1f2d-432e-9564-fa1756bd2fa9","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [GET /element/0d4f08ee-1f2d-432e-9564-fa1756bd2fa9/attribute/displayed] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/element/0d4f08ee-1f2d-432e-9564-fa1756bd2fa9/attribute/displayed] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":\"true\"}"
[debug] [W3C] Responding to client with driver.elementDisplayed() result: true
[HTTP] <-- GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/element/0d4f08ee-1f2d-432e-9564-fa1756bd2fa9/displayed 200 40 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/element/0d4f08ee-1f2d-432e-9564-fa1756bd2fa9/click
[HTTP] {"sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","id":"0d4f08ee-1f2d-432e-9564-fa1756bd2fa9"}
[debug] [W3C] Calling AppiumDriver.click() with args: ["0d4f08ee-1f2d-432e-9564-fa1756bd2fa9","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [POST /element/0d4f08ee-1f2d-432e-9564-fa1756bd2fa9/click] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/element/0d4f08ee-1f2d-432e-9564-fa1756bd2fa9/click] with body: {"element":"0d4f08ee-1f2d-432e-9564-fa1756bd2fa9"}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":true}
[debug] [W3C] Responding to client with driver.click() result: true
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/element/0d4f08ee-1f2d-432e-9564-fa1756bd2fa9/click 200 64 ms - 14
[HTTP]
[HTTP] --> GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/screenshot
[HTTP] {}
[debug] [W3C] Calling AppiumDriver.getScreenshot() with args: ["39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [JSONWP Proxy] Proxying [GET /screenshot] to [GET http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/screenshot] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":\"iVBORw0KGgoAAAANSUhEUgAABDgAAAhwCAIAAABH2RmtAAAAA3NCSVQICAjb4U\\/gAAAgAElEQVR4\\nnOzdeZzdZWHo\\/+f5ntmSTFaykYRsLCFhsyCKKOBWrNhSxat2EXBpq\\/bXqui993fb3vbe1qXaVqt2\\nEWhFUawoUlERNxAFxEpAFhUSwpJAyJ6Qdfbzfe4f3zOTmcnCkPWJvN8vXuRk5pzvfDOgnM88W5w+\\n\\/egAAACQk+Jw3wAAAMBwQgUAAMiOUAEAALIjVAAAgOwIFQAAIDtCBQAAyI5QAQAAsiNUAACA7AgV\\nAAAgO0IFAADIjlABAACy03S4bwAAALL27ve8+7RTT93LE779ne\\/c\\/P2bN2\\/efMhu6blAqAAAHGDN\\nzc2jRo2KMVa\\/TSl1dnb29vYe3rtin5126qlnn332Xp6w7JFHbvvRbYfsfp4jhAoAwH6JMU6cOHHR\\nSYsWLVr0vNNOmz9\\/\\/uBKqaSUuru7H3vssfvuv\\/+Xv\\/zlQw8+tGnTprIsD9c9V2bOnNnU9MzvBvv6\\n+rZs2bJ9+\\/bn5i1xuMTp048+3PcAAHCEaW5ubm5uPnrG0eeee+5vX3jhnDlznu0VnnzyyW\\/eeOOt\\nt966etXqnp6eQz\\/esuDEBdOmTRv585966qlHH3n04N1PyOaWdp3odeKJJ06aNGkvL1m5cuWqVav6\\n+vqq35Zl+Z3vfveWm28xGWx\\/HIZQmTJlymWXvfeCCy4Y+Uu+\\/e1vf\\/zj\\/7h+\\/fqDd1cjdO555\\/7P\\n\\/\\/E\\/bvzWty7\\/9OX7f7UZM2a8+CUvfuCBB5YuWbr\\/VwMADrYY41FHHTV7zuznP\\/\\/5v\\/7KV86dO3ck\\nP\\/7fi3q9\\...
[debug] [W3C] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABDgAAAhwCAIAAABH2RmtAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4\nnOzdeZzdZWHo/+f5ntmSTFaykYRsLCFhsyCKKOBWrNhSxat2EXBpq/bXqui993fb3vbe1qXaVqt2\nEWhFUawoUlERNxAFxEpAFhUSwpJAyJ6Qdfbzfe4f3zOTmcnCkPWJvN8vXuRk5pzvfDOgnM88W5w+\n/egAAACQk+Jw3wAAAMBwQgUAAMiOUAEAALIjVAAAgOwIFQAAIDtCBQAAyI5QAQAAsiNUAACA7AgV\nAAAgO0IFAADIjlABAACy03S4bwAAALL27ve8+7RTT93LE779ne/c/P2bN2/efMhu6blAqAAAHGDN\nzc2jRo2KMVa/TSl1dnb29vYe3rtin5126qlnn332Xp6w7JFHbvvRbYfsfp4jhAoAwH6JMU6cOHHR\nSYsWLVr0vNNOmz9//uBKqaSUuru7H3vssfvuv/+Xv/zlQw8+tGnTprIsD9c9V2bOnNnU9MzvBvv6\n+rZs2bJ9+/bn5i1xuMTp048+3PcAAHCEaW5ubm5uPnrG0eeee+5vX3jhnDlznu0VnnzyyW/eeOOt\nt966etXqnp6eQz/esuDEBdOmTRv585966qlHH3n04N1PyOaWdp3odeKJJ06aNGkvL1m5cuWqVav6\n+vqq35Zl+Z3vfveWm28xGWx/HIZQmTJlymWXvfeCCy4Y+Uu+/e1vf/zj/7h+/fqDd1cjdO555/7P\n//E/bvzWty7/9OX7f7UZM2a8+CUvfuCBB5YuWbr/VwMADrYY41FHHTV7zuznP//5v/7KV86dO3ck\nP/7fi3q9/uSTT37/5pt/+tOfPrHiiY0bNx6oYZZjjzt27Zq1expzeLZJUHnwlw9u2LDhV+mWdusz\nn/n3vU/0GomrP//5qz5z1bp16w7ILT03HYapXx/84Ade+MIXPquXvPrVr540adI73vHOg3RLe9fc\n3HzCgh...
[HTTP] <-- GET /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/screenshot 200 287 ms - 130794
[HTTP]
[HTTP] --> POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements
[HTTP] {"using":"-android uiautomator","sessionId":"39e86255-1b7e-4c0a-a4a9-14294bc3118e","value":"new UiSelector().resourceId(\"com.crc.hrt:id/tv_dialog_text\").textContains(\"是否将当前地址切换\")"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["-android uiautomator","new UiSelector().resourceId(\"com.crc.hrt:id/tv_dialog_text\").textContains(\"是否
将当前地址切换\")","39e86255-1b7e-4c0a-a4a9-14294bc3118e"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7/elements] with body: {"strategy":"-android uiautomator","selector":"new UiSelector().resourceId(\"com.crc.hrt:id/tv_dialog_text\").textContains(\"是否将当前地址切换\")","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"82b20795-0dc0-494c-9f18-e329864041f7","status":0,"value":[]}
[debug] [W3C] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/39e86255-1b7e-4c0a-a4a9-14294bc3118e/elements 200 430 ms - 12
[HTTP]
[BaseDriver] Shutting down because we waited 60 seconds for a command
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8200/wd/hub/session/82b20795-0dc0-494c-9f18-e329864041f7] with no body
[Appium] Closing session, cause was 'New Command Timeout of 60 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability'
[Appium] Removing session 39e86255-1b7e-4c0a-a4a9-14294bc3118e from our master session list
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"82b20795-0dc0-494c-9f18-e329864041f7\",\"status\":0,\"value\":\"Session deleted\"}"
[debug] [UiAutomator2] Resetting IME to 'io.appium.android.ime/.UnicodeIME'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell ime set io.appium.android.ime/.UnicodeIME'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff shell am force-stop com.crc.hrt'
[debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[debug] [UiAutomator2] [UIAutomator2] Time: 77.107
[debug] [UiAutomator2] [UIAutomator2] OK (1 test)
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1df270ff forward --remove tcp\:8200'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment