appium-webview自动化测试

测试日志如下:

2022-07-24 02:43:56:294 [HTTP] Request idempotency key: 5410cfc7-59e4-4446-9a19-f1d1c018e15c
2022-07-24 02:43:56:294 [HTTP] --> POST /wd/hub/session
2022-07-24 02:43:56:295 [HTTP] {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:deviceName":"emulator-5554","appium:udid":"emulator-5554","appium:appPackage":"com.xueqiu.android","appium:appActivity":".view.WelcomeActivityAlias","appium:noReset":"true","appium:unicodeKeyboard":"true","appium:resetKeyboard":"true","appium:newCommandTimeout":300,"appium:skipServerInstallation":"true","appium:chromedriverExecutableDir":"D:\\testtools\\driver"}}}
2022-07-24 02:43:56:295 [W3C] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:deviceName":"emulator-5554","appium:udid":"emulator-5554","appium:appPackage":"com.xueqiu.android","appium:appActivity":".view.WelcomeActivityAlias","appium:noReset":"true","appium:unicodeKeyboard":"true","appium:resetKeyboard":"true","appium:newCommandTimeout":300,"appium:skipServerInstallation":"true","appium:chromedriverExecutableDir":"D:\\testtools\\driver"}}]
2022-07-24 02:43:56:297 [BaseDriver] Event 'newSessionRequested' logged at 1658630636295 (10:43:56 GMT+0800 (GMT+08:00))
2022-07-24 02:43:56:299 [Appium] 

2022-07-24 02:43:56:299 [Appium] ======================================================================

2022-07-24 02:43:56:299 [Appium]   DEPRECATION WARNING:

2022-07-24 02:43:56:300 [Appium] 

2022-07-24 02:43:56:300 [Appium]   The 'automationName' capability was not provided in the desired 
2022-07-24 02:43:56:300 [Appium]   capabilities for this Android session

2022-07-24 02:43:56:300 [Appium] 

2022-07-24 02:43:56:301 [Appium]   Setting 'automationName=UiAutomator2' by default and using the 
2022-07-24 02:43:56:301 [Appium]   UiAutomator2 Driver

2022-07-24 02:43:56:301 [Appium] 

2022-07-24 02:43:56:302 [Appium]   The next major version of Appium (2.x) will **require** the 
2022-07-24 02:43:56:302 [Appium]   'automationName' capability to be set for all sessions on all 
2022-07-24 02:43:56:302 [Appium]   platforms

2022-07-24 02:43:56:303 [Appium] 

2022-07-24 02:43:56:303 [Appium]   In previous versions (Appium <= 1.13.x), the default was 
2022-07-24 02:43:56:304 [Appium]   'automationName=UiAutomator1'

2022-07-24 02:43:56:304 [Appium] 

2022-07-24 02:43:56:304 [Appium]   If you wish to use that automation instead of UiAutomator2, please 
2022-07-24 02:43:56:304 [Appium]   add 'automationName=UiAutomator1' to your desired capabilities

2022-07-24 02:43:56:305 [Appium] 

2022-07-24 02:43:56:305 [Appium]   For more information about drivers, please visit 
2022-07-24 02:43:56:305 [Appium]   http://appium.io/docs/en/about-appium/intro/ and explore the 
2022-07-24 02:43:56:306 [Appium]   'Drivers' menu

2022-07-24 02:43:56:306 [Appium] 

2022-07-24 02:43:56:306 [Appium] ======================================================================

2022-07-24 02:43:56:307 [Appium] 
2022-07-24 02:43:56:307 [Appium] Appium v1.19.1 creating new AndroidUiautomator2Driver (v1.59.0) session
2022-07-24 02:43:56:308 [BaseDriver] Creating session with W3C capabilities: {
2022-07-24 02:43:56:309 [BaseDriver]   "alwaysMatch": {
2022-07-24 02:43:56:309 [BaseDriver]     "platformName": "Android",
2022-07-24 02:43:56:309 [BaseDriver]     "appium:deviceName": "emulator-5554",
2022-07-24 02:43:56:309 [BaseDriver]     "appium:udid": "emulator-5554",
2022-07-24 02:43:56:310 [BaseDriver]     "appium:appPackage": "com.xueqiu.android",
2022-07-24 02:43:56:310 [BaseDriver]     "appium:appActivity": ".view.WelcomeActivityAlias",
2022-07-24 02:43:56:310 [BaseDriver]     "appium:noReset": "true",
2022-07-24 02:43:56:310 [BaseDriver]     "appium:unicodeKeyboard": "true",
2022-07-24 02:43:56:311 [BaseDriver]     "appium:resetKeyboard": "true",
2022-07-24 02:43:56:311 [BaseDriver]     "appium:newCommandTimeout": 300,
2022-07-24 02:43:56:311 [BaseDriver]     "appium:skipServerInstallation": "true",
2022-07-24 02:43:56:311 [BaseDriver]     "appium:chromedriverExecutableDir": "D:\\testtools\\driver"
2022-07-24 02:43:56:312 [BaseDriver]   },
2022-07-24 02:43:56:312 [BaseDriver]   "firstMatch": [
2022-07-24 02:43:56:312 [BaseDriver]     {}
2022-07-24 02:43:56:312 [BaseDriver]   ]
2022-07-24 02:43:56:313 [BaseDriver] }
2022-07-24 02:43:56:315 [BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
2022-07-24 02:43:56:315 [BaseDriver] Capability 'skipServerInstallation' changed from string to boolean. This may cause unexpected behavior
2022-07-24 02:43:56:316 [BaseDriver] Capability 'unicodeKeyboard' changed from string to boolean. This may cause unexpected behavior
2022-07-24 02:43:56:316 [BaseDriver] Capability 'resetKeyboard' changed from string to boolean. This may cause unexpected behavior
2022-07-24 02:43:56:318 [BaseDriver] Session created with session id: 48fdef0b-522e-4b38-824a-ce0b1ebebad2
2022-07-24 02:43:56:318 [UiAutomator2] Starting 'com.xueqiu.android' directly on the device
2022-07-24 02:43:56:319 [ADB] Using 'adb.exe' from 'D:\testtools\Android_sdk\platform-tools\adb.exe'
2022-07-24 02:43:56:319 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 start-server'
2022-07-24 02:43:56:639 [AndroidDriver] Retrieving device list
2022-07-24 02:43:56:639 [ADB] Trying to find a connected android device
2022-07-24 02:43:56:639 [ADB] Getting connected devices
2022-07-24 02:43:56:677 [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
2022-07-24 02:43:56:677 [AndroidDriver] Using device: emulator-5554
2022-07-24 02:43:56:678 [ADB] Using 'adb.exe' from 'D:\testtools\Android_sdk\platform-tools\adb.exe'
2022-07-24 02:43:56:678 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 start-server'
2022-07-24 02:43:56:717 [ADB] Setting device id to emulator-5554
2022-07-24 02:43:56:717 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
2022-07-24 02:43:56:759 [ADB] Current device property 'ro.build.version.sdk': 23
2022-07-24 02:43:56:760 [ADB] Device API level: 23
2022-07-24 02:43:56:760 [AndroidDriver] No app sent in, not parsing package/activity
2022-07-24 02:43:56:760 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 wait-for-device'
2022-07-24 02:43:56:799 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell echo ping'
2022-07-24 02:43:56:850 [AndroidDriver] Pushing settings apk to device...
2022-07-24 02:43:56:850 [ADB] Getting install status for io.appium.settings
2022-07-24 02:43:56:850 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
2022-07-24 02:43:56:903 [ADB] 'io.appium.settings' is installed
2022-07-24 02:43:56:904 [ADB] Getting package info for 'io.appium.settings'
2022-07-24 02:43:56:904 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
2022-07-24 02:43:56:971 [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.2.1' >= '3.2.1')
2022-07-24 02:43:56:972 [ADB] There is no need to install/upgrade 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
2022-07-24 02:43:56:972 [ADB] Getting IDs of all 'io.appium.settings' processes
2022-07-24 02:43:56:972 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''
2022-07-24 02:43:57:035 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
2022-07-24 02:43:57:087 [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
2022-07-24 02:43:57:087 [Logcat] Starting logs capture with command: D:\\testtools\\Android_sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 logcat -v threadtime
2022-07-24 02:43:57:127 [AndroidDriver] Enabling Unicode keyboard support
2022-07-24 02:43:57:127 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings get secure default_input_method'
2022-07-24 02:43:57:546 [AndroidDriver] Unsetting previous IME io.appium.settings/.UnicodeIME
2022-07-24 02:43:57:549 [AndroidDriver] Setting IME to 'io.appium.settings/.UnicodeIME'
2022-07-24 02:43:57:550 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell ime enable io.appium.settings/.UnicodeIME'
2022-07-24 02:43:58:070 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell ime set io.appium.settings/.UnicodeIME'
2022-07-24 02:43:58:867 [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8202
2022-07-24 02:43:58:869 [ADB] Forwarding system: 8202 to device: 6790
2022-07-24 02:43:58:870 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:8202 tcp:6790'
2022-07-24 02:43:58:939 [UiAutomator2] 'skipServerInstallation' is set. Skipping UIAutomator2 server installation.
2022-07-24 02:43:58:940 [UiAutomator2] No app capability. Assuming it is already on the device
2022-07-24 02:43:58:940 [UiAutomator2] Performing shallow cleanup of automation leftovers
2022-07-24 02:43:58:950 [UiAutomator2] The following obsolete sessions are still running: [null]
2022-07-24 02:43:58:950 [UiAutomator2] Cleaning up the obsolete sessions
2022-07-24 02:43:59:115 [Instrumentation] .
2022-07-24 02:43:59:475 [Instrumentation] Time: 231.371


2022-07-24 02:43:59:475 [Instrumentation] 


2022-07-24 02:43:59:476 [Instrumentation] OK (1 test)
2022-07-24 02:43:59:708 [Instrumentation] The process has exited with code 0
2022-07-24 02:43:59:959 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test'
2022-07-24 02:44:00:339 [UiAutomator2] 'skipServerInstallation' is set. Attempting to use UIAutomator2 server from the device
2022-07-24 02:44:00:339 [UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online...
2022-07-24 02:44:00:340 [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
2022-07-24 02:44:00:689 [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
2022-07-24 02:44:01:362 [WD Proxy] Matched '/status' to command name 'getStatus'
2022-07-24 02:44:01:364 [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8202/wd/hub/status] with no body
2022-07-24 02:44:01:368 [WD Proxy] socket hang up
2022-07-24 02:44:02:372 [WD Proxy] Matched '/status' to command name 'getStatus'
2022-07-24 02:44:02:373 [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8202/wd/hub/status] with no body
2022-07-24 02:44:02:409 [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
2022-07-24 02:44:02:409 [UiAutomator2] The initialization of the instrumentation process took 2070ms
2022-07-24 02:44:02:410 [WD Proxy] Matched '/session' to command name 'createSession'
2022-07-24 02:44:02:410 [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8202/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","deviceName":"emulator-5554","udid":"emulator-5554","appPackage":"com.xueqiu.android","appActivity":".view.WelcomeActivityAlias","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":300,"skipServerInstallation":true,"chromedriverExecutableDir":"D:\\testtools\\driver"},"platformName":"Android","deviceName":"emulator-5554","udid":"emulator-5554","appPackage":"com.xueqiu.android","appActivity":".view.WelcomeActivityAlias","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":300,"skipServerInstallation":true,"chromedriverExecutableDir":"D:\\testtools\\driver","deviceUDID":"emulator-5554"}],"alwaysMatch":{}}}
2022-07-24 02:44:02:422 [WD Proxy] Got response with status 200: {"sessionId":"49a57653-132b-4e71-80fd-9106cab914f5","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","deviceName":"emulator-5554","udid":"emulator-5554","appPackage":"com.xueqiu.android","appActivity":".view.WelcomeActivityAlias","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":300,"skipServerInstallation":true,"chromedriverExecutableDir":"D:\\testtools\\driver"},"platformName":"Android","deviceName":"emulator-5554","udid":"emulator-5554","appPackage":"com.xueqiu.android","appActivity":".view.WelcomeActivityAlias","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":300,"skipServerInstallation":true,"chromedriverExecutableDir":"D:\\testtools\\driver","deviceUDID":"emulator-5554"}],"alwaysMatch":{}},"sessionId":"49a57653-132b-4e71-80fd...
2022-07-24 02:44:02:422 [WD Proxy] Determined the downstream protocol as 'W3C'
2022-07-24 02:44:02:423 [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8202/wd/hub/session/49a57653-132b-4e71-80fd-9106cab914f5/appium/device/info] with no body
2022-07-24 02:44:02:433 [WD Proxy] Got response with status 200: {"sessionId":"49a57653-132b-4e71-80fd-9106cab914f5","value":{"androidId":"89a5513cd3432d8e","apiVersion":"23","bluetooth":null,"brand":"Android","carrierName":"Android","displayDensity":440,"locale":"en_US","manufacturer":"unknown","model":"Android SDK built for x86_64","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":102400,"linkUpstreamBandwidthKbps":51200,"networkCapabilities":"NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_CBS,NET_CAPABILITY_FOTA,NET_CAPABILITY_IMS,NET_CAPABILITY_SUPL,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_MMS,NET_CAPABILITY_INTERNET,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_IA","signalStrength":null,"transportTypes":"TRANSPORT_CELLULAR"},"detailedState":"CONNECTED","extraInfo":"epc.tmobile.com","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":13,"subtypeName":"LTE","type":0,"typeName":"MOBILE"}],"platformVersion":"6.0","realDisplaySize":"1080x2280","timeZone":"GMT"}}
2022-07-24 02:44:02:434 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys window'
2022-07-24 02:44:02:489 [AndroidDriver] Screen already unlocked, doing nothing
2022-07-24 02:44:02:489 [UiAutomator2] Starting 'com.xueqiu.android/.view.WelcomeActivityAlias and waiting for 'com.xueqiu.android/.view.WelcomeActivityAlias'
2022-07-24 02:44:02:490 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am start -W -n com.xueqiu.android/.view.WelcomeActivityAlias -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
2022-07-24 02:44:04:235 [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8202/wd/hub/session/49a57653-132b-4e71-80fd-9106cab914f5/appium/device/pixel_ratio] with no body
2022-07-24 02:44:04:238 [WD Proxy] Got response with status 200: {"sessionId":"49a57653-132b-4e71-80fd-9106cab914f5","value":2.75}
2022-07-24 02:44:04:240 [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars'
2022-07-24 02:44:04:240 [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8202/wd/hub/session/49a57653-132b-4e71-80fd-9106cab914f5/appium/device/system_bars] with no body
2022-07-24 02:44:04:243 [WD Proxy] Got response with status 200: {"sessionId":"49a57653-132b-4e71-80fd-9106cab914f5","value":{"statusBar":66}}
2022-07-24 02:44:04:244 [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize'
2022-07-24 02:44:04:244 [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8202/wd/hub/session/49a57653-132b-4e71-80fd-9106cab914f5/window/current/size] with no body
2022-07-24 02:44:04:249 [WD Proxy] Got response with status 200: {"sessionId":"49a57653-132b-4e71-80fd-9106cab914f5","value":{"height":2148,"width":1080}}
2022-07-24 02:44:04:249 [Appium] New AndroidUiautomator2Driver session created successfully, session 48fdef0b-522e-4b38-824a-ce0b1ebebad2 added to master session list
2022-07-24 02:44:04:250 [BaseDriver] Event 'newSessionStarted' logged at 1658630644250 (10:44:04 GMT+0800 (GMT+08:00))
2022-07-24 02:44:04:250 [W3C (48fdef0b)] Cached the protocol value 'W3C' for the new session 48fdef0b-522e-4b38-824a-ce0b1ebebad2
2022-07-24 02:44:04:251 [W3C (48fdef0b)] 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","deviceName":"emulator-5554","udid":"emulator-5554","appPackage":"com.xueqiu.android","appActivity":".view.WelcomeActivityAlias","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":300,"skipServerInstallation":true,"chromedriverExecutableDir":"D:\\testtools\\driver"},"platformName":"Android","deviceName":"emulator-5554","udid":"emulator-5554","appPackage":"com.xueqiu.android","appActivity":".view.WelcomeActivityAlias","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":300,"skipServerInstallation":true,"chromedriverExecutableDir":"D:\\testtools\\driver","deviceUDID":"emulator-5554","deviceApiLevel":23,"platformVersion":"6.0","deviceScreenSize":"1080x2280","deviceScreenDensity":440,"deviceModel":"Android SDK bui...
2022-07-24 02:44:04:252 [HTTP] <-- POST /wd/hub/session 200 7957 ms - 1228
2022-07-24 02:44:04:253 [HTTP] 
2022-07-24 02:44:04:254 [HTTP] --> POST /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/timeouts
2022-07-24 02:44:04:254 [HTTP] {"implicit":30000}
2022-07-24 02:44:04:255 [W3C (48fdef0b)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"48fdef0b-522e-4b38-824a-ce0b1ebebad2"]
2022-07-24 02:44:04:255 [BaseDriver] W3C timeout argument: {"implicit":30000}}
2022-07-24 02:44:04:255 [BaseDriver] Set implicit wait to 30000ms
2022-07-24 02:44:04:256 [W3C (48fdef0b)] Responding to client with driver.timeouts() result: null
2022-07-24 02:44:04:258 [HTTP] <-- POST /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/timeouts 200 3 ms - 14
2022-07-24 02:44:04:258 [HTTP] 
2022-07-24 02:44:04:261 [HTTP] --> POST /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/element
2022-07-24 02:44:04:262 [HTTP] {"using":"xpath","value":"//*[@text='交易']"}
2022-07-24 02:44:04:262 [W3C (48fdef0b)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@text='交易']","48fdef0b-522e-4b38-824a-ce0b1ebebad2"]
2022-07-24 02:44:04:263 [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, css selector, -android uiautomator
2022-07-24 02:44:04:264 [BaseDriver] Waiting up to 30000 ms for condition
2022-07-24 02:44:04:264 [WD Proxy] Matched '/element' to command name 'findElement'
2022-07-24 02:44:04:265 [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8202/wd/hub/session/49a57653-132b-4e71-80fd-9106cab914f5/element] with body: {"strategy":"xpath","selector":"//*[@text='交易']","context":"","multiple":false}
2022-07-24 02:44:06:346 [WD Proxy] Got response with status 404: {"sessionId":"49a57653-132b-4e71-80fd-9106cab914f5","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:96)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:71)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:41)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:261)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:255)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:68)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCont...
2022-07-24 02:44:06:347 [W3C] Matched W3C error code 'no such element' to NoSuchElementError
2022-07-24 02:44:06:348 [BaseDriver] Waited for 2083 ms so far
2022-07-24 02:44:06:849 [WD Proxy] Matched '/element' to command name 'findElement'
2022-07-24 02:44:06:849 [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8202/wd/hub/session/49a57653-132b-4e71-80fd-9106cab914f5/element] with body: {"strategy":"xpath","selector":"//*[@text='交易']","context":"","multiple":false}
2022-07-24 02:44:08:201 [WD Proxy] Got response with status 200: {"sessionId":"49a57653-132b-4e71-80fd-9106cab914f5","value":{"ELEMENT":"1dfa05ea-56ab-4677-83e7-854415dccea3","element-6066-11e4-a52e-4f735466cecf":"1dfa05ea-56ab-4677-83e7-854415dccea3"}}
2022-07-24 02:44:08:202 [W3C (48fdef0b)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"1dfa05ea-56ab-4677-83e7-854415dccea3","ELEMENT":"1dfa05ea-56ab-4677-83e7-854415dccea3"}
2022-07-24 02:44:08:203 [HTTP] <-- POST /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/element 200 3942 ms - 137
2022-07-24 02:44:08:203 [HTTP] 
2022-07-24 02:44:08:204 [HTTP] --> POST /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/element/1dfa05ea-56ab-4677-83e7-854415dccea3/click
2022-07-24 02:44:08:204 [HTTP] {"id":"1dfa05ea-56ab-4677-83e7-854415dccea3"}
2022-07-24 02:44:08:205 [W3C (48fdef0b)] Calling AppiumDriver.click() with args: ["1dfa05ea-56ab-4677-83e7-854415dccea3","48fdef0b-522e-4b38-824a-ce0b1ebebad2"]
2022-07-24 02:44:08:205 [WD Proxy] Matched '/element/1dfa05ea-56ab-4677-83e7-854415dccea3/click' to command name 'click'
2022-07-24 02:44:08:206 [WD Proxy] Proxying [POST /element/1dfa05ea-56ab-4677-83e7-854415dccea3/click] to [POST http://127.0.0.1:8202/wd/hub/session/49a57653-132b-4e71-80fd-9106cab914f5/element/1dfa05ea-56ab-4677-83e7-854415dccea3/click] with body: {"element":"1dfa05ea-56ab-4677-83e7-854415dccea3"}
2022-07-24 02:44:08:218 [WD Proxy] Got response with status 200: {"sessionId":"49a57653-132b-4e71-80fd-9106cab914f5","value":null}
2022-07-24 02:44:08:218 [W3C (48fdef0b)] Responding to client with driver.click() result: null
2022-07-24 02:44:08:219 [HTTP] <-- POST /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/element/1dfa05ea-56ab-4677-83e7-854415dccea3/click 200 15 ms - 14
2022-07-24 02:44:08:219 [HTTP] 
*2022-07-24 02:44:08:222 [HTTP] --> GET /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/contexts*
2022-07-24 02:44:08:226 [HTTP] {}
2022-07-24 02:44:08:226 [W3C (48fdef0b)] Calling AppiumDriver.getContexts() with args: ["48fdef0b-522e-4b38-824a-ce0b1ebebad2"]
**2022-07-24 02:44:08:227 [AndroidDriver] Getting a list of available webviews**
****2022-07-24 02:44:08:227 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell cat /proc/net/unix'****
**2022-07-24 02:44:08:624 [AndroidDriver] Parsed 1 active devtools socket: ["@webview_devtools_remote_5007"]**
2022-07-24 02:44:08:625 [AndroidDriver] Not collecting web view details. Details collection might help to make Chromedriver initialization more precise. Use the 'enableWebviewDetailsCollection' cap to turn it on
**2022-07-24 02:44:08:625 [AndroidDriver] Collecting CDP data of 1 webview**
**2022-07-24 02:44:09:027 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:10900 localabstract:webview_devtools_remote_5007'**
2022-07-24 02:44:09:361 [ADB] Removing forwarded port socket connection: 10900 
2022-07-24 02:44:09:362 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward --remove tcp:10900'
2022-07-24 02:44:09:812 [AndroidDriver] CDP data collection completed
**2022-07-24 02:44:09:813 [AndroidDriver] WEBVIEW_5007 mapped to pid 5007**
2022-07-24 02:44:09:813 [AndroidDriver] Getting process name for webview 'WEBVIEW_5007'
2022-07-24 02:44:09:814 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell ps --help'
**2022-07-24 02:44:10:192 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell ps'**
**2022-07-24 02:44:10:307 [AndroidDriver] Got process name: 'com.xueqiu.android'**
**2022-07-24 02:44:10:307 [AndroidDriver] Found 1 webview: ["WEBVIEW_com.xueqiu.android"]**
**2022-07-24 02:44:10:308 [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.xueqiu.android"]**
**2022-07-24 02:44:10:309 [W3C (48fdef0b)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_com.xueqiu.android"]**
**2022-07-24 02:44:10:311 [HTTP] <-- GET /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/contexts 200 2087 ms - 53**
2022-07-24 02:44:10:312 [HTTP] 
**2022-07-24 02:44:10:315 [HTTP] --> GET /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/contexts**
2022-07-24 02:44:10:315 [HTTP] {}
2022-07-24 02:44:10:317 [W3C (48fdef0b)] Calling AppiumDriver.getContexts() with args: ["48fdef0b-522e-4b38-824a-ce0b1ebebad2"]
**2022-07-24 02:44:10:318 [AndroidDriver] Getting a list of available webviews**
**2022-07-24 02:44:10:319 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell cat /proc/net/unix'**
**2022-07-24 02:44:11:374 [AndroidDriver] Parsed 1 active devtools socket: ["@webview_devtools_remote_5007"]**
2022-07-24 02:44:11:374 [AndroidDriver] Not collecting web view details. Details collection might help to make Chromedriver initialization more precise. Use the 'enableWebviewDetailsCollection' cap to turn it on
2022-07-24 02:44:11:375 [AndroidDriver] Collecting CDP data of 1 webview
**2022-07-24 02:44:11:777 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:10900 localabstract:webview_devtools_remote_5007'**
2022-07-24 02:44:11:824 [ADB] Removing forwarded port socket connection: 10900 
2022-07-24 02:44:11:825 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward --remove tcp:10900'
2022-07-24 02:44:11:861 [AndroidDriver] CDP data collection completed
2022-07-24 02:44:11:861 [AndroidDriver] WEBVIEW_5007 mapped to pid 5007
2022-07-24 02:44:11:861 [AndroidDriver] Getting process name for webview 'WEBVIEW_5007'
2022-07-24 02:44:11:862 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell ps'
2022-07-24 02:44:11:919 [AndroidDriver] Got process name: 'com.xueqiu.android'
2022-07-24 02:44:11:920 [AndroidDriver] Found 1 webview: ["WEBVIEW_com.xueqiu.android"]
2022-07-24 02:44:11:920 [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.xueqiu.android"]
2022-07-24 02:44:11:921 [W3C (48fdef0b)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_com.xueqiu.android"]
2022-07-24 02:44:11:922 [HTTP] <-- GET /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/contexts 200 1607 ms - 53
2022-07-24 02:44:11:922 [HTTP] 
2022-07-24 02:44:11:923 [HTTP] --> POST /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/context
2022-07-24 02:44:11:924 [HTTP] {"name":"WEBVIEW_com.xueqiu.android"}
2022-07-24 02:44:11:924 [W3C (48fdef0b)] Calling AppiumDriver.setContext() with args: ["WEBVIEW_com.xueqiu.android","48fdef0b-522e-4b38-824a-ce0b1ebebad2"]
2022-07-24 02:44:11:925 [AndroidDriver] Getting a list of available webviews
2022-07-24 02:44:11:925 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell cat /proc/net/unix'
2022-07-24 02:44:11:983 [AndroidDriver] Parsed 1 active devtools socket: ["@webview_devtools_remote_5007"]
2022-07-24 02:44:11:983 [AndroidDriver] Not collecting web view details. Details collection might help to make Chromedriver initialization more precise. Use the 'enableWebviewDetailsCollection' cap to turn it on
2022-07-24 02:44:11:983 [AndroidDriver] Collecting CDP data of 1 webview
2022-07-24 02:44:12:385 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:10900 localabstract:webview_devtools_remote_5007'
2022-07-24 02:44:12:456 [ADB] Removing forwarded port socket connection: 10900 
2022-07-24 02:44:12:458 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward --remove tcp:10900'
2022-07-24 02:44:12:510 [AndroidDriver] CDP data collection completed
2022-07-24 02:44:12:510 [AndroidDriver] WEBVIEW_5007 mapped to pid 5007
2022-07-24 02:44:12:510 [AndroidDriver] Getting process name for webview 'WEBVIEW_5007'
2022-07-24 02:44:12:512 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell ps'
2022-07-24 02:44:12:561 [AndroidDriver] Got process name: 'com.xueqiu.android'
2022-07-24 02:44:12:561 [AndroidDriver] Found 1 webview: ["WEBVIEW_com.xueqiu.android"]
2022-07-24 02:44:12:561 [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.xueqiu.android"]
2022-07-24 02:44:12:563 [AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com.xueqiu.android'
**2022-07-24 02:44:12:568 [AndroidDriver] A port was not given, using random free port: 8000**
2022-07-24 02:44:12:569 [AndroidDriver] Automated Chromedriver download is disabled. Use 'chromedriver_autodownload' server feature to enable it
2022-07-24 02:44:12:569 [AndroidDriver] Precalculated Chromedriver capabilities: {
2022-07-24 02:44:12:570 [AndroidDriver]   "androidPackage": "com.xueqiu.android",
2022-07-24 02:44:12:570 [AndroidDriver]   "androidUseRunningApp": true,
2022-07-24 02:44:12:570 [AndroidDriver]   "androidDeviceSerial": "emulator-5554"
2022-07-24 02:44:12:571 [AndroidDriver] }
2022-07-24 02:44:12:571 [AndroidDriver] Before starting chromedriver, androidPackage is 'com.xueqiu.android'
2022-07-24 02:44:12:572 [Chromedriver] Changed state to 'starting'
**2022-07-24 02:44:12:572 [Chromedriver] Using the static Chromedriver->Chrome mapping**
**2022-07-24 02:44:12:573 [Chromedriver] The most recent known Chrome version: 86.0.4240**
**2022-07-24 02:44:12:574 [Chromedriver] Found 1 executable in 'D:\testtools\driver'**
**2022-07-24 02:44:13:410 [Chromedriver] The following Chromedriver executables were found:**
**2022-07-24 02:44:13:410 [Chromedriver]     'D:/testtools/driver/chromedriver.exe' (version '103.0.5060.53', minimum Chrome version '103.0.0')**
2022-07-24 02:44:13:411 [ADB] Getting package info for 'com.google.android.webview'
**2022-07-24 02:44:13:411 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.google.android.webview'**
**2022-07-24 02:44:13:474 [ADB] Getting package info for 'com.android.webview'**
****2022-07-24 02:44:13:475 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.android.webview'****
**2022-07-24 02:44:13:950 [Chromedriver] Found Chrome bundle 'com.android.webview' version '44.0.2403'**
**2022-07-24 02:44:13:951 [Chromedriver] Error: No Chromedriver found that can automate Chrome '44.0.2403'. You could also try to enable automated chromedrivers download server feature. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details**
2022-07-24 02:44:13:951 [Chromedriver]     at Chromedriver.getCompatibleChromedriver (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:366:15)
2022-07-24 02:44:13:951 [Chromedriver]     at Chromedriver.initChromedriverPath (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:390:11)
2022-07-24 02:44:13:952 [Chromedriver]     at Chromedriver.start (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:455:7)
2022-07-24 02:44:13:952 [Chromedriver]     at AndroidUiautomator2Driver.setupNewChromedriver (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:440:3)
2022-07-24 02:44:13:952 [Chromedriver]     at AndroidUiautomator2Driver.startChromedriverProxy (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:189:10)
2022-07-24 02:44:13:953 [Chromedriver]     at AndroidUiautomator2Driver.switchContext (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:125:5)
2022-07-24 02:44:13:953 [Chromedriver]     at AndroidUiautomator2Driver.setContext (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:60:3)
2022-07-24 02:44:13:954 [Chromedriver] No Chromedriver found that can automate Chrome '44.0.2403'. You could also try to enable automated chromedrivers download server feature. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details
2022-07-24 02:44:13:955 [W3C (48fdef0b)] Encountered internal error running command: Error: No Chromedriver found that can automate Chrome '44.0.2403'. You could also try to enable automated chromedrivers download server feature. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details
2022-07-24 02:44:13:955 [W3C (48fdef0b)]     at Object.errorAndThrow (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-support\lib\logging.js:94:35)
2022-07-24 02:44:13:955 [W3C (48fdef0b)]     at Chromedriver.start (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:540:11)
2022-07-24 02:44:13:956 [HTTP] <-- POST /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/context 500 2033 ms - 1085
2022-07-24 02:44:13:957 [HTTP] 

逻辑如下:
1)获取上下文
*2022-07-24 02:44:08:222 [HTTP] --> GET /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/contexts*

2)获取webviews 的进程句柄

**2022-07-24 02:44:08:227 [AndroidDriver] Getting a list of available webviews**
****2022-07-24 02:44:08:227 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell cat /proc/net/unix'****
**2022-07-24 02:44:08:624 [AndroidDriver] Parsed 1 active devtools socket: ["@webview_devtools_remote_5007"]**

2022-07-24 02:44:08:625 [AndroidDriver] Not collecting web view details. Details collection might help to make Chromedriver initialization more precise. Use the 'enableWebviewDetailsCollection' cap to turn it on
**2022-07-24 02:44:08:625 [AndroidDriver] Collecting CDP data of 1 webview**
**2022-07-24 02:44:09:027 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:10900 localabstract:webview_devtools_remote_5007'**

**2022-07-24 02:44:09:813 [AndroidDriver] WEBVIEW_5007 mapped to pid 5007**

**2022-07-24 02:44:10:192 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell ps'**
**2022-07-24 02:44:10:307 [AndroidDriver] Got process name: 'com.xueqiu.android'**
**2022-07-24 02:44:10:307 [AndroidDriver] Found 1 webview: ["WEBVIEW_com.xueqiu.android"]**
**2022-07-24 02:44:10:308 [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.xueqiu.android"]**
**2022-07-24 02:44:10:309 [W3C (48fdef0b)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_com.xueqiu.android"]**
**2022-07-24 02:44:10:311 [HTTP] <-- GET /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/contexts 200 2087 ms - 53**
2022-07-24 02:44:10:312 [HTTP] 
**2022-07-24 02:44:10:315 [HTTP] --> GET /wd/hub/session/48fdef0b-522e-4b38-824a-ce0b1ebebad2/contexts**
2022-07-24 02:44:10:315 [HTTP] {}
2022-07-24 02:44:10:317 [W3C (48fdef0b)] Calling AppiumDriver.getContexts() with args: ["48fdef0b-522e-4b38-824a-ce0b1ebebad2"]
**2022-07-24 02:44:10:318 [AndroidDriver] Getting a list of available webviews**
**2022-07-24 02:44:10:319 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell cat /proc/net/unix'**
**2022-07-24 02:44:11:374 [AndroidDriver] Parsed 1 active devtools socket: ["@webview_devtools_remote_5007"]**
2022-07-24 02:44:11:374 [AndroidDriver] Not collecting web view details. Details collection might help to make Chromedriver initialization more precise. Use the 'enableWebviewDetailsCollection' cap to turn it on
2022-07-24 02:44:11:375 [AndroidDriver] Collecting CDP data of 1 webview
**2022-07-24 02:44:11:777 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:10900 localabstract:webview_devtools_remote_5007'**


**2022-07-24 02:44:12:568 [AndroidDriver] A port was not given, using random free port: 8000**

获取当前运行包支持的Chromedriver对应的Chrome版本为86.0.4240

2022-07-24 02:44:12:571 [AndroidDriver] Before starting chromedriver, androidPackage is com.xueqiu.android'
**2022-07-24 02:44:12:572 [Chromedriver] Using the static Chromedriver->Chrome mapping**
**2022-07-24 02:44:12:573 [Chromedriver] The most recent known Chrome version: 86.0.4240**
**2022-07-24 02:44:12:574 [Chromedriver] Found 1 executable in 'D:\testtools\driver'**
**2022-07-24 02:44:13:410 [Chromedriver] The following Chromedriver executables were found:**
**2022-07-24 02:44:13:410 [Chromedriver]     'D:/testtools/driver/chromedriver.exe' (version '103.0.5060.53', minimum Chrome version '103.0.0')**

获取当前webview的com.google.android.webview支持的chorme driver版本类型44.0.2403

2022-07-24 02:44:13:411 [ADB] Getting package info for 'com.google.android.webview'
**2022-07-24 02:44:13:411 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.google.android.webview'**
**2022-07-24 02:44:13:474 [ADB] Getting package info for 'com.android.webview'**
****2022-07-24 02:44:13:475 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.android.webview'****
**2022-07-24 02:44:13:950 [Chromedriver] Found Chrome bundle 'com.android.webview' version '44.0.2403'**

2022-07-24 02:44:13:951 [Chromedriver] Error: No Chromedriver found that can automate Chrome ‘44.0.2403’. You could also try to enable automated chromedrivers download server feature. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details

贴下代码看看。看报错是没找到Chromedriver 44.0.2403的版本

你的webview内核是44,你的chromedriver版本太高,是用来做chrome自动化的,没办法做webview的自动化。下载一个支持低版本的支持44的就可以了。

嗯,我下载了一个2.20的版本
如果没有设置caps[“chromedriverExecutableDir”] = r’D:\testtools\driver’,则默认寻找的appium安装路径下的chromedriver版本
C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win下找

2022-07-30 02:06:42:022 [Chromedriver] Found 4 executables in 'D:\testtools\driver'
2022-07-30 02:06:43:420 [Chromedriver] Cannot retrieve version number from '103.0' Chromedriver binary. Make sure it returns a valid version string in response to '--version' command line argument. Command 'D:/testtools/driver/103.0' not found. Is it installed?
2022-07-30 02:06:43:421 [Chromedriver] Cannot retrieve version number from '2.20' Chromedriver binary. Make sure it returns a valid version string in response to '--version' command line argument. Command 'D:/testtools/driver/2.20' not found. Is it installed?
2022-07-30 02:06:43:434 [Chromedriver] The following Chromedriver executables were found:
2022-07-30 02:06:43:434 [Chromedriver]     'D:/testtools/driver/chromedriver103.exe' (version '103.0.5060.53', minimum Chrome version '103')
2022-07-30 02:06:43:435 [Chromedriver]     'D:/testtools/driver/chromedriver220.exe' (version '2.20', minimum Chrome version '43.0.2357')
2022-07-30 02:06:43:436 [Chromedriver] Found 1 Chromedriver, which is missing in the list of known versions: {"103.0.5060.53":"103"}
2022-07-30 02:06:43:455 [ADB] Getting package info for 'com.google.android.webview'
2022-07-30 02:06:43:455 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.google.android.webview'
2022-07-30 02:06:43:805 [ADB] Getting package info for 'com.android.webview'
2022-07-30 02:06:43:806 [ADB] Running 'D:\testtools\Android_sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.android.webview'
2022-07-30 02:06:43:860 [Chromedriver] Found Chrome bundle 'com.android.webview' version '44.0.2403'
2022-07-30 02:06:43:861 [Chromedriver] Found 1 executable capable of automating Chrome '44.0.2403'.
2022-07-30 02:06:43:861 [Chromedriver] Choosing the most recent, 'D:/testtools/driver/chromedriver220.exe'.
2022-07-30 02:06:43:862 [Chromedriver] If a specific version is required, specify it with the `chromedriverExecutable`desired capability.
2022-07-30 02:06:43:862 [Chromedriver] Set chromedriver binary as: D:/testtools/driver/chromedriver220.exe
2022-07-30 02:06:43:863 [Chromedriver] Killing any old chromedrivers, running: wmic process where "commandline like '%chromedriver.exe%--port=8001%'" delete
2022-07-30 02:06:44:112 [Chromedriver] Successfully cleaned up old chromedrivers
关闭