该脚本有时候能正常跑起来 有时候又不行 (有尝试过是不是 chromedriver 版本的问题 但是没有找到这个版本 89.0.4389.72 才用了 89.0.4389.23)
appium1.9
微信 7.0.22
设备华为 mate10
系统 android10
脚本:
appium 日志:
不胜感激 希望各位大佬可以帮帮忙
麻烦发下完整的 appium log 内容?你截图里的报错是 session 长时间没有收到新命令后,appium 服务自动关闭 session 时的报错,对应的并不是你第一个截图里的脚本操作,所以这个错和你那个脚本对应的执行内容没有关系。
延长 newCommandTimeout,不然 appium 会杀掉,你设置了 600,太短了,你等待了五秒,appiumserver 早关了
今天重新跑了一遍没有复现出这个问题 但是出现了别的问题。但是 pycharm 没有报错 都正常执行。
[info] [Appium] Welcome to Appium v1.9.0
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"capabilities":{"firstMatch":[{"appium:automationName":"UiAutomator2","platformName":"Android","appium:platformVersion":"10","appium:deviceName":"10.10.105.39:5556","appium:appPackage":"com.tencent.mm","appium:appActivity":".ui.LauncherUI","appium:noReset":true,"appium:fullReset":false,"appium:newCommandTimeout":600,"appium:chromedriverExecutable":"/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver","appium:recreateChromeDriverSessions":true,"appium:chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"browserName":"","appium:skipDeviceInitialization":true,"appium:skipUnlock\t":true,"appium:sessionOverride":true}]},"desiredCapabilities":{"automationName":"UiAutomator2","platformName":"Android","platformVersion":"10","deviceName":"10.10.105.39:5556","appPackage":"com.tencent.mm","appActivity":".ui.LauncherUI","noReset":true,"fullReset":false,"newCommandTimeout":600,"chromedriverExecutable":"/Users/supermonkey/Downloads/ReservationUITest-master/MacDrive
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"automationName":"UiAutomator2","platformName":"Android","platformVersion":"10","deviceName":"10.10.105.39:5556","appPackage":"com.tencent.mm","appActivity":".ui.LauncherUI","noReset":true,"fullReset":false,"newCommandTimeout":600,"chromedriverExecutable":"/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver","recreateChromeDriverSessions":true,"chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"browserName":"","skipDeviceInitialization":true,"skipUnlock\t":true,"sessionOverride":true},null,{"firstMatch":[{"appium:automationName":"UiAutomator2","platformName":"Android","appium:platformVersion":"10","appium:deviceName":"10.10.105.39:5556","appium:appPackage":"com.tencent.mm","appium:appActivity":".ui.LauncherUI","appium:noReset":true,"appium:fullReset":false,"appium:newCommandTimeout":600,"appium:chromedriverExecutable":"/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver","appium:recreateChromeDriverSessions":true,"appium:chromeOptions":{"androi...
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1634633542032 (16:52:22 GMT+0800 (CST))
[info] [Appium] Creating new AndroidUiautomator2Driver (v1.16.0) session
[info] [Appium] Capabilities:
[info] [Appium] platformName: Android
[info] [Appium] browserName:
[info] [Appium] automationName: UiAutomator2
[info] [Appium] platformVersion: 10
[info] [Appium] deviceName: 10.10.105.39:5556
[info] [Appium] appPackage: com.tencent.mm
[info] [Appium] appActivity: .ui.LauncherUI
[info] [Appium] noReset: true
[info] [Appium] fullReset: false
[info] [Appium] newCommandTimeout: 600
[info] [Appium] chromedriverExecutable: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver
[info] [Appium] recreateChromeDriverSessions: true
[info] [Appium] chromeOptions: {
[info] [Appium] androidProcess: com.tencent.mm:appbrand0
[info] [Appium] }
[info] [Appium] skipDeviceInitialization: true
[info] [Appium] skipUnlock : true
[info] [Appium] sessionOverride: true
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"automationName":"UiAutoma... were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[warn] [BaseDriver] The following capabilities were provided, but are not recognized by appium: chromeOptions, skipDeviceInitialization, skipUnlock , sessionOverride.
[info] [BaseDriver] Session created with session id: bf507416-3631-48b2-9c0f-56d8d7a5ad9a
[info] [AndroidDriver] Java version is: 1.8.0_161
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[info] [AndroidDriver] Looking for a device with Android '10'
[debug] [ADB] Setting device id to 10.10.105.39:5556
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 10
[info] [AndroidDriver] Using device: 10.10.105.39:5556
[debug] [ADB] Setting device id to 10.10.105.39:5556
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.build.version.sdk'[debug] [ADB] Current device property 'ro.build.version.sdk': 29
[debug] [ADB] Device API level: 29
[warn] [AndroidDriver] No app sent in, not parsing package/activity
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 10
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell wm size'
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell wm density'
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.product.model'
[debug] [ADB] Current device property 'ro.product.model': ALP-AL00
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.product.manufacturer'[debug] [ADB] Current device property 'ro.product.manufacturer': HUAWEI
[debug] [ADB] Device API level: 29
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.15.1.apk
[debug] [ADB] Starting '/Users/supermonkey/Library/Android/sdk/build-tools/31.0.0/apksigner' with args '["verify","--print-certs","/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.15.1.apk"]'
[error] [W3C] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
[error] [W3C] at JWProxy.command$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:371:13)
[error] [W3C] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[error] [W3C] at GeneratorFunctionPrototype.invoke as _invoke
[error] [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
[error] [W3C] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[error] [W3C] at
[debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed.
[debug] [UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0[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] WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [ADB] WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [ADB]
[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.15.1.apk' is already signed.
[debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting '/Users/supermonkey/Library/Android/sdk/build-tools/31.0.0/apksigner' with args '["verify","--print-certs","/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.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] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed.
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list packages io.appium.uiautomator2.server'[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.uiautomator2.server'
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] The installed 'io.appium.uiautomator2.server' package does not require upgrade ('1.15.1' >= '1.15.1')
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list packages io.appium.uiautomator2.server.test'[warn] [ADB] Cannot read version codes of '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'
[warn] [ADB] Cannot read version names of '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'. Assuming correct app version is already installed
[debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list instrumentation'
[debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 wait-for-device'
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell echo ping'[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list packages io.appium.settings'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell dumpsys package io.appium.settings'
[debug] [ADB] The installed 'io.appium.settings' package does not require upgrade (29 > 5)
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps'[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Device API level: 29
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell appops set io.appium.settings android:mock_location allow'
[warn] [AndroidDriver] setDeviceLanguageCountry requires language or country.
[warn] [AndroidDriver] Got language: 'undefined' and country: 'undefined'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Getting install status for io.appium.unlock
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list packages io.appium.unlock'[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.unlock'
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 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 8202
[debug] [ADB] Forwarding system: 8202 to device: 6790
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 forward tcp:8202 tcp:6790'
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell rm -rf /data/local/tmp/strings.json'[debug] [UiAutomator2] No app capability. Assuming it is already on the device
[debug] [ADB] Checking app cert for undefined
[debug] [ADB] 'undefined' doesn't exist
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps'
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell am force-stop io.appium.uiautomator2.server'[debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus'
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body[debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus'
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body[debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus'
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}"
[debug] [JSONWP Proxy] Matched '/session' to command name 'createSession'
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8202/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","browserName":"","automationName":"UiAutomator2","platformVersion":"10","deviceName":"10.10.105.39:5556","appPackage":"com.tencent.mm","appActivity":".ui.LauncherUI","noReset":true,"fullReset":false,"newCommandTimeout":600,"chromedriverExecutable":"/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver","recreateChromeDriverSessions":true,"chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"skipDeviceInitialization":true,"skipUnlock\t":true,"sessionOverride":true},"platformName":"Android","browserName":"","automationName":"UiAutomator2","platformVersion":"10","deviceName":"10.10.105.39:5556","appPackage":"com.tencent.mm","appActivity":".ui.LauncherUI","noReset":true,"fullReset":false,"newCommandTimeout":600,"chromedriverExecu...
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"2c36d526-0cfb-4178-aa33-a048a15b1089","status":0,"value":"Created Session"}
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell dumpsys window'[info] [AndroidDriver] Screen already unlocked, doing nothing
[info] [UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'com.tencent.mm/.ui.LauncherUI'. Starting it ourselves
[debug] [ADB] Device API level: 29
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell am start -W -n com.tencent.mm/.ui.LauncherUI -S'[debug] [JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/appium/device/pixel_ratio] with body: {}[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"2c36d526-0cfb-4178-aa33-a048a15b1089\",\"status\":0,\"value\":3}"
[debug] [JSONWP Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars'
[debug] [JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/appium/device/system_bars] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"2c36d526-0cfb-4178-aa33-a048a15b1089\",\"status\":0,\"value\":{\"statusBar\":72}}"
[debug] [JSONWP Proxy] Matched '/window/current/size' to command name 'getWindowSize'
[debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/window/current/size] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"2c36d526-0cfb-4178-aa33-a048a15b1089\",\"status\":0,\"value\":{\"height\":1920,\"width\":1080}}"
[info] [Appium] New AndroidUiautomator2Driver session created successfully, session bf507416-3631-48b2-9c0f-56d8d7a5ad9a added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1634633549977 (16:52:29 GMT+0800 (CST))
[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","browserName":"","automationName":"UiAutomator2","platformVersion":"10","deviceName":"10.10.105.39:5556","appPackage":"com.tencent.mm","appActivity":".ui.LauncherUI","noReset":true,"fullReset":false,"newCommandTimeout":600,"chromedriverExecutable":"/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver","recreateChromeDriverSessions":true,"chromeOptions":{"androidProcess":"com.tencent.mm:appbrand0"},"skipDeviceInitialization":true,"skipUnlock\t":true,"sessionOverride":true},"platformName":"Android","browserName":"","automationName":"UiAutomator2","platformVersion":"10","deviceName":"10.10.105.39:5556","appPackage":"com.tencent.mm","appActivity":".ui.LauncherUI","noReset":true,"fullReset":false,"newCommandTimeout":600,"chromedriverExecutable":...
[info] [HTTP] <-- POST /wd/hub/session 200 7947 ms - 1596
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/timeouts
[info] [HTTP] {"implicit":25000}
[debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,25000,"bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [BaseDriver] W3C timeout argument: {"implicit":25000}}
[debug] [BaseDriver] Set implicit wait to 25000ms
[debug] [W3C] Responding to client with driver.timeouts() result: null
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/timeouts 200 2 ms - 14
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element
[info] [HTTP] {"using":"-android uiautomator","value":"new UiSelector().text(\"发现\")"}
[debug] [W3C] Calling AppiumDriver.findElement() with args: ["-android uiautomator","new UiSelector().text(\"发现\")","bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 25000 ms for condition
[debug] [JSONWP Proxy] Matched '/element' to command name 'findElement'
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {"strategy":"-android uiautomator","selector":"new UiSelector().text(\"发现\")","context":"","multiple":false}[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [BaseDriver] Waited for 625 ms so far[debug] [JSONWP Proxy] Matched '/element' to command name 'findElement'
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {"strategy":"-android uiautomator","selector":"new UiSelector().text(\"发现\")","context":"","multiple":false}[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [BaseDriver] Waited for 1192 ms so far[debug] [JSONWP Proxy] Matched '/element' to command name 'findElement'
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {"strategy":"-android uiautomator","selector":"new UiSelector().text(\"发现\")","context":"","multiple":false}[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"2c36d526-0cfb-4178-aa33-a048a15b1089","status":0,"value":{"ELEMENT":"6ca183fd-48bf-4750-8102-11c333c6fc7e"}}
[debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"6ca183fd-48bf-4750-8102-11c333c6fc7e"}
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element 200 4060 ms - 88
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click
[info] [HTTP] {"id":"6ca183fd-48bf-4750-8102-11c333c6fc7e"}
[debug] [W3C] Calling AppiumDriver.click() with args: ["6ca183fd-48bf-4750-8102-11c333c6fc7e","bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [JSONWP Proxy] Matched '/element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click' to command name 'click'
[debug] [JSONWP Proxy] Proxying [POST /element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click] with body: {"element":"6ca183fd-48bf-4750-8102-11c333c6fc7e"}[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"2c36d526-0cfb-4178-aa33-a048a15b1089","status":0,"value":true}
[debug] [W3C] Responding to client with driver.click() result: true
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click 200 2468 ms - 14
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element
[info] [HTTP] {"using":"-android uiautomator","value":"new UiSelector().text(\"小程序\")"}
[debug] [W3C] Calling AppiumDriver.findElement() with args: ["-android uiautomator","new UiSelector().text(\"小程序\")","bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 25000 ms for condition
[debug] [JSONWP Proxy] Matched '/element' to command name 'findElement'
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {"strategy":"-android uiautomator","selector":"new UiSelector().text(\"小程序\")","context":"","multiple":false}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"2c36d526-0cfb-4178-aa33-a048a15b1089","status":0,"value":{"ELEMENT":"06d80966-0822-4de1-9fa6-6caa4288131e"}}
[debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"06d80966-0822-4de1-9fa6-6caa4288131e"}
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element 200 164 ms - 88
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/06d80966-0822-4de1-9fa6-6caa4288131e/click
[info] [HTTP] {"id":"06d80966-0822-4de1-9fa6-6caa4288131e"}
[debug] [W3C] Calling AppiumDriver.click() with args: ["06d80966-0822-4de1-9fa6-6caa4288131e","bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [JSONWP Proxy] Matched '/element/06d80966-0822-4de1-9fa6-6caa4288131e/click' to command name 'click'
[debug] [JSONWP Proxy] Proxying [POST /element/06d80966-0822-4de1-9fa6-6caa4288131e/click] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element/06d80966-0822-4de1-9fa6-6caa4288131e/click] with body: {"element":"06d80966-0822-4de1-9fa6-6caa4288131e"}[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"2c36d526-0cfb-4178-aa33-a048a15b1089","status":0,"value":true}
[debug] [W3C] Responding to client with driver.click() result: true
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/06d80966-0822-4de1-9fa6-6caa4288131e/click 200 1622 ms - 14
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element
[info] [HTTP] {"using":"-android uiautomator","value":"new UiSelector().text(\"超级猩猩\")"}
[debug] [W3C] Calling AppiumDriver.findElement() with args: ["-android uiautomator","new UiSelector().text(\"超级猩猩\")","bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 25000 ms for condition
[debug] [JSONWP Proxy] Matched '/element' to command name 'findElement'
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {"strategy":"-android uiautomator","selector":"new UiSelector().text(\"超级猩猩\")","context":"","multiple":false}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"2c36d526-0cfb-4178-aa33-a048a15b1089","status":0,"value":{"ELEMENT":"a3877a67-9723-448d-8ab3-a4414b6df6aa"}}
[debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"a3877a67-9723-448d-8ab3-a4414b6df6aa"}
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element 200 102 ms - 88
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click
[info] [HTTP] {"id":"a3877a67-9723-448d-8ab3-a4414b6df6aa"}
[debug] [W3C] Calling AppiumDriver.click() with args: ["a3877a67-9723-448d-8ab3-a4414b6df6aa","bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [JSONWP Proxy] Matched '/element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click' to command name 'click'
[debug] [JSONWP Proxy] Proxying [POST /element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click] with body: {"element":"a3877a67-9723-448d-8ab3-a4414b6df6aa"}[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"2c36d526-0cfb-4178-aa33-a048a15b1089","status":0,"value":true}
[debug] [W3C] Responding to client with driver.click() result: true
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click 200 944 ms - 14
[info] [HTTP] [info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context
[info] [HTTP] {"name":"WEBVIEW_com.tencent.mm:appbrand0"}
[debug] [W3C] Calling AppiumDriver.setContext() with args: ["WEBVIEW_com.tencent.mm:appbrand0","bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [AndroidDriver] Getting a list of available webviews
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell cat /proc/net/unix'
[debug] [AndroidDriver] WEBVIEW_32080 mapped to pid 32080
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps'[debug] [AndroidDriver] Parsed pid: '32080' pkg: 'com.tencent.mm:appbrand0' from
[debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
[debug] [AndroidDriver] u0_a172 32080 611 51608684 379400 0 0 S com.tencent.mm:appbrand0
[debug] [AndroidDriver] Returning process name: 'com.tencent.mm:appbrand0'
[debug] [AndroidDriver] Found webviews: ["WEBVIEW_com.tencent.mm:appbrand0"]
[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.tencent.mm:appbrand0"]
[debug] [AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com.tencent.mm:appbrand0'
[debug] [AndroidDriver] A port was not given, using random port: 8021
[debug] [Chromedriver] Changed state to 'starting'
[info] [Chromedriver] Set chromedriver binary as: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver
[debug] [Chromedriver] Killing any old chromedrivers, running: pkill -15 -f "/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver.--port=8021"
[warn] [Chromedriver] No old chromedrivers seemed to exist
[debug] [Chromedriver] Cleaning any old adb forwarded port socket connections
[debug] [ADB] List forwarding ports
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 forward --list'
[info] [Chromedriver] Spawning chromedriver with: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver --url-base=wd/hub --port=8021 --adb-port=5037 --verbose[debug] [Chromedriver] Chromedriver version: '89.0.4389.23'
[debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus'
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8021/wd/hub/status] with no body
[debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus'
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8021/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"value\":{\"build\":{\"version\":\"89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294})\"},\"message\":\"ChromeDriver ready for new sessions.\",\"os\":{\"arch\":\"x86_64\",\"name\":\"Mac OS X\",\"version\":\"11.5.1\"},\"ready\":true}}"
[debug] [JSONWP Proxy] Matched '/session' to command name 'createSession'
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8021/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"androidProcess":"com.tencent.mm:appbrand0","androidDeviceSerial":"10.10.105.39:5556"}}}[debug] [Chromedriver] Webview version: 'Chrome/89.0.4389.72'[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"3771aa3fb3afd8b5699c84c827811c16","status":33,"value":{"message":"session not created\nfrom disconnected: received Inspector.detached event\n (Session info: chrome=89.0.4389.72)\n (Driver info: chromedriver=89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294}),platform=Mac OS X 11.5.1 x86_64)"}}
[debug] [MJSONWP] Matched JSONWP error code 33 to SessionNotCreatedError
[error] [Chromedriver] Error: Failed to start Chromedriver session: A new session could not be created. Details: [object Object] session not created
[error] [Chromedriver] from disconnected: received Inspector.detached event
[error] Chromedriver
[error] Chromedriver
[error] [Chromedriver] at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:78:13)
[error] [Chromedriver] at Chromedriver.callee$2$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/lib/chromedriver.js:448:13)
[error] [Chromedriver] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[error] [Chromedriver] at GeneratorFunctionPrototype.invoke as _invoke
[error] [Chromedriver] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
[error] [Chromedriver] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[error] [Chromedriver] at [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession'
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8021/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"androidProcess":"com.tencent.mm:appbrand0","androidDeviceSerial":"10.10.105.39:5556"}}}[debug] [Chromedriver] Webview version: 'Chrome/89.0.4389.72'[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"b7c67d37e09b532ccd82e16bf778abbc","status":0,"value":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294})"},"cssSelectorsEnabled":true,"databaseEnabled":false,"goog:chromeOptions":{"debuggerAddress":"localhost:53104"},"handlesAlerts":true,"hasTouchScreen":true,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"pageLoadStrategy":"normal","platform":"ANDROID","proxy":{},"rotatable":false,"setWindowRect":false,"strictFileInteractability":false,"takesHeapSnapshot":true,"takesScreenshot":true,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unexpectedAlertBehaviour":"ignore","version":"89.0.4389.72","webStorageEnabled":true,"webauthn:extension:largeBlob":false,"webauthn:virtualAuthenticators":false}}
[debug] [Chromedriver] Changed state to 'online'
[debug] [W3C] Responding to client with driver.setContext() result: null
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context 200 5703 ms - 14
[info] [HTTP]
[info] [HTTP] --> GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source
[info] [HTTP] {}
[info] [W3C] Driver proxy active, passing request on via HTTP proxy
[debug] [JSONWP Proxy] Matched '/wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source' to command name 'getPageSource'
[debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source] to [GET http://127.0.0.1:8021/wd/hub/session/b7c67d37e09b532ccd82e16bf778abbc/source] with body: {}[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"b7c67d37e09b532ccd82e16bf778abbc\",\"status\":0,\"value\":\"\u003Chtml lang=\\"zh-CN\\">\u003Chead>\u003Cstyle>html{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;height:100%;width:100%}body{cursor:default;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:100%;overflow-x:hidden;-webkit-text-size-adjust:none;text-size-adjust:none}:root{--safe-area-inset-top:0px;--safe-area-inset-bottom:0px;--safe-area-inset-left:0px;--safe-area-inset-right:0px}@supports (bottom:constant(safe-area-inset-bottom)){:root{--safe-area-inset-top:constant(safe-area-inset-top);--safe-area-inset-bottom:constant(safe-area-inset-bottom);--safe-area-inset-left:constant(safe-area-inset-left);--safe-area-inset-right:constant(safe-area-inset-right)}}@supports (bottom:env(safe-area-inset-bottom)){:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left);--safe-area-inset-right...
[info] [JSONWP Proxy] Replacing sessionId b7c67d37e09b532ccd82e16bf778abbc with bf507416-3631-48b2-9c0f-56d8d7a5ad9a
[info] [HTTP] <-- GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source 200 303 ms - 443372
[info] [HTTP] [info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element
[info] [HTTP] {"using":"xpath","value":"//[@class=\"NavigatorBar--nav-home\"]"}
[info] [W3C] Driver proxy active, passing request on via HTTP proxy
[debug] [JSONWP Proxy] Matched '/wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element' to command name 'findElement'
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element] to [POST http://127.0.0.1:8021/wd/hub/session/b7c67d37e09b532ccd82e16bf778abbc/element] with body: {"using":"xpath","value":"//[@class=\"NavigatorBar--nav-home\"]"}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"b7c67d37e09b532ccd82e16bf778abbc","status":0,"value":{"ELEMENT":"0.142413894191874-1"}}
[info] [JSONWP Proxy] Replacing sessionId b7c67d37e09b532ccd82e16bf778abbc with bf507416-3631-48b2-9c0f-56d8d7a5ad9a
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element 200 102 ms - 105
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/0.142413894191874-1/click
[info] [HTTP] {"id":"0.142413894191874-1"}
[info] [W3C] Driver proxy active, passing request on via HTTP proxy
[debug] [JSONWP Proxy] Matched '/wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/0.142413894191874-1/click' to command name 'click'
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/0.142413894191874-1/click] to [POST http://127.0.0.1:8021/wd/hub/session/b7c67d37e09b532ccd82e16bf778abbc/element/0.142413894191874-1/click] with body: {"id":"0.142413894191874-1"}[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"b7c67d37e09b532ccd82e16bf778abbc","status":0,"value":null}
[info] [JSONWP Proxy] Replacing sessionId b7c67d37e09b532ccd82e16bf778abbc with bf507416-3631-48b2-9c0f-56d8d7a5ad9a
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/0.142413894191874-1/click 200 230 ms - 76
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context
[info] [HTTP] {"name":"NATIVE_APP"}
[debug] [W3C] Calling AppiumDriver.setContext() with args: ["NATIVE_APP","bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [AndroidDriver] Getting a list of available webviews
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell cat /proc/net/unix'
[debug] [AndroidDriver] WEBVIEW_1426 mapped to pid 1426
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps'
[debug] [AndroidDriver] WEBVIEW_32649 mapped to pid 32649
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps'
[debug] [AndroidDriver] WEBVIEW_32080 mapped to pid 32080
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps'[debug] [AndroidDriver] Parsed pid: '32649' pkg: 'com.tencent.mm:toolsmp' from
[debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
[debug] [AndroidDriver] u0_a172 32649 611 46330796 253712 0 0 S com.tencent.mm:toolsmp
[debug] [AndroidDriver] Returning process name: 'com.tencent.mm:toolsmp'
[debug] [AndroidDriver] Parsed pid: '1426' pkg: 'com.tencent.mm:appbrand2' from
[debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
[debug] [AndroidDriver] u0_a172 1426 611 50758780 286884 0 0 S com.tencent.mm:appbrand2
[debug] [AndroidDriver] Returning process name: 'com.tencent.mm:appbrand2'
[debug] [AndroidDriver] Parsed pid: '32080' pkg: 'com.tencent.mm:appbrand0' from
[debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
[debug] [AndroidDriver] u0_a172 32080 611 74798324 574092 0 0 R com.tencent.mm:appbrand0
[debug] [AndroidDriver] Returning process name: 'com.tencent.mm:appbrand0'
[debug] [AndroidDriver] Found webviews: ["WEBVIEW_com.tencent.mm:appbrand2","WEBVIEW_com.tencent.mm:toolsmp","WEBVIEW_com.tencent.mm:appbrand0"]
[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.tencent.mm:appbrand2","WEBVIEW_com.tencent.mm:toolsmp","WEBVIEW_com.tencent.mm:appbrand0"]
[debug] [AndroidDriver] recreateChromeDriverSessions set to true; killing existing chromedrivers
[debug] [AndroidDriver] Stopping chromedriver for context WEBVIEW_com.tencent.mm:appbrand0
[debug] [Chromedriver] Changed state to 'stopping'
[debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8021/wd/hub/session/b7c67d37e09b532ccd82e16bf778abbc] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"b7c67d37e09b532ccd82e16bf778abbc\",\"status\":0,\"value\":null}"
[debug] [Chromedriver] Changed state to 'stopped'
[debug] [W3C] Responding to client with driver.setContext() result: null
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context 200 229 ms - 14
[info] [HTTP]
[info] [HTTP] --> GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/window/rect
[info] [HTTP] {}
[debug] [W3C] Calling AppiumDriver.getWindowRect() with args: ["bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [W3C] Responding to client with driver.getWindowRect() result: {"width":1080,"height":1920,"x":0,"y":0}
[info] [HTTP] <-- GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/window/rect 200 4 ms - 50
[info] [HTTP]
[info] [HTTP] --> GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/window/rect
[info] [HTTP] {}
[debug] [W3C] Calling AppiumDriver.getWindowRect() with args: ["bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [W3C] Responding to client with driver.getWindowRect() result: {"width":1080,"height":1920,"x":0,"y":0}
[info] [HTTP] <-- GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/window/rect 200 2 ms - 50
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/touch/perform
[info] [HTTP] {"actions":[{"action":"press","options":{"x":540,"y":1728}},{"action":"wait","options":{"ms":5000}},{"action":"moveTo","options":{"x":540,"y":480}},{"action":"release","options":{}}]}
[debug] [W3C] Calling AppiumDriver.performTouch() with args: [[{"action":"press","options":{"x":540,"y":1728}},{"action":"wait","options":{"ms":5000}},{"action":"moveTo","options":{"x":540,"y":480}},{"action":"release","options":{}}],"bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [JSONWP Proxy] Matched '/touch/perform' to command name 'performTouch'
[debug] [JSONWP Proxy] Proxying [POST /touch/perform] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/touch/perform] with body: {"startX":540,"startY":1728,"endX":540,"endY":480,"steps":140}[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"2c36d526-0cfb-4178-aa33-a048a15b1089","status":0,"value":true}
[debug] [W3C] Responding to client with driver.performTouch() result: true
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/touch/perform 200 3717 ms - 14
[info] [HTTP]
[info] [HTTP] --> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context
[info] [HTTP] {"name":"WEBVIEW_com.tencent.mm:appbrand0"}
[debug] [W3C] Calling AppiumDriver.setContext() with args: ["WEBVIEW_com.tencent.mm:appbrand0","bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [AndroidDriver] Getting a list of available webviews
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell cat /proc/net/unix'
[debug] [AndroidDriver] WEBVIEW_1426 mapped to pid 1426
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps'
[debug] [AndroidDriver] WEBVIEW_32649 mapped to pid 32649
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps'
[debug] [AndroidDriver] WEBVIEW_32080 mapped to pid 32080
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps'[debug] [AndroidDriver] Parsed pid: '1426' pkg: 'com.tencent.mm:appbrand2' from
[debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
[debug] [AndroidDriver] u0_a172 1426 611 50758780 284296 0 0 S com.tencent.mm:appbrand2
[debug] [AndroidDriver] Returning process name: 'com.tencent.mm:appbrand2'
[debug] [AndroidDriver] Parsed pid: '32649' pkg: 'com.tencent.mm:toolsmp' from
[debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
[debug] [AndroidDriver] u0_a172 32649 611 46316300 270544 0 0 S com.tencent.mm:toolsmp
[debug] [AndroidDriver] Returning process name: 'com.tencent.mm:toolsmp'
[debug] [AndroidDriver] Parsed pid: '32080' pkg: 'com.tencent.mm:appbrand0' from
[debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
[debug] [AndroidDriver] u0_a172 32080 611 74783168 563992 0 0 S com.tencent.mm:appbrand0
[debug] [AndroidDriver] Returning process name: 'com.tencent.mm:appbrand0'
[debug] [AndroidDriver] Found webviews: ["WEBVIEW_com.tencent.mm:appbrand2","WEBVIEW_com.tencent.mm:toolsmp","WEBVIEW_com.tencent.mm:appbrand0"]
[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.tencent.mm:appbrand2","WEBVIEW_com.tencent.mm:toolsmp","WEBVIEW_com.tencent.mm:appbrand0"]
[debug] [AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com.tencent.mm:appbrand0'
[debug] [AndroidDriver] A port was not given, using random port: 8021
[debug] [Chromedriver] Changed state to 'starting'
[info] [Chromedriver] Set chromedriver binary as: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver
[debug] [Chromedriver] Killing any old chromedrivers, running: pkill -15 -f "/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver.--port=8021"
[warn] [Chromedriver] No old chromedrivers seemed to exist
[debug] [Chromedriver] Cleaning any old adb forwarded port socket connections
[debug] [ADB] List forwarding ports
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 forward --list'
[info] [Chromedriver] Spawning chromedriver with: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver --url-base=wd/hub --port=8021 --adb-port=5037 --verbose
[debug] [Chromedriver] Chromedriver version: '89.0.4389.23'
[debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus'
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8021/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"value\":{\"build\":{\"version\":\"89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294})\"},\"message\":\"ChromeDriver ready for new sessions.\",\"os\":{\"arch\":\"x86_64\",\"name\":\"Mac OS X\",\"version\":\"11.5.1\"},\"ready\":true}}"
[debug] [JSONWP Proxy] Matched '/session' to command name 'createSession'
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8021/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"androidProcess":"com.tencent.mm:appbrand0","androidDeviceSerial":"10.10.105.39:5556"}}}[debug] [Chromedriver] Webview version: 'Chrome/89.0.4389.72'[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"28bcc304bb6183677e779715fe72dd63","status":0,"value":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294})"},"cssSelectorsEnabled":true,"databaseEnabled":false,"goog:chromeOptions":{"debuggerAddress":"localhost:53339"},"handlesAlerts":true,"hasTouchScreen":true,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"pageLoadStrategy":"normal","platform":"ANDROID","proxy":{},"rotatable":false,"setWindowRect":false,"strictFileInteractability":false,"takesHeapSnapshot":true,"takesScreenshot":true,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unexpectedAlertBehaviour":"ignore","version":"89.0.4389.72","webStorageEnabled":true,"webauthn:extension:largeBlob":false,"webauthn:virtualAuthenticators":false}}
[debug] [Chromedriver] Changed state to 'online'
[debug] [W3C] Responding to client with driver.setContext() result: null
[info] [HTTP] <-- POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context 200 721 ms - 14
[info] [HTTP]
[info] [HTTP] --> GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source
[info] [HTTP] {}
[info] [W3C] Driver proxy active, passing request on via HTTP proxy
[debug] [JSONWP Proxy] Matched '/wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source' to command name 'getPageSource'
[debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source] to [GET http://127.0.0.1:8021/wd/hub/session/28bcc304bb6183677e779715fe72dd63/source] with body: {}[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"28bcc304bb6183677e779715fe72dd63\",\"status\":0,\"value\":\"\u003Chtml lang=\\"zh-CN\\">\u003Chead>\u003Cstyle>html{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;height:100%;width:100%}body{cursor:default;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:100%;overflow-x:hidden;-webkit-text-size-adjust:none;text-size-adjust:none}:root{--safe-area-inset-top:0px;--safe-area-inset-bottom:0px;--safe-area-inset-left:0px;--safe-area-inset-right:0px}@supports (bottom:constant(safe-area-inset-bottom)){:root{--safe-area-inset-top:constant(safe-area-inset-top);--safe-area-inset-bottom:constant(safe-area-inset-bottom);--safe-area-inset-left:constant(safe-area-inset-left);--safe-area-inset-right:constant(safe-area-inset-right)}}@supports (bottom:env(safe-area-inset-bottom)){:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left);--safe-area-inset-right...
[info] [JSONWP Proxy] Replacing sessionId 28bcc304bb6183677e779715fe72dd63 with bf507416-3631-48b2-9c0f-56d8d7a5ad9a
[info] [HTTP] <-- GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source 200 380 ms - 747198
[info] [HTTP] [info] [HTTP] --> DELETE /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a
[info] [HTTP] {}
[debug] [W3C] Calling AppiumDriver.deleteSession() with args: ["bf507416-3631-48b2-9c0f-56d8d7a5ad9a"]
[debug] [BaseDriver] Event 'quitSessionRequested' logged at 1634633582310 (16:53:02 GMT+0800 (CST))
[info] [Appium] Removing session bf507416-3631-48b2-9c0f-56d8d7a5ad9a from our master session list
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [AndroidDriver] Stopping chromedriver for context WEBVIEW_com.tencent.mm:appbrand0
[debug] [Chromedriver] Changed state to 'stopping'
[debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8021/wd/hub/session/28bcc304bb6183677e779715fe72dd63] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"28bcc304bb6183677e779715fe72dd63\",\"status\":0,\"value\":null}"
[debug] [Chromedriver] Changed state to 'stopped'
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [JSONWP Proxy] Matched '/' to command name 'deleteSession'
[debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"2c36d526-0cfb-4178-aa33-a048a15b1089\",\"status\":0,\"value\":\"Session deleted\"}"
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell am force-stop com.tencent.mm'[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8202
[debug] [ADB] Running '/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 forward --remove tcp:8202'
[debug] [BaseDriver] Event 'quitSessionFinished' logged at 1634633582768 (16:53:02 GMT+0800 (CST))
[debug] [W3C] Received response: null
[debug] [W3C] But deleting session, so not returning
[debug] [W3C] Responding to client with driver.deleteSession() result: null
[info] [HTTP] <-- DELETE /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a 200 460 ms - 14
[info] [HTTP] [debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[debug] [UiAutomator2] [UIAutomator2] Time: 36.116
[debug] [UiAutomator2] [UIAutomator2] OK (1 test)
[W3C (6035103e)] Responding to client with driver.click() result: null
[HTTP] <-- POST /wd/hub/session/6035103e-8a18-49e3-ba97-226d78ca33ac/element/00000000-0000-0117-ffff-ffff000005e7/click 200 49 ms - 14
[HTTP]
[HTTP] --> GET /wd/hub/session/6035103e-8a18-49e3-ba97-226d78ca33ac/contexts
[HTTP] {}
[W3C (6035103e)] Calling AppiumDriver.getContexts() with args: ["6035103e-8a18-49e3-ba97-226d78ca33ac"]
[AndroidDriver] Getting a list of available webviews
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae shell cat /proc/net/unix'
[AndroidDriver] Parsed 1 active devtools socket: ["@webview_devtools_remote_6681"]
[AndroidDriver] Collecting CDP data of 1 webview
[AndroidDriver] Forwarding remote port webview_devtools_remote_6681 to a local port in range 10900..11000
[AndroidDriver] You could use the 'webviewDevtoolsPort' capability to customize the starting port number
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae forward tcp:10900 localabstract:webview_devtools_remote_6681'
[ADB] Removing forwarded port socket connection: 10900
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae forward --remove tcp:10900'
[AndroidDriver] CDP data collection completed
[AndroidDriver] WEBVIEW_6681 mapped to pid 6681
[AndroidDriver] Getting process name for webview 'WEBVIEW_6681'
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae shell ps --help'
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae shell ps -A'
[AndroidDriver] Got process name: 'com.tencent.mm'
[AndroidDriver] Found 1 webview: ["WEBVIEW_com.tencent.mm"]
[AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.tencent.mm"]
[W3C (6035103e)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_com.tencent.mm"]
[HTTP] <-- GET /wd/hub/session/6035103e-8a18-49e3-ba97-226d78ca33ac/contexts 200 858 ms - 49
[HTTP]
[HTTP] --> POST /wd/hub/session/6035103e-8a18-49e3-ba97-226d78ca33ac/context
[HTTP] {"name":"WEBVIEW_com.tencent.mm"}
[W3C (6035103e)] Calling AppiumDriver.setContext() with args: ["WEBVIEW_com.tencent.mm","6035103e-8a18-49e3-ba97-226d78ca33ac"]
[AndroidDriver] Getting a list of available webviews
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae shell cat /proc/net/unix'
[AndroidDriver] Parsed 1 active devtools socket: ["@webview_devtools_remote_6681"]
[AndroidDriver] Collecting CDP data of 1 webview
[AndroidDriver] Forwarding remote port webview_devtools_remote_6681 to a local port in range 10900..11000
[AndroidDriver] You could use the 'webviewDevtoolsPort' capability to customize the starting port number
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae forward tcp:10900 localabstract:webview_devtools_remote_6681'
[ADB] Removing forwarded port socket connection: 10900
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae forward --remove tcp:10900'
[AndroidDriver] CDP data collection completed
[AndroidDriver] WEBVIEW_6681 mapped to pid 6681
[AndroidDriver] Getting process name for webview 'WEBVIEW_6681'
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae shell ps -A'
[AndroidDriver] Got process name: 'com.tencent.mm'
[AndroidDriver] Found 1 webview: ["WEBVIEW_com.tencent.mm"]
[AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.tencent.mm"]
[AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com.tencent.mm'
[AndroidDriver] A port was not given, using random free port: 8000
[AndroidDriver] Passing web view details to the Chromedriver constructor: {
[AndroidDriver] "info": {
[AndroidDriver] "Android-Package": "com.tencent.mm",
[AndroidDriver] "Browser": "Chrome/138.0.7204.63",
[AndroidDriver] "Protocol-Version": "1.3",
[AndroidDriver] "User-Agent": "Mozilla/5.0 (Linux; Android 10; V2002A Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.7204.63 Mobile Safari/537.36 XWEB/1380045 MMWEBSDK/20240501",
[AndroidDriver] "V8-Version": "13.8.450258",
[AndroidDriver] "WebKit-Version": "537.36 (@c9df78b5eb82abc8fe73dbfaf827e83229e3eb72)",
[AndroidDriver] "webSocketDebuggerUrl": "ws://127.0.0.1:10900/devtools/browser"
[AndroidDriver] },
[AndroidDriver] "process": {
[AndroidDriver] "name": "com.tencent.mm",
[AndroidDriver] "id": "6681"
[AndroidDriver] }
[AndroidDriver] }
[AndroidDriver] Automated Chromedriver download is disabled. Use 'chromedriver_autodownload' server feature to enable it
[AndroidDriver] Precalculated Chromedriver capabilities: {
[AndroidDriver] "androidPackage": "com.tencent.mm",
[AndroidDriver] "androidUseRunningApp": true,
[AndroidDriver] "androidProcess": "com.tencent.mm",
[AndroidDriver] "androidDeviceSerial": "0000000f0f46b9ae"
[AndroidDriver] }
[AndroidDriver] The following Chromedriver capabilities cannot be overridden by the provided chromeOptions:
[AndroidDriver] androidProcess ("com.tencent.mm")
[AndroidDriver] Before starting chromedriver, androidPackage is 'com.tencent.mm'
[Chromedriver] Changed state to 'starting'
[Chromedriver] Set chromedriver binary as: E:\software\chrome138.0.7204.157\chromedriver-win64\chromedriver.exe
[Chromedriver] Killing any old chromedrivers, running: wmic process where "commandline like '%chromedriver.exe%--port=8000%'" delete
[Chromedriver] Successfully cleaned up old chromedrivers
[Chromedriver] Cleaning this device's adb forwarded port socket connections: 0000000f0f46b9ae
[ADB] List forwarding ports
[ADB] Running 'E:\SVN\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 0000000f0f46b9ae forward --list'
[Chromedriver] Spawning chromedriver with: E:\software\chrome138.0.7204.157\chromedriver-win64\chromedriver.exe --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
[Chromedriver] Chromedriver version: '138.0.7204.157'
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[WD Proxy] Got response with status 200: {"value":{"build":{"version":"138.0.7204.157 (e533e98b1267baa1f1c46d666b120e64e5146aa9-refs/branch-heads/7204@{#2046})"},"message":"ChromeDriver ready for new sessions.","os":{"arch":"x86_64","name":"Windows NT","version":"10.0.19045"},"ready":true}}
[Chromedriver] Starting W3C Chromedriver session with capabilities: {
[Chromedriver] "capabilities": {
[Chromedriver] "alwaysMatch": {
[Chromedriver] "goog:chromeOptions": {
[Chromedriver] "androidPackage": "com.tencent.mm",
[Chromedriver] "androidUseRunningApp": true,
[Chromedriver] "androidProcess": "com.tencent.mm",
[Chromedriver] "androidDeviceSerial": "0000000f0f46b9ae"
[Chromedriver] },
[Chromedriver] "goog:loggingPrefs": {
[Chromedriver] "browser": "ALL"
[Chromedriver] }
[Chromedriver] }
[Chromedriver] }
[Chromedriver] }
[WD Proxy] Matched '/session' to command name 'createSession'
[WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"capabilities":{"alwaysMatch":{"goog:chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"androidProcess":"com.tencent.mm","androidDeviceSerial":"0000000f0f46b9ae"},"goog:loggingPrefs":{"browser":"ALL"}}}}
[WD Proxy] Got response with status 500: {"value":{"error":"session not created","message":"session not created\nfrom unknown error: com.tencent.mm is not installed on device 0000000f0f46b9ae","stacktrace":"\tGetHandleVerifier [0x0x7ff67f5fe925+77845]\n\tGetHandleVerifier [0x0x7ff67f5fe980+77936]\n\t(No symbol) [0x0x7ff67f3b9cda]\n\t(No symbol) [0x0x7ff67f387100]\n\t(No symbol) [0x0x7ff67f39bd21]\n\t(No symbol) [0x0x7ff67f3f3e92]\n\t(No symbol) [0x0x7ff67f4462ce]\n\t(No symbol) [0x0x7ff67f445a60]\n\t(No symbol) [0x0x7ff67f4386a3]\n\t(No symbol) [0x0x7ff67f401791]\n\t(No symbol) [0x0x7ff67f402523]\n\tGetHandleVerifier [0x0x7ff67f8d683d+3059501]\n\tGetHandleVerifier [0x0x7ff67f8d0bfd+3035885]\n\tGetHandleVerifier [0x0x7ff67f8f03f0+3164896]\n\tGetHandleVerifier [0x0x7ff67f618c2e+185118]\n\tGetHandleVerifier [0x0x7ff67f62053f+216111]\n\tGetHandleVerifier [0x0x7ff67f6072d4+113092]\n\tGetHandleVerifier [0x0x7ff67f607489+113529]\n\tGetHandleVerifier [0x0x7ff67f5ee288+10616]\n\tBaseThreadInitThunk [0x0x7ffb546e7374+20]\n\tRtlUserThreadStart [0x0x7ffb55c9...
[W3C] Matched W3C error code 'session not created' to SessionNotCreatedError
[Chromedriver] SessionNotCreatedError: A new session could not be created. Details: session not created
[Chromedriver] from unknown error: com.tencent.mm is not installed on device 0000000f0f46b9ae
[Chromedriver] at errorFromW3CJsonCode (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:780:25)
[Chromedriver] at ProxyRequestError.getActualError (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:663:14)
[Chromedriver] at JWProxy.command (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
[Chromedriver] at runMicrotasks ()
[Chromedriver] at processTicksAndRejections (internal/process/task_queues.js:97:5)
[Chromedriver] at Chromedriver.startSession (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:589:5)
[Chromedriver] at Chromedriver.start (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:520:7)
[Chromedriver] at AndroidUiautomator2Driver.setupNewChromedriver (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:472:3)
[Chromedriver] at AndroidUiautomator2Driver.startChromedriverProxy (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:221:10)
[Chromedriver] at AndroidUiautomator2Driver.switchContext (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:128:5)
[Chromedriver] at AndroidUiautomator2Driver.setContext (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:54:3)
[Chromedriver] Chromedriver exited unexpectedly with code null, signal SIGTERM
[Chromedriver] Changed state to 'stopped'
[Chromedriver] A new session could not be created. Details: session not created
[Chromedriver] from unknown error: com.tencent.mm is not installed on device 0000000f0f46b9ae
[W3C (6035103e)] Encountered internal error running command: Error: A new session could not be created. Details: session not created
[W3C (6035103e)] from unknown error: com.tencent.mm is not installed on device 0000000f0f46b9ae
[W3C (6035103e)] at Object.errorAndThrow (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:94:35)
[W3C (6035103e)] at Chromedriver.start (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:541:11)
[W3C (6035103e)] at AndroidUiautomator2Driver.setupNewChromedriver (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:472:3)
[W3C (6035103e)] at AndroidUiautomator2Driver.startChromedriverProxy (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:221:10)
[W3C (6035103e)] at AndroidUiautomator2Driver.switchContext (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:128:5)
[W3C (6035103e)] at AndroidUiautomator2Driver.setContext (E:\software\appnium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:54:3)
[HTTP] <-- POST /wd/hub/session/6035103e-8a18-49e3-ba97-226d78ca33ac/context 500 1572 ms - 845
[HTTP]
[HTTP] --> POST /wd/hub/session/6035103e-8a18-49e3-ba97-226d78ca33ac/appium/app/close
借楼麻烦请教一下大佬知道这个报错是什么原因吗,我是用 appnium 抓的微信公众号的信息,因为微信内置浏览器 chrome 版本更新了,所以需要更新 chromedriver 的版本,之前都是更新完就正常了,但是这次更新完之后,就出现了这个错误,显示设备没安装微信包,但是前面用 appnium 操作微信的动作都正常,就是到了点击文章然后进行上下文切换的步骤,报错,求解答谢谢