Here is the appium server log
The server is running
[h-t-t-p] Waiting until the server is closed
[h-t-t-p] Received server close event
[Appium] Welcome to Appium v1.22.0
[Appium] Non-default server args:
[Appium] relaxedSecurityEnabled: true
[Appium] allowInsecure: {
[Appium] }
[Appium] denyInsecure: {
[Appium] }
[Appium] Appium REST h-t-t-p interface listener started on 0.0.0.0:4723
[h-t-t-p] --> POST /wd/hub/session
[h-t-t-p] {“desiredCapabilities”:{“appActivity”:“com.android.calculator2.Calculator”,“appPackage”:“com.google.android.calculator”,“automationName”:“Appium”,“platformName”:“Android”,“deviceName”:“QV7810JB8G”,“platformVersion”:“11”},“capabilities”:{“firstMatch”:[{“appium:appActivity”:“com.android.calculator2.Calculator”,“appium:appPackage”:“com.google.android.calculator”,“appium:automationName”:“Appium”,“appium:deviceName”:“QV7810JB8G”,“platformName”:“android”,“appium:platformVersion”:“11”}]}}
[W3C] Calling AppiumDriver.createSession() with args: [{“appActivity”:“com.android.calculator2.Calculator”,“appPackage”:“com.google.android.calculator”,“automationName”:“Appium”,“platformName”:“Android”,“deviceName”:“QV7810JB8G”,“platformVersion”:“11”},null,{“firstMatch”:[{“appium:appActivity”:“com.android.calculator2.Calculator”,“appium:appPackage”:“com.google.android.calculator”,“appium:automationName”:“Appium”,“appium:deviceName”:“QV7810JB8G”,“platformName”:“android”,“appium:platformVersion”:“11”}]}]
[BaseDriver] Event ‘newSessionRequested’ logged at 1677053182149 (16:06:22 GMT+0800 (Hong Kong Standard Time))
[Appium]
[Appium] ======================================================================
[Appium] DEPRECATION WARNING:
[Appium]
[Appium] The ‘automationName’ capability was not provided in the desired
[Appium] capabilities for this Android session
[Appium]
[Appium] Setting ‘automationName=UiAutomator2’ by default and using the
[Appium] UiAutomator2 Driver
[Appium]
[Appium] The next major version of Appium (2.x) will require the
[Appium] ‘automationName’ capability to be set for all sessions on all
[Appium] platforms
[Appium]
[Appium] In previous versions (Appium <= 1.13.x), the default was
[Appium] ‘automationName=UiAutomator1’
[Appium]
[Appium] If you wish to use that automation instead of UiAutomator2, please
[Appium] add ‘automationName=UiAutomator1’ to your desired capabilities
[Appium]
[Appium] For more information about drivers, please visit
[Appium] h-t-t-p://appium.io/docs/en/about-appium/intro/ and explore the
[Appium] ‘Drivers’ menu
[Appium]
[Appium] ======================================================================
[Appium]
[Appium] Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session
[Appium] Applying relaxed security to ‘AndroidUiautomator2Driver’ as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[BaseDriver] Creating session with W3C capabilities: {
[BaseDriver] “alwaysMatch”: {
[BaseDriver] “platformName”: “android”,
[BaseDriver] “appium:appActivity”: “com.android.calculator2.Calculator”,
[BaseDriver] “appium:appPackage”: “com.google.android.calculator”,
[BaseDriver] “appium:automationName”: “Appium”,
[BaseDriver] “appium:deviceName”: “QV7810JB8G”,
[BaseDriver] “appium:platformVersion”: “11”
[BaseDriver] },
[BaseDriver] “firstMatch”: [
[BaseDriver] {}
[BaseDriver] ]
[BaseDriver] }
[BaseDriver] Session created with session id: f2af8635-a07f-4872-af0b-d9066b37624d
[UiAutomator2] Starting ‘com.google.android.calculator’ directly on the device
[ADB] Found 5 ‘build-tools’ folders under ‘/Users/raymond/Library/Android/sdk’ (newest first):
[ADB] /Users/raymond/Library/Android/sdk/build-tools/34.0.0-rc1
[ADB] /Users/raymond/Library/Android/sdk/build-tools/33.0.2
[ADB] /Users/raymond/Library/Android/sdk/build-tools/33.0.1
[ADB] /Users/raymond/Library/Android/sdk/build-tools/30.0.3
[ADB] /Users/raymond/Library/Android/sdk/build-tools/29.0.2
[ADB] Using ‘adb’ from ‘/Users/raymond/Library/Android/sdk/platform-tools/adb’
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 start-server’
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices
[ADB] Connected devices: [{“udid”:“QV7810JB8G”,“state”:“device”}]
[AndroidDriver] Looking for a device with Android ‘11.0.0’
[ADB] Setting device id to QV7810JB8G
[ADB] Getting device platform version
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell getprop ro.build.version.release’
[ADB] Current device property ‘ro.build.version.release’: 11
[AndroidDriver] Using device: QV7810JB8G
[ADB] Using ‘adb’ from ‘/Users/raymond/Library/Android/sdk/platform-tools/adb’
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 start-server’
[ADB] Setting device id to QV7810JB8G
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell getprop ro.build.version.sdk’
[ADB] Current device property ‘ro.build.version.sdk’: 30
[ADB] Getting device platform version
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell getprop ro.build.version.release’
[ADB] Current device property ‘ro.build.version.release’: 11
[ADB] Device API level: 30
[UiAutomator2] Relaxing hidden api policy
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell ‘settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1’’
[AndroidDriver] No app sent in, not parsing package/activity
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G wait-for-device’
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell echo ping’
[AndroidDriver] Pushing settings apk to device…
[ADB] Getting install status for io.appium.settings
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell dumpsys package io.appium.settings’
[ADB] ‘io.appium.settings’ is not installed
[ADB] App ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk’ is not installed
[ADB] Installing ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk’
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G help’
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G features’
[ADB] The application at ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk’ will not be cached, because the device under test has confirmed the support of streamed installs
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G install -g ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk’’
[ADB] The installation of ‘settings_apk-debug.apk’ took 5749ms
[ADB] Install command stdout: Performing Streamed Install
[ADB] Success
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell ‘pgrep --help; echo $?’’
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)’
[ADB] Starting Appium Settings app
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell am start -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)’
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell appops set io.appium.settings android:mock_location allow’
[Logcat] Starting logs capture with command: /Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G logcat -v threadtime
[UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200
[ADB] Forwarding system: 8200 to device: 6790
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G forward tcp:8200 tcp:6790’
[ADB] Getting install status for io.appium.uiautomator2.server
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell dumpsys package io.appium.uiautomator2.server’
[ADB] ‘io.appium.uiautomator2.server’ is not installed
[ADB] App ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk’ is not installed
[UiAutomator2] io.appium.uiautomator2.server installation state: notInstalled
[ADB] Checking app cert for /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk
[ADB] Using ‘apksigner.jar’ from ‘/Users/raymond/Library/Android/sdk/build-tools/34.0.0-rc1/lib/apksigner.jar’
[ADB] Starting apksigner: /Users/raymond/Library/Java/JavaVirtualMachines/openjdk-19.0.2/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/raymond/Library/Android/sdk/build-tools/34.0.0-rc1/lib/apksigner.jar verify --print-certs ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk’
[ADB] apksigner stdout: Signer #1 certificate DN: [email protected], CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[ADB]
[ADB] sha256 hash did match for ‘appium-uiautomator2-server-v4.24.0.apk’
[ADB] ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk’ is signed with the default certificate
[ADB] Getting install status for io.appium.uiautomator2.server.test
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell dumpsys package io.appium.uiautomator2.server.test’
[ADB] ‘io.appium.uiautomator2.server.test’ is not installed
[ADB] Checking app cert for /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[ADB] Starting apksigner: /Users/raymond/Library/Java/JavaVirtualMachines/openjdk-19.0.2/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/raymond/Library/Android/sdk/build-tools/34.0.0-rc1/lib/apksigner.jar verify --print-certs ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’
[ADB] apksigner stdout: Signer #1 certificate DN: [email protected], CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[ADB]
[ADB] sha256 hash did match for ‘appium-uiautomator2-server-debug-androidTest.apk’
[ADB] ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’ is signed with the default certificate
[UiAutomator2] Server packages are going to be (re)installed
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G version’
[ADB] The application at ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk’ will not be cached, because the device under test has confirmed the support of streamed installs
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G install -r --no-incremental ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk’’
[ADB] The installation of ‘appium-uiautomator2-server-v4.24.0.apk’ took 539ms
[ADB] Install command stdout: Performing Streamed Install
[ADB] Success
[ADB] The application at ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’ will not be cached, because the device under test has confirmed the support of streamed installs
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G install -r --no-incremental ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’’
[ADB] The installation of ‘appium-uiautomator2-server-debug-androidTest.apk’ took 419ms
[ADB] Install command stdout: Performing Streamed Install
[ADB] Success
[UiAutomator2] Waiting up to 30000ms for services to be available
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell pm list instrumentation’
[UiAutomator2] Instrumentation target ‘io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner’ is available
[ADB] Adding packages [“io.appium.settings”,“io.appium.uiautomator2.server”,“io.appium.uiautomator2.server.test”] to Doze whitelist
[ADB] Got the following command chunks to execute: [[“dumpsys”,“deviceidle”,“whitelist”,"+io.appium.settings",";",“dumpsys”,“deviceidle”,“whitelist”,"+io.appium.uiautomator2.server",";",“dumpsys”,“deviceidle”,“whitelist”,"+io.appium.uiautomator2.server.test",";"]]
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;’
[UiAutomator2] No app capability. Assuming it is already on the device
[ADB] Getting install status for com.google.android.calculator
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell dumpsys package com.google.android.calculator’
[ADB] ‘com.google.android.calculator’ is installed
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell am force-stop com.google.android.calculator’
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell pm clear com.google.android.calculator’
[AndroidDriver] Performed fast reset on the installed ‘com.google.android.calculator’ application (stop and clear)
[UiAutomator2] Performing shallow cleanup of automation leftovers
[UiAutomator2] No obsolete sessions have been detected (socket hang up)
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell am force-stop io.appium.uiautomator2.server.test’
[UiAutomator2] Starting UIAutomator2 server 4.24.0
[UiAutomator2] Using UIAutomator2 server from ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk’ and test from ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’
[UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online…
[ADB] Creating ADB subprocess with args: ["-P",5037,"-s",“QV7810JB8G”,“shell”,“am”,“instrument”,"-w","-e",“disableAnalytics”,true,“io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner”]
[WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[WD Proxy] Proxying [GET /status] to [GET h-t-t-p://127.0.0.1:8200/wd/hub/status] with no body
[WD Proxy] socket hang up
[Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[WD Proxy] Proxying [GET /status] to [GET h-t-t-p://127.0.0.1:8200/wd/hub/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[WD Proxy] Proxying [GET /status] to [GET h-t-t-p://127.0.0.1:8200/wd/hub/status] with no body
[WD Proxy] Got response with status 200: {“sessionId”:“None”,“value”:{“message”:“UiAutomator2 Server is ready to accept commands”,“ready”:true}}
[UiAutomator2] The initialization of the instrumentation process took 2113ms
[WD Proxy] Matched ‘/session’ to command name ‘createSession’
[WD Proxy] Proxying [POST /session] to [POST h-t-t-p://127.0.0.1:8200/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”,“appActivity”:“com.android.calculator2.Calculator”,“appPackage”:“com.google.android.calculator”,“automationName”:“Appium”,“deviceName”:“QV7810JB8G”,“platformVersion”:“11”},“platformName”:“android”,“appActivity”:“com.android.calculator2.Calculator”,“appPackage”:“com.google.android.calculator”,“automationName”:“Appium”,“deviceName”:“QV7810JB8G”,“platformVersion”:“11”,“deviceUDID”:“QV7810JB8G”}],“alwaysMatch”:{}}}
[WD Proxy] Got response with status 200: {“sessionId”:“e3e507e9-03ec-467a-8c1e-f6c4e3976c74”,“value”:{“capabilities”:{“firstMatch”:[{“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“android”,“appActivity”:“com.android.calculator2.Calculator”,“appPackage”:“com.google.android.calculator”,“automationName”:“Appium”,“deviceName”:“QV7810JB8G”,“platformVersion”:“11”},“platformName”:“android”,“appActivity”:“com.android.calculator2.Calculator”,“appPackage”:“com.google.android.calculator”,“automationName”:“Appium”,“deviceName”:“QV7810JB8G”,“platformVersion”:“11”,“deviceUDID”:“QV7810JB8G”}],“alwaysMatch”:{}},“sessionId”:“e3e507e9-03ec-467a-8c1e-f6c4e3976c74”}}
[WD Proxy] Determined the downstream protocol as ‘W3C’
[WD Proxy] Proxying [GET /appium/device/info] to [GET h-t-t-p://127.0.0.1:8200/wd/hub/session/e3e507e9-03ec-467a-8c1e-f6c4e3976c74/appium/device/info] with no body
[WD Proxy] Got response with status 200: {“sessionId”:“e3e507e9-03ec-467a-8c1e-f6c4e3976c74”,“value”:{“androidId”:“e570ee1725f2054a”,“apiVersion”:“30”,“bluetooth”:{“state”:“OFF”},“brand”:“Sony”,“carrierName”:"",“displayDensity”:420,“locale”:“zh_HK_#Hant”,“manufacturer”:“Sony”,“model”:“XQ-BC72”,“networks”:[{“capabilities”:{“SSID”:null,“linkDownBandwidthKbps”:352000,“linkUpstreamBandwidthKbps”:357734,“networkCapabilities”:“NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED”,“signalStrength”:-37,“transportTypes”:“TRANSPORT_WIFI”},“detailedState”:“CONNECTED”,“extraInfo”:"",“isAvailable”:true,“isConnected”:true,“isFailover”:false,“isRoaming”:false,“state”:“CONNECTED”,“subtype”:0,“subtypeName”:"",“type”:1,“typeName”:“WIFI”}],“platformVersion”:“11”,“realDisplaySize”:“1096x2560”,“timeZone”:“Asia/Hong_Kong”}}
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell dumpsys window’
[AndroidDriver] Screen already unlocked, doing nothing
[UiAutomator2] Starting 'com.google.android.calculator/com.android.calculator2.Calculator and waiting for ‘com.google.android.calculator/com.android.calculator2.Calculator’
[ADB] Running ‘/Users/raymond/Library/Android/sdk/platform-tools/adb -P 5037 -s QV7810JB8G shell am start -W -n com.google.android.calculator/com.android.calculator2.Calculator -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’
[WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET h-t-t-p://127.0.0.1:8200/wd/hub/session/e3e507e9-03ec-467a-8c1e-f6c4e3976c74/appium/device/pixel_ratio] with no body
[WD Proxy] Got response with status 200: {“sessionId”:“e3e507e9-03ec-467a-8c1e-f6c4e3976c74”,“value”:2.625}
[WD Proxy] Matched ‘/appium/device/system_bars’ to command name ‘getSystemBars’
[WD Proxy] Proxying [GET /appium/device/system_bars] to [GET h-t-t-p://127.0.0.1:8200/wd/hub/session/e3e507e9-03ec-467a-8c1e-f6c4e3976c74/appium/device/system_bars] with no body
[WD Proxy] Got response with status 200: {“sessionId”:“e3e507e9-03ec-467a-8c1e-f6c4e3976c74”,“value”:{“statusBar”:63}}
[WD Proxy] Matched ‘/window/current/size’ to command name ‘getWindowSize’
[WD Proxy] Proxying [GET /window/current/size] to [GET h-t-t-p://127.0.0.1:8200/wd/hub/session/e3e507e9-03ec-467a-8c1e-f6c4e3976c74/window/current/size] with no body
[WD Proxy] Got response with status 200: {“sessionId”:“e3e507e9-03ec-467a-8c1e-f6c4e3976c74”,“value”:{“height”:2434,“width”:1096}}
[Appium] New AndroidUiautomator2Driver session created successfully, session f2af8635-a07f-4872-af0b-d9066b37624d added to master session list
[BaseDriver] Event ‘newSessionStarted’ logged at 1677053196711 (16:06:36 GMT+0800 (Hong Kong Standard Time))
[W3C (f2af8635)] Cached the protocol value ‘W3C’ for the new session f2af8635-a07f-4872-af0b-d9066b37624d
[W3C (f2af8635)] 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”,“appActivity”:“com.android.calculator2.Calculator”,“appPackage”:“com.google.android.calculator”,“automationName”:“Appium”,“deviceName”:“QV7810JB8G”,“platformVersion”:“11”},“platformName”:“android”,“appActivity”:“com.android.calculator2.Calculator”,“appPackage”:“com.google.android.calculator”,“automationName”:“Appium”,“deviceName”:“QV7810JB8G”,“platformVersion”:“11”,“deviceUDID”:“QV7810JB8G”,“deviceApiLevel”:30,“deviceScreenSize”:“1096x2560”,“deviceScreenDensity”:420,“deviceModel”:“XQ-BC72”,“deviceManufacturer”:“Sony”,“pixelRatio”:2.625,“statBarHeight”:63,“viewportRect”:{“left”:0,“top”:63,“width”:1096,“height”:2371}}}
[h-t-t-p] <-- POST /wd/hub/session 200 14570 ms - 932
[h-t-t-p]
[h-t-t-p] --> POST /wd/hub/session/f2af8635-a07f-4872-af0b-d9066b37624d/element
[h-t-t-p] {“using”:“id”,“value”:“com.android.calculator2:id/digit_7”}
[W3C (f2af8635)] Calling AppiumDriver.findElement() with args: [“id”,“com.android.calculator2:id/digit_7”,“f2af8635-a07f-4872-af0b-d9066b37624d”]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, css selector, -android uiautomator
[BaseDriver] Waiting up to 0 ms for condition
[WD Proxy] Matched ‘/element’ to command name ‘findElement’
[WD Proxy] Proxying [POST /element] to [POST h-t-t-p://127.0.0.1:8200/wd/hub/session/e3e507e9-03ec-467a-8c1e-f6c4e3976c74/element] with body: {“strategy”:“id”,“selector”:“com.android.calculator2:id/digit_7”,“context”:"",“multiple”:false}
[WD Proxy] Got response with status 404: {“sessionId”:“e3e507e9-03ec-467a-8c1e-f6c4e3976c74”,“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.safeHandle(FindElement.java:70)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:59)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:264)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleh-t-t-pRequest(AppiumServlet.java:258)\n\tat io.appium.uiautomator2.h-t-t-p.ServerHandler.channelRead(ServerHandler.java:68)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann…
[W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[W3C (f2af8635)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[W3C (f2af8635)] at AndroidUiautomator2Driver.findElOrEls (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11)
[W3C (f2af8635)] at processTicksAndRejections (internal/process/task_queues.js:85:5)
[h-t-t-p] <-- POST /wd/hub/session/f2af8635-a07f-4872-af0b-d9066b37624d/element 404 633 ms - 504
[h-t-t-p]