Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: <title>After upgrading Appium-Python-Client 2.11.1, webview execution scrollIntoView reported an error, 'selenium. common. exceptions. JavascriptException: Message: JavaScript error: arguments [0]. scrollIntoView is not a function #924

Open
3 tasks done
tianyao1111 opened this issue Oct 11, 2023 · 14 comments
Labels

Comments

@tianyao1111
Copy link

Do I have the most recent component updates?

  • I use the most recent available driver/plugin and server versions

Is the component officially supported by the Appium team?

  • I have verified the component repository is present under the Appium organization in GitHub

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After upgrading selenium 4, webview execution scrollIntoView reported an error, 'selenium. common. exceptions. JavascriptException: Message: JavaScript error: arguments [0]. scrollIntoView is not a function

Expected Behavior

Realize sliding

Minimal Reproducible Example

caps = {}
caps["platformName"] = "Android"
caps["appPackage"] = "com.picc.mcp"
caps["appActivity"] = "com.picc.mcp.IndexVideoActivity"
caps["noReset"] = True
caps["unicodeKeyboard"] = True
caps["resetKeyboard"] = True
caps["newCommandTimeout"] = 180
caps["adbExecTimeout"] = 180000
caps["logcatFormat"] = "time"
caps["logcatFilterSpecs"] = ['*:E']
caps["clearDeviceLogsOnStart"] = True
caps["chromeOptions"] = {"w3c": False}
driver = webdriver.Remote(host, caps)
driver.implicitly_wait(global_wait)
driver.switch_to.context('WEBVIEW_com.picc.mcp')
driver.implicitly_wait(global_wait)
ele = get_element(driver, 'xpath', '//a[contains(@href,"com.picc.mcp/files/mcph5/login.html")]')
str1 = 'return arguments[0].scrollIntoView();'
driver.execute_script(str1, ele)

Environment

  • Operating system:win10
  • Appium server version (output of appium --version):1.22.0
  • Appium driver(s) and their version(s):
  • Appium plugin(s) and their version(s):
  • Node.js version (output of node --version):v14.16.0
  • npm version (output of npm --version):6.14.11
  • Last component(s) version which did not exhibit the problem:appnium  1.3.0
  • Platform and version under test:Internally used apps   6.1.1.0
  • Real device or emulator/simulator:华为nova 4 

Link to Appium Logs

No response

Further Information

Traceback (most recent call last):
File "D:\YR\UITestAND_PICC_LP_APP01\UITestAND_PICC_LP_APP15\public\MyTestCase.py", line 27, in testPartExecutor
yield
File "D:\YR\UITestAND_PICC_LP_APP01\UITestAND_PICC_LP_APP15\public\MyTestCase.py", line 196, in run
self.setUp()
File "D:\YR\UITestAND_PICC_LP_APP01\UITestAND_PICC_LP_APP15\test_case\LP_CDYT_case_NEW\LP_CDYT_case_NEW_S_04.py", line 79, in setUp
LPLoginPage(self.logging).login_collection(self.driver, self.data['app_user'], self.data['app_pwd'],
File "D:\YR\UITestAND_PICC_LP_APP01\UITestAND_PICC_LP_APP15\test_page\LPLoginPage_app01.py", line 174, in login_collection
self.click_back_login(driver,type1=type1)
File "D:\YR\UITestAND_PICC_LP_APP01\UITestAND_PICC_LP_APP15\test_page\LPLoginPage_app01.py", line 157, in click_back_login
scroll_into_view(driver,ele)
File "D:\YR\UITestAND_PICC_LP_APP01\UITestAND_PICC_LP_APP15\public\common.py", line 650, in scroll_into_view
driver.execute_script(str1, e)
File "C:\yurui\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 405, in execute_script
return self.execute(command, {"script": script, "args": converted_args})["value"]
File "C:\yurui\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "C:\yurui\Python\Python39\lib\site-packages\appium\webdriver\errorhandler.py", line 122, in check_response
raise exception_class(msg=message, stacktrace=format_stacktrace(stacktrace))
selenium.common.exceptions.JavascriptException: Message: javascript error: arguments[0].scrollIntoView is not a function
(Session info: chrome=78.0.3904.108)
(Driver info: chromedriver=78.0.3904.105 (60e2d8774a8151efa6a00b1f358371b1e0e07ee2-refs/branch-heads/3904@{#877}),platform=Windows NT 10.0.19045 x86_64)
Stacktrace:
JavaScriptError: javascript error: arguments[0].scrollIntoView is not a function
(Session info: chrome=78.0.3904.108)
(Driver info: chromedriver=78.0.3904.105 (60e2d8774a8151efa6a00b1f358371b1e0e07ee2-refs/branch-heads/3904@{#877}),platform=Windows NT 10.0.19045 x86_64)
at errorFromMJSONWPStatusCode (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:764:12)
at ProxyRequestError.getActualError (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:661:14)
at JWProxy.command (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at AndroidUiautomator2Driver.execute (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:19:10)

@mykola-mokhnach mykola-mokhnach transferred this issue from appium/appium Oct 11, 2023
@KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa added NeedsInfo and removed bug labels Oct 11, 2023
@tianyao1111
Copy link
Author

https://stackoverflow.com/questions/55492695/javascript-error-arguments0-scrollintoview-is-not-a-function-using-selenium-o ? Could you share the full appium server log as well?
I have also read this article and I used find_ Element. And everything was normal before I upgraded。Here is the log:

�[35m[Appium]�[39m Welcome to Appium v1.22.0
�[35m[Appium]�[39m Non-default server args:
�[35m[Appium]�[39m   sessionOverride: true
�[35m[Appium]�[39m   loglevel: info
�[35m[Appium]�[39m   chromedriverExecutable: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
�[35m[Appium]�[39m   relaxedSecurityEnabled: true
�[35m[Appium]�[39m Appium REST http interface listener started on 0.0.0.0:4723
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session�[39m
�[35m[HTTP]�[39m �[90m{"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:appPackage":"com.picc.mcp","appium:appActivity":"com.picc.mcp.IndexVideoActivity","appium:noReset":true,"appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:newCommandTimeout":180,"appium:adbExecTimeout":180000,"appium:logcatFormat":"time","appium:logcatFilterSpecs":["*:E"],"appium:clearDeviceLogsOnStart":true,"appium:chromeOptions":{"w3c":false}}}}�[39m
�[35m[Appium]�[39m 

�[35m[Appium]�[39m ======================================================================

�[35m[Appium]�[39m   DEPRECATION WARNING:

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   The 'automationName' capability was not provided in the desired 
�[35m[Appium]�[39m   capabilities for this Android session

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   Setting 'automationName=UiAutomator2' by default and using the 
�[35m[Appium]�[39m   UiAutomator2 Driver

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   The next major version of Appium (2.x) will **require** the 
�[35m[Appium]�[39m   'automationName' capability to be set for all sessions on all 
�[35m[Appium]�[39m   platforms

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   In previous versions (Appium <= 1.13.x), the default was 
�[35m[Appium]�[39m   'automationName=UiAutomator1'

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   If you wish to use that automation instead of UiAutomator2, please 
�[35m[Appium]�[39m   add 'automationName=UiAutomator1' to your desired capabilities

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   For more information about drivers, please visit 
�[35m[Appium]�[39m   http://appium.io/docs/en/about-appium/intro/ and explore the 
�[35m[Appium]�[39m   'Drivers' menu

�[35m[Appium]�[39m 

�[35m[Appium]�[39m ======================================================================

�[35m[Appium]�[39m 
�[35m[Appium]�[39m Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session
�[35m[Appium]�[39m Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
�[35m[BaseDriver]�[39m Session created with session id: e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[UiAutomator2]�[39m Starting 'com.picc.mcp' directly on the device
�[35m[ADB]�[39m Found 1 'build-tools' folders under 'D:\aa\SDK' (newest first):
�[35m[ADB]�[39m     D:/aa/SDK/build-tools/30.0.3
�[35m[ADB]�[39m Using 'adb.exe' from 'D:\aa\SDK\platform-tools\adb.exe'
�[35m[AndroidDriver]�[39m Retrieving device list
�[35m[AndroidDriver]�[39m Using device: GPG4C19619002744
�[35m[ADB]�[39m Using 'adb.exe' from 'D:\aa\SDK\platform-tools\adb.exe'
�[35m[ADB]�[39m Getting device platform version
�[35m[UiAutomator2]�[39m Relaxing hidden api policy
�[35m[AndroidDriver]�[39m No app sent in, not parsing package/activity
�[35m[ADB]�[39m Using 'apksigner.jar' from 'D:\aa\SDK\build-tools\30.0.3\lib\apksigner.jar'
�[35m[ADB]�[39m 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk' is signed with the default certificate
�[35m[ADB]�[39m 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
�[35m[UiAutomator2]�[39m Server packages are not going to be (re)installed
�[35m[ADB]�[39m Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
�[35m[UiAutomator2]�[39m Starting UIAutomator2 server 4.24.0
�[35m[UiAutomator2]�[39m Using UIAutomator2 server from 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk' and test from 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
�[35m[UiAutomator2]�[39m Waiting up to 30000ms for UiAutomator2 to be online...
�[35m[WD Proxy]�[39m socket hang up
�[35m[WD Proxy]�[39m socket hang up
�[35m[WD Proxy]�[39m socket hang up
�[35m[WD Proxy]�[39m Determined the downstream protocol as 'W3C'
�[35m[AndroidDriver]�[39m Screen already unlocked, doing nothing
�[35m[UiAutomator2]�[39m Starting 'com.picc.mcp/com.picc.mcp.IndexVideoActivity and waiting for 'com.picc.mcp/com.picc.mcp.IndexVideoActivity'
�[35m[Appium]�[39m New AndroidUiautomator2Driver session created successfully, session e54aee2a-3b19-4ee6-928d-6e5f5e02b614 added to master session list
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session �[39m�[32m200�[39m �[90m35878 ms - 1238�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/timeouts�[39m
�[35m[HTTP]�[39m �[90m{"implicit":20000}�[39m
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/timeouts �[39m�[32m200�[39m �[90m6 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"xpath","value":"//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]"}�[39m
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element �[39m�[32m200�[39m �[90m1640 ms - 137�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/00000000-0000-000e-0000-002500000012/click�[39m
�[35m[HTTP]�[39m �[90m{"id":"00000000-0000-000e-0000-002500000012"}�[39m
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/00000000-0000-000e-0000-002500000012/click �[39m�[32m200�[39m �[90m748 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/context�[39m
�[35m[HTTP]�[39m �[90m{"name":"WEBVIEW_com.picc.mcp"}�[39m
�[35m[Chromedriver]�[39m Set chromedriver binary as: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
�[35m[Chromedriver]�[39m Spawning chromedriver with: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
�[35m[Chromedriver]�[39m Chromedriver v. 81.0.4044.138 supports W3C protocol, but MJSONWP one has been explicitly requested
�[35m[WD Proxy]�[39m connect ECONNREFUSED 127.0.0.1:8000
�[35m[Chromedriver]�[39m Starting MJSONWP Chromedriver session with capabilities: {
�[35m[Chromedriver]�[39m   "desiredCapabilities": {
�[35m[Chromedriver]�[39m     "chromeOptions": {
�[35m[Chromedriver]�[39m       "androidPackage": "com.picc.mcp",
�[35m[Chromedriver]�[39m       "androidUseRunningApp": true,
�[35m[Chromedriver]�[39m       "androidProcess": "com.picc.mcp",
�[35m[Chromedriver]�[39m       "androidDeviceSerial": "GPG4C19619002744",
�[35m[Chromedriver]�[39m       "w3c": false
�[35m[Chromedriver]�[39m     },
�[35m[Chromedriver]�[39m     "loggingPrefs": {
�[35m[Chromedriver]�[39m       "browser": "ALL"
�[35m[Chromedriver]�[39m     }
�[35m[Chromedriver]�[39m   }
�[35m[Chromedriver]�[39m }
�[35m[WD Proxy]�[39m Determined the downstream protocol as 'MJSONWP'
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/context �[39m�[32m200�[39m �[90m6731 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/timeouts�[39m
�[35m[HTTP]�[39m �[90m{"implicit":20000}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/timeouts �[39m�[32m200�[39m �[90m6 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"id","value":"masterServer1"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element �[39m�[32m200�[39m �[90m135 ms - 156�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mGET�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/attribute/value�[39m
�[35m[HTTP]�[39m �[90m{}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- GET /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/attribute/value �[39m�[32m200�[39m �[90m59 ms - 75�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"a","value":["","a"],"id":"0.8451682828008877-1"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value �[39m�[32m200�[39m �[90m591 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"x","value":["","x"],"id":"0.8451682828008877-1"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value �[39m�[32m200�[39m �[90m256 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"10.22.64.243","value":["1","0",".","2","2",".","6","4",".","2","4","3"],"id":"0.8451682828008877-1"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value �[39m�[32m200�[39m �[90m2138 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"id","value":"port"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element �[39m�[32m200�[39m �[90m86 ms - 156�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mGET�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-3/attribute/value�[39m
�[35m[HTTP]�[39m �[90m{}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- GET /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-3/attribute/value �[39m�[32m200�[39m �[90m62 ms - 67�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"xpath","value":"//a[contains(@href,\"com.picc.mcp/files/mcph5/login.html\")]"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element �[39m�[32m200�[39m �[90m60 ms - 156�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.8451682828008877-4"}]}�[39m
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/execute/sync �[39m�[31m500�[39m �[90m142 ms - 1383�[39m
�[35m[HTTP]�[39m �[90m�[39m

@tianyao1111
Copy link
Author

https://stackoverflow.com/questions/55492695/javascript-error-arguments0-scrollintoview-is-not-a-function-using-selenium-o ? Could you share the full appium server log as well?
I have also read this article and I used find_ Element. And everything was normal before I upgraded。Here is the log:

�[35m[Appium]�[39m Welcome to Appium v1.22.0
�[35m[Appium]�[39m Non-default server args:
�[35m[Appium]�[39m   sessionOverride: true
�[35m[Appium]�[39m   loglevel: info
�[35m[Appium]�[39m   chromedriverExecutable: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
�[35m[Appium]�[39m   relaxedSecurityEnabled: true
�[35m[Appium]�[39m Appium REST http interface listener started on 0.0.0.0:4723
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session�[39m
�[35m[HTTP]�[39m �[90m{"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:appPackage":"com.picc.mcp","appium:appActivity":"com.picc.mcp.IndexVideoActivity","appium:noReset":true,"appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:newCommandTimeout":180,"appium:adbExecTimeout":180000,"appium:logcatFormat":"time","appium:logcatFilterSpecs":["*:E"],"appium:clearDeviceLogsOnStart":true,"appium:chromeOptions":{"w3c":false}}}}�[39m
�[35m[Appium]�[39m 

�[35m[Appium]�[39m ======================================================================

�[35m[Appium]�[39m   DEPRECATION WARNING:

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   The 'automationName' capability was not provided in the desired 
�[35m[Appium]�[39m   capabilities for this Android session

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   Setting 'automationName=UiAutomator2' by default and using the 
�[35m[Appium]�[39m   UiAutomator2 Driver

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   The next major version of Appium (2.x) will **require** the 
�[35m[Appium]�[39m   'automationName' capability to be set for all sessions on all 
�[35m[Appium]�[39m   platforms

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   In previous versions (Appium <= 1.13.x), the default was 
�[35m[Appium]�[39m   'automationName=UiAutomator1'

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   If you wish to use that automation instead of UiAutomator2, please 
�[35m[Appium]�[39m   add 'automationName=UiAutomator1' to your desired capabilities

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   For more information about drivers, please visit 
�[35m[Appium]�[39m   http://appium.io/docs/en/about-appium/intro/ and explore the 
�[35m[Appium]�[39m   'Drivers' menu

�[35m[Appium]�[39m 

�[35m[Appium]�[39m ======================================================================

�[35m[Appium]�[39m 
�[35m[Appium]�[39m Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session
�[35m[Appium]�[39m Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
�[35m[BaseDriver]�[39m Session created with session id: e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[UiAutomator2]�[39m Starting 'com.picc.mcp' directly on the device
�[35m[ADB]�[39m Found 1 'build-tools' folders under 'D:\aa\SDK' (newest first):
�[35m[ADB]�[39m     D:/aa/SDK/build-tools/30.0.3
�[35m[ADB]�[39m Using 'adb.exe' from 'D:\aa\SDK\platform-tools\adb.exe'
�[35m[AndroidDriver]�[39m Retrieving device list
�[35m[AndroidDriver]�[39m Using device: GPG4C19619002744
�[35m[ADB]�[39m Using 'adb.exe' from 'D:\aa\SDK\platform-tools\adb.exe'
�[35m[ADB]�[39m Getting device platform version
�[35m[UiAutomator2]�[39m Relaxing hidden api policy
�[35m[AndroidDriver]�[39m No app sent in, not parsing package/activity
�[35m[ADB]�[39m Using 'apksigner.jar' from 'D:\aa\SDK\build-tools\30.0.3\lib\apksigner.jar'
�[35m[ADB]�[39m 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk' is signed with the default certificate
�[35m[ADB]�[39m 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
�[35m[UiAutomator2]�[39m Server packages are not going to be (re)installed
�[35m[ADB]�[39m Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
�[35m[UiAutomator2]�[39m Starting UIAutomator2 server 4.24.0
�[35m[UiAutomator2]�[39m Using UIAutomator2 server from 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk' and test from 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
�[35m[UiAutomator2]�[39m Waiting up to 30000ms for UiAutomator2 to be online...
�[35m[WD Proxy]�[39m socket hang up
�[35m[WD Proxy]�[39m socket hang up
�[35m[WD Proxy]�[39m socket hang up
�[35m[WD Proxy]�[39m Determined the downstream protocol as 'W3C'
�[35m[AndroidDriver]�[39m Screen already unlocked, doing nothing
�[35m[UiAutomator2]�[39m Starting 'com.picc.mcp/com.picc.mcp.IndexVideoActivity and waiting for 'com.picc.mcp/com.picc.mcp.IndexVideoActivity'
�[35m[Appium]�[39m New AndroidUiautomator2Driver session created successfully, session e54aee2a-3b19-4ee6-928d-6e5f5e02b614 added to master session list
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session �[39m�[32m200�[39m �[90m35878 ms - 1238�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/timeouts�[39m
�[35m[HTTP]�[39m �[90m{"implicit":20000}�[39m
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/timeouts �[39m�[32m200�[39m �[90m6 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"xpath","value":"//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]"}�[39m
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element �[39m�[32m200�[39m �[90m1640 ms - 137�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/00000000-0000-000e-0000-002500000012/click�[39m
�[35m[HTTP]�[39m �[90m{"id":"00000000-0000-000e-0000-002500000012"}�[39m
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/00000000-0000-000e-0000-002500000012/click �[39m�[32m200�[39m �[90m748 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/context�[39m
�[35m[HTTP]�[39m �[90m{"name":"WEBVIEW_com.picc.mcp"}�[39m
�[35m[Chromedriver]�[39m Set chromedriver binary as: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
�[35m[Chromedriver]�[39m Spawning chromedriver with: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
�[35m[Chromedriver]�[39m Chromedriver v. 81.0.4044.138 supports W3C protocol, but MJSONWP one has been explicitly requested
�[35m[WD Proxy]�[39m connect ECONNREFUSED 127.0.0.1:8000
�[35m[Chromedriver]�[39m Starting MJSONWP Chromedriver session with capabilities: {
�[35m[Chromedriver]�[39m   "desiredCapabilities": {
�[35m[Chromedriver]�[39m     "chromeOptions": {
�[35m[Chromedriver]�[39m       "androidPackage": "com.picc.mcp",
�[35m[Chromedriver]�[39m       "androidUseRunningApp": true,
�[35m[Chromedriver]�[39m       "androidProcess": "com.picc.mcp",
�[35m[Chromedriver]�[39m       "androidDeviceSerial": "GPG4C19619002744",
�[35m[Chromedriver]�[39m       "w3c": false
�[35m[Chromedriver]�[39m     },
�[35m[Chromedriver]�[39m     "loggingPrefs": {
�[35m[Chromedriver]�[39m       "browser": "ALL"
�[35m[Chromedriver]�[39m     }
�[35m[Chromedriver]�[39m   }
�[35m[Chromedriver]�[39m }
�[35m[WD Proxy]�[39m Determined the downstream protocol as 'MJSONWP'
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/context �[39m�[32m200�[39m �[90m6731 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/timeouts�[39m
�[35m[HTTP]�[39m �[90m{"implicit":20000}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/timeouts �[39m�[32m200�[39m �[90m6 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"id","value":"masterServer1"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element �[39m�[32m200�[39m �[90m135 ms - 156�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mGET�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/attribute/value�[39m
�[35m[HTTP]�[39m �[90m{}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- GET /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/attribute/value �[39m�[32m200�[39m �[90m59 ms - 75�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"a","value":["","a"],"id":"0.8451682828008877-1"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value �[39m�[32m200�[39m �[90m591 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"x","value":["","x"],"id":"0.8451682828008877-1"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value �[39m�[32m200�[39m �[90m256 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"10.22.64.243","value":["1","0",".","2","2",".","6","4",".","2","4","3"],"id":"0.8451682828008877-1"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-1/value �[39m�[32m200�[39m �[90m2138 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"id","value":"port"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element �[39m�[32m200�[39m �[90m86 ms - 156�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mGET�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-3/attribute/value�[39m
�[35m[HTTP]�[39m �[90m{}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- GET /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element/0.8451682828008877-3/attribute/value �[39m�[32m200�[39m �[90m62 ms - 67�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"xpath","value":"//a[contains(@href,\"com.picc.mcp/files/mcph5/login.html\")]"}�[39m
�[35m[W3C (e54aee2a)]�[39m Driver proxy active, passing request on via HTTP proxy
�[35m[WD Proxy]�[39m Replacing sessionId 3fb31c7ca399ca17a3279d716ff44428 with e54aee2a-3b19-4ee6-928d-6e5f5e02b614
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/element �[39m�[32m200�[39m �[90m60 ms - 156�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.8451682828008877-4"}]}�[39m
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/execute/sync �[39m�[31m500�[39m �[90m142 ms - 1383�[39m
�[35m[HTTP]�[39m �[90m�[39m

If this is not a bug, why does scrollIntoView not report this error when running in selenium, but when executing in appium.

@KazuCocoa
Copy link
Member

Possibly chromedriver knows the reason. loglevel debug may show more info. appium:showChromedriverLog capability is also.

Basically the response came from chromedriver because your log had set context as below. Then, basically Appium proxies request to the chromedriver without any changes in this case.

> �[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/context�[39m
> �[35m[HTTP]�[39m �[90m{"name":"WEBVIEW_com.picc.mcp"}�[39m
> �[35m[Chromedriver]�[39m Set chromedriver binary as: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
> �[35m[Chromedriver]�[39m Spawning chromedriver with: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
> �[35m[Chromedriver]�[39m Chromedriver v. 81.0.4044.138 supports W3C protocol, but MJSONWP one has been explicitly requested
> �[35m[WD Proxy]�[39m connect ECONNREFUSED 127.0.0.1:8000
> �[35m[Chromedriver]�[39m Starting MJSONWP Chromedriver session with capabilities: {
> �[35m[Chromedriver]�[39m   "desiredCapabilities": {
> �[35m[Chromedriver]�[39m     "chromeOptions": {
> �[35m[Chromedriver]�[39m       "androidPackage": "com.picc.mcp",
> �[35m[Chromedriver]�[39m       "androidUseRunningApp": true,
> �[35m[Chromedriver]�[39m       "androidProcess": "com.picc.mcp",
> �[35m[Chromedriver]�[39m       "androidDeviceSerial": "GPG4C19619002744",
> �[35m[Chromedriver]�[39m       "w3c": false
> �[35m[Chromedriver]�[39m     },
> �[35m[Chromedriver]�[39m     "loggingPrefs": {
> �[35m[Chromedriver]�[39m       "browser": "ALL"
> �[35m[Chromedriver]�[39m     }
> �[35m[Chromedriver]�[39m   }
> �[35m[Chromedriver]�[39m }
> �[35m[WD Proxy]�[39m Determined the downstream protocol as 'MJSONWP'
> �[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/context �[39m�[32m200�[39m �[90m6731 ms - 14�[39m
> �[35m[HTTP]�[39m �[90m�[39m

@tianyao1111
Copy link
Author

Possibly chromedriver knows the reason. loglevel debug may show more info. appium:showChromedriverLog capability is also.

Basically the response came from chromedriver because your log had set context as below. Then, basically Appium proxies request to the chromedriver without any changes in this case.

> �[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/context�[39m
> �[35m[HTTP]�[39m �[90m{"name":"WEBVIEW_com.picc.mcp"}�[39m
> �[35m[Chromedriver]�[39m Set chromedriver binary as: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
> �[35m[Chromedriver]�[39m Spawning chromedriver with: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
> �[35m[Chromedriver]�[39m Chromedriver v. 81.0.4044.138 supports W3C protocol, but MJSONWP one has been explicitly requested
> �[35m[WD Proxy]�[39m connect ECONNREFUSED 127.0.0.1:8000
> �[35m[Chromedriver]�[39m Starting MJSONWP Chromedriver session with capabilities: {
> �[35m[Chromedriver]�[39m   "desiredCapabilities": {
> �[35m[Chromedriver]�[39m     "chromeOptions": {
> �[35m[Chromedriver]�[39m       "androidPackage": "com.picc.mcp",
> �[35m[Chromedriver]�[39m       "androidUseRunningApp": true,
> �[35m[Chromedriver]�[39m       "androidProcess": "com.picc.mcp",
> �[35m[Chromedriver]�[39m       "androidDeviceSerial": "GPG4C19619002744",
> �[35m[Chromedriver]�[39m       "w3c": false
> �[35m[Chromedriver]�[39m     },
> �[35m[Chromedriver]�[39m     "loggingPrefs": {
> �[35m[Chromedriver]�[39m       "browser": "ALL"
> �[35m[Chromedriver]�[39m     }
> �[35m[Chromedriver]�[39m   }
> �[35m[Chromedriver]�[39m }
> �[35m[WD Proxy]�[39m Determined the downstream protocol as 'MJSONWP'
> �[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/e54aee2a-3b19-4ee6-928d-6e5f5e02b614/context �[39m�[32m200�[39m �[90m6731 ms - 14�[39m
> �[35m[HTTP]�[39m �[90m�[39m

here is debug loglevel log:

�[35m[Appium]�[39m Welcome to Appium v1.22.0
�[35m[Appium]�[39m Non-default server args:
�[35m[Appium]�[39m   sessionOverride: true
�[35m[Appium]�[39m   chromedriverExecutable: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
�[35m[Appium]�[39m   relaxedSecurityEnabled: true
�[35m[Appium]�[39m Appium REST http interface listener started on 0.0.0.0:4723
[debug] �[35m[HTTP]�[39m Request idempotency key: d3ce0e6e-b176-4950-af19-48d88253ffef
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session�[39m
�[35m[HTTP]�[39m �[90m{"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:appPackage":"com.picc.mcp","appium:appActivity":"com.picc.mcp.IndexVideoActivity","appium:noReset":true,"appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:newCommandTimeout":180,"appium:adbExecTimeout":180000,"appium:logcatFormat":"time","appium:logcatFilterSpecs":["*:E"],"appium:clearDeviceLogsOnStart":true,"appium:chromeOptions":{"w3c":false}}}}�[39m
[debug] �[35m[W3C]�[39m Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:appPackage":"com.picc.mcp","appium:appActivity":"com.picc.mcp.IndexVideoActivity","appium:noReset":true,"appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:newCommandTimeout":180,"appium:adbExecTimeout":180000,"appium:logcatFormat":"time","appium:logcatFilterSpecs":["*:E"],"appium:clearDeviceLogsOnStart":true,"appium:chromeOptions":{"w3c":false}}}]
[debug] �[35m[BaseDriver]�[39m Event 'newSessionRequested' logged at 1698114241595 (10:24:01 GMT+0800 (中国标准时间))
�[35m[Appium]�[39m 

�[35m[Appium]�[39m ======================================================================

�[35m[Appium]�[39m   DEPRECATION WARNING:

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   The 'automationName' capability was not provided in the desired 
�[35m[Appium]�[39m   capabilities for this Android session

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   Setting 'automationName=UiAutomator2' by default and using the 
�[35m[Appium]�[39m   UiAutomator2 Driver

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   The next major version of Appium (2.x) will **require** the 
�[35m[Appium]�[39m   'automationName' capability to be set for all sessions on all 
�[35m[Appium]�[39m   platforms

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   In previous versions (Appium <= 1.13.x), the default was 
�[35m[Appium]�[39m   'automationName=UiAutomator1'

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   If you wish to use that automation instead of UiAutomator2, please 
�[35m[Appium]�[39m   add 'automationName=UiAutomator1' to your desired capabilities

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   For more information about drivers, please visit 
�[35m[Appium]�[39m   http://appium.io/docs/en/about-appium/intro/ and explore the 
�[35m[Appium]�[39m   'Drivers' menu

�[35m[Appium]�[39m 

�[35m[Appium]�[39m ======================================================================

�[35m[Appium]�[39m 
�[35m[Appium]�[39m Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session
[debug] �[35m[Appium]�[39m There are no active sessions for cleanup
�[35m[Appium]�[39m Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] �[35m[BaseDriver]�[39m Creating session with W3C capabilities: {
[debug] �[35m[BaseDriver]�[39m   "alwaysMatch": {
[debug] �[35m[BaseDriver]�[39m     "platformName": "Android",
[debug] �[35m[BaseDriver]�[39m     "appium:appPackage": "com.picc.mcp",
[debug] �[35m[BaseDriver]�[39m     "appium:appActivity": "com.picc.mcp.IndexVideoActivity",
[debug] �[35m[BaseDriver]�[39m     "appium:noReset": true,
[debug] �[35m[BaseDriver]�[39m     "appium:unicodeKeyboard": true,
[debug] �[35m[BaseDriver]�[39m     "appium:resetKeyboard": true,
[debug] �[35m[BaseDriver]�[39m     "appium:newCommandTimeout": 180,
[debug] �[35m[BaseDriver]�[39m     "appium:adbExecTimeout": 180000,
[debug] �[35m[BaseDriver]�[39m     "appium:logcatFormat": "time",
[debug] �[35m[BaseDriver]�[39m     "appium:logcatFilterSpecs": [
[debug] �[35m[BaseDriver]�[39m       "*:E"
[debug] �[35m[BaseDriver]�[39m     ],
[debug] �[35m[BaseDriver]�[39m     "appium:clearDeviceLogsOnStart": true,
[debug] �[35m[BaseDriver]�[39m     "appium:chromeOptions": {
[debug] �[35m[BaseDriver]�[39m       "w3c": false
[debug] �[35m[BaseDriver]�[39m     }
[debug] �[35m[BaseDriver]�[39m   },
[debug] �[35m[BaseDriver]�[39m   "firstMatch": [
[debug] �[35m[BaseDriver]�[39m     {}
[debug] �[35m[BaseDriver]�[39m   ]
[debug] �[35m[BaseDriver]�[39m }
�[35m[BaseDriver]�[39m Session created with session id: 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[UiAutomator2]�[39m Starting 'com.picc.mcp' directly on the device
�[35m[ADB]�[39m Found 1 'build-tools' folders under 'D:\aa\SDK' (newest first):
�[35m[ADB]�[39m     D:/aa/SDK/build-tools/30.0.3
�[35m[ADB]�[39m Using 'adb.exe' from 'D:\aa\SDK\platform-tools\adb.exe'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 start-server'
�[35m[AndroidDriver]�[39m Retrieving device list
[debug] �[35m[ADB]�[39m Trying to find a connected android device
[debug] �[35m[ADB]�[39m Getting connected devices
[debug] �[35m[ADB]�[39m Connected devices: [{"udid":"GPG4C19619002744","state":"device"}]
�[35m[AndroidDriver]�[39m Using device: GPG4C19619002744
�[35m[ADB]�[39m Using 'adb.exe' from 'D:\aa\SDK\platform-tools\adb.exe'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 start-server'
[debug] �[35m[ADB]�[39m Setting device id to GPG4C19619002744
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell getprop ro.build.version.sdk'
[debug] �[35m[ADB]�[39m Current device property 'ro.build.version.sdk': 29
�[35m[ADB]�[39m Getting device platform version
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell getprop ro.build.version.release'
[debug] �[35m[ADB]�[39m Current device property 'ro.build.version.release': 10
[debug] �[35m[ADB]�[39m Device API level: 29
�[35m[UiAutomator2]�[39m Relaxing hidden api policy
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
�[35m[AndroidDriver]�[39m No app sent in, not parsing package/activity
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 wait-for-device'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell echo ping'
[debug] �[35m[AndroidDriver]�[39m Pushing settings apk to device...
[debug] �[35m[ADB]�[39m Getting install status for io.appium.settings
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.settings'
[debug] �[35m[ADB]�[39m 'io.appium.settings' is installed
[debug] �[35m[ADB]�[39m Getting package info for 'io.appium.settings'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.settings'
[debug] �[35m[ADB]�[39m The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0')
[debug] �[35m[ADB]�[39m There is no need to install/upgrade 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
[debug] �[35m[ADB]�[39m Getting IDs of all 'io.appium.settings' processes
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell 'pgrep --help; echo $?''
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] �[35m[AndroidDriver]�[39m io.appium.settings is already running. There is no need to reset its permissions.
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell appops set io.appium.settings android:mock_location allow'
[debug] �[35m[Logcat]�[39m Clearing logcat logs from device
[debug] �[35m[Logcat]�[39m Starting logs capture with command: D:\\aa\\SDK\\platform-tools\\adb.exe -P 5037 -s GPG4C19619002744 logcat -v time \*\:E
[debug] �[35m[AndroidDriver]�[39m Enabling Unicode keyboard support
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell settings get secure default_input_method'
[debug] �[35m[AndroidDriver]�[39m Unsetting previous IME io.appium.settings/.UnicodeIME
[debug] �[35m[AndroidDriver]�[39m Setting IME to 'io.appium.settings/.UnicodeIME'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell ime enable io.appium.settings/.UnicodeIME'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell ime set io.appium.settings/.UnicodeIME'
[debug] �[35m[UiAutomator2]�[39m Forwarding UiAutomator2 Server port 6790 to local port 8200
[debug] �[35m[ADB]�[39m Forwarding system: 8200 to device: 6790
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward tcp:8200 tcp:6790'
[debug] �[35m[ADB]�[39m Getting install status for io.appium.uiautomator2.server
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.uiautomator2.server'
[debug] �[35m[ADB]�[39m 'io.appium.uiautomator2.server' is installed
[debug] �[35m[ADB]�[39m Getting package info for 'io.appium.uiautomator2.server'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.uiautomator2.server'
[debug] �[35m[ADB]�[39m The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.24.0' >= '4.24.0')
[debug] �[35m[UiAutomator2]�[39m io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] �[35m[ADB]�[39m Checking app cert for C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk
�[35m[ADB]�[39m Using 'apksigner.jar' from 'D:\aa\SDK\build-tools\30.0.3\lib\apksigner.jar'
[debug] �[35m[ADB]�[39m Starting apksigner: 'C:\\Program Files\\Java\\jdk1.8.0_201\\bin\\java.exe' -Xmx1024M -Xss1m -jar D:\\aa\\SDK\\build-tools\\30.0.3\\lib\\apksigner.jar verify --print-certs C:\\Users\\admin\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v4.24.0.apk
[debug] �[35m[ADB]�[39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US

[debug] �[35m[ADB]�[39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc

[debug] �[35m[ADB]�[39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81

[debug] �[35m[ADB]�[39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87

[debug] �[35m[ADB]�[39m 
[debug] �[35m[ADB]�[39m sha256 hash did match for 'appium-uiautomator2-server-v4.24.0.apk'
�[35m[ADB]�[39m 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk' is signed with the default certificate
[debug] �[35m[ADB]�[39m Getting install status for io.appium.uiautomator2.server.test
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.uiautomator2.server.test'
[debug] �[35m[ADB]�[39m 'io.appium.uiautomator2.server.test' is installed
[debug] �[35m[ADB]�[39m Checking app cert for C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[debug] �[35m[ADB]�[39m Starting apksigner: 'C:\\Program Files\\Java\\jdk1.8.0_201\\bin\\java.exe' -Xmx1024M -Xss1m -jar D:\\aa\\SDK\\build-tools\\30.0.3\\lib\\apksigner.jar verify --print-certs C:\\Users\\admin\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk
[debug] �[35m[ADB]�[39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US

[debug] �[35m[ADB]�[39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc

[debug] �[35m[ADB]�[39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81

[debug] �[35m[ADB]�[39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87

[debug] �[35m[ADB]�[39m 
[debug] �[35m[ADB]�[39m sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk'
�[35m[ADB]�[39m 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
�[35m[UiAutomator2]�[39m Server packages are not going to be (re)installed
[debug] �[35m[UiAutomator2]�[39m Waiting up to 30000ms for services to be available
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell pm list instrumentation'
[debug] �[35m[UiAutomator2]�[39m Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
�[35m[ADB]�[39m Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[debug] �[35m[ADB]�[39m Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[debug] �[35m[UiAutomator2]�[39m No app capability. Assuming it is already on the device
[debug] �[35m[UiAutomator2]�[39m Performing shallow cleanup of automation leftovers
[debug] �[35m[UiAutomator2]�[39m No obsolete sessions have been detected (socket hang up)
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell am force-stop io.appium.uiautomator2.server.test'
�[35m[UiAutomator2]�[39m Starting UIAutomator2 server 4.24.0
�[35m[UiAutomator2]�[39m Using UIAutomator2 server from 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk' and test from 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
�[35m[UiAutomator2]�[39m Waiting up to 30000ms for UiAutomator2 to be online...
[debug] �[35m[ADB]�[39m Creating ADB subprocess with args: ["-P",5037,"-s","GPG4C19619002744","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
�[35m[WD Proxy]�[39m socket hang up
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
�[35m[WD Proxy]�[39m socket hang up
[debug] �[35m[Instrumentation]�[39m io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
�[35m[WD Proxy]�[39m socket hang up
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[debug] �[35m[UiAutomator2]�[39m The initialization of the instrumentation process took 3362ms
[debug] �[35m[WD Proxy]�[39m Matched '/session' to command name 'createSession'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /session] to [POST http://127.0.0.1:8200/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"chromeOptions":{"w3c":false}},"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"chromeOptions":{"w3c":false},"deviceName":"GPG4C19619002744","deviceUDID":"GPG4C19619002744"}],"alwaysMatch":{}}}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"f450ed95-7fa7-43ed-8edd-78203bb78429","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"chromeOptions":{"w3c":false}},"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"chromeOptions":{"w3c":false},"deviceName":"GPG4C19619002744","deviceUDID":"GPG4C19619002744"}],"alwaysMatch":{}},"se...
�[35m[WD Proxy]�[39m Determined the downstream protocol as 'W3C'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/f450ed95-7fa7-43ed-8edd-78203bb78429/appium/device/info] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"f450ed95-7fa7-43ed-8edd-78203bb78429","value":{"androidId":"6e49637b773bd7af","apiVersion":"29","bluetooth":{"state":"OFF"},"brand":"HUAWEI","carrierName":"中国电信","displayDensity":480,"locale":"zh_CN_#Hans","manufacturer":"HUAWEI","model":"VCE-AL00","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":1048576,"linkUpstreamBandwidthKbps":1048576,"networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-39,"transportTypes":"TRANSPORT_WIFI"},"detailedState":"CONNECTED","extraInfo":null,"isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":0,"subtypeName":"","type":1,"typeName":"WIFI"}],"platformVersion":"10","realDisplaySize":"1080x2310","timeZone":"Asia/Shanghai"}}
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys window'
�[35m[AndroidDriver]�[39m Screen already unlocked, doing nothing
�[35m[UiAutomator2]�[39m Starting 'com.picc.mcp/com.picc.mcp.IndexVideoActivity and waiting for 'com.picc.mcp/com.picc.mcp.IndexVideoActivity'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell am start -W -n com.picc.mcp/com.picc.mcp.IndexVideoActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8200/wd/hub/session/f450ed95-7fa7-43ed-8edd-78203bb78429/appium/device/pixel_ratio] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"f450ed95-7fa7-43ed-8edd-78203bb78429","value":3}
[debug] �[35m[WD Proxy]�[39m Matched '/appium/device/system_bars' to command name 'getSystemBars'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8200/wd/hub/session/f450ed95-7fa7-43ed-8edd-78203bb78429/appium/device/system_bars] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"f450ed95-7fa7-43ed-8edd-78203bb78429","value":{"statusBar":102}}
[debug] �[35m[WD Proxy]�[39m Matched '/window/current/size' to command name 'getWindowSize'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /window/current/size] to [GET http://127.0.0.1:8200/wd/hub/session/f450ed95-7fa7-43ed-8edd-78203bb78429/window/current/size] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"f450ed95-7fa7-43ed-8edd-78203bb78429","value":{"height":2090,"width":1080}}
�[35m[Appium]�[39m New AndroidUiautomator2Driver session created successfully, session 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652 added to master session list
[debug] �[35m[BaseDriver]�[39m Event 'newSessionStarted' logged at 1698114261631 (10:24:21 GMT+0800 (中国标准时间))
[debug] �[35m[W3C (8bd0f92e)]�[39m Cached the protocol value 'W3C' for the new session 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
[debug] �[35m[W3C (8bd0f92e)]�[39m 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","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"chromeOptions":{"w3c":false}},"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"chromeOptions":{"w3c":false},"deviceName":"GPG4C19619002744","deviceUDID":"GPG4C19619002744","deviceApiLevel":29,"platformVersion":"10","deviceScreenSize":"1080x2310","deviceScreenDensity":48...
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session �[39m�[32m200�[39m �[90m20060 ms - 1238�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/timeouts�[39m
�[35m[HTTP]�[39m �[90m{"implicit":20000}�[39m
[debug] �[35m[W3C (8bd0f92e)]�[39m Calling AppiumDriver.timeouts() with args: [null,null,null,null,20000,"8bd0f92e-2a52-47f7-a7a7-a4634d0ea652"]
[debug] �[35m[BaseDriver]�[39m W3C timeout argument: {"implicit":20000}}
[debug] �[35m[BaseDriver]�[39m Set implicit wait to 20000ms
[debug] �[35m[W3C (8bd0f92e)]�[39m Responding to client with driver.timeouts() result: null
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/timeouts �[39m�[32m200�[39m �[90m9 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"xpath","value":"//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]"}�[39m
[debug] �[35m[W3C (8bd0f92e)]�[39m Calling AppiumDriver.findElement() with args: ["xpath","//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]","8bd0f92e-2a52-47f7-a7a7-a4634d0ea652"]
[debug] �[35m[BaseDriver]�[39m Valid locator strategies for this request: xpath, id, class name, accessibility id, css selector, -android uiautomator
[debug] �[35m[BaseDriver]�[39m Waiting up to 20000 ms for condition
[debug] �[35m[WD Proxy]�[39m Matched '/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hub/session/f450ed95-7fa7-43ed-8edd-78203bb78429/element] with body: {"strategy":"xpath","selector":"//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]","context":"","multiple":false}
�[35m[WD Proxy]�[39m Got response with status 404: {"sessionId":"f450ed95-7fa7-43ed-8edd-78203bb78429","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:90)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:67)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:59)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:264)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:258)\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...
[debug] �[35m[W3C]�[39m Matched W3C error code 'no such element' to NoSuchElementError
[debug] �[35m[BaseDriver]�[39m Waited for 443 ms so far
[debug] �[35m[WD Proxy]�[39m Matched '/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hub/session/f450ed95-7fa7-43ed-8edd-78203bb78429/element] with body: {"strategy":"xpath","selector":"//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]","context":"","multiple":false}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"f450ed95-7fa7-43ed-8edd-78203bb78429","value":{"ELEMENT":"00000000-0000-0197-0000-002500000012","element-6066-11e4-a52e-4f735466cecf":"00000000-0000-0197-0000-002500000012"}}
[debug] �[35m[W3C (8bd0f92e)]�[39m Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"00000000-0000-0197-0000-002500000012","ELEMENT":"00000000-0000-0197-0000-002500000012"}
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element �[39m�[32m200�[39m �[90m1509 ms - 137�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/00000000-0000-0197-0000-002500000012/click�[39m
�[35m[HTTP]�[39m �[90m{"id":"00000000-0000-0197-0000-002500000012"}�[39m
[debug] �[35m[W3C (8bd0f92e)]�[39m Calling AppiumDriver.click() with args: ["00000000-0000-0197-0000-002500000012","8bd0f92e-2a52-47f7-a7a7-a4634d0ea652"]
[debug] �[35m[WD Proxy]�[39m Matched '/element/00000000-0000-0197-0000-002500000012/click' to command name 'click'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /element/00000000-0000-0197-0000-002500000012/click] to [POST http://127.0.0.1:8200/wd/hub/session/f450ed95-7fa7-43ed-8edd-78203bb78429/element/00000000-0000-0197-0000-002500000012/click] with body: {"element":"00000000-0000-0197-0000-002500000012"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"f450ed95-7fa7-43ed-8edd-78203bb78429","value":null}
[debug] �[35m[W3C (8bd0f92e)]�[39m Responding to client with driver.click() result: null
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/00000000-0000-0197-0000-002500000012/click �[39m�[32m200�[39m �[90m537 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/context�[39m
�[35m[HTTP]�[39m �[90m{"name":"WEBVIEW_com.picc.mcp"}�[39m
[debug] �[35m[W3C (8bd0f92e)]�[39m Calling AppiumDriver.setContext() with args: ["WEBVIEW_com.picc.mcp","8bd0f92e-2a52-47f7-a7a7-a4634d0ea652"]
[debug] �[35m[AndroidDriver]�[39m Getting a list of available webviews
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell cat /proc/net/unix'
[debug] �[35m[AndroidDriver]�[39m Parsed 1 active devtools socket: ["@webview_devtools_remote_15186"]
[debug] �[35m[AndroidDriver]�[39m Collecting CDP data of 1 webview
[debug] �[35m[AndroidDriver]�[39m Forwarding remote port webview_devtools_remote_15186 to a local port in range 10900..11000
[debug] �[35m[AndroidDriver]�[39m You could use the 'webviewDevtoolsPort' capability to customize the starting port number
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward tcp:10900 localabstract:webview_devtools_remote_15186'
[debug] �[35m[ADB]�[39m Removing forwarded port socket connection: 10900 
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward --remove tcp:10900'
[debug] �[35m[AndroidDriver]�[39m CDP data collection completed
[debug] �[35m[AndroidDriver]�[39m WEBVIEW_15186 mapped to pid 15186
[debug] �[35m[AndroidDriver]�[39m Getting process name for webview 'WEBVIEW_15186'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell ps --help'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell ps -A'
[debug] �[35m[AndroidDriver]�[39m Got process name: 'com.picc.mcp'
[debug] �[35m[AndroidDriver]�[39m Found 1 webview: ["WEBVIEW_com.picc.mcp"]
[debug] �[35m[AndroidDriver]�[39m Available contexts: ["NATIVE_APP","WEBVIEW_com.picc.mcp"]
[debug] �[35m[AndroidDriver]�[39m Connecting to chrome-backed webview context 'WEBVIEW_com.picc.mcp'
[debug] �[35m[AndroidDriver]�[39m A port was not given, using random free port: 8000
[debug] �[35m[AndroidDriver]�[39m Passing web view details to the Chromedriver constructor: {
[debug] �[35m[AndroidDriver]�[39m   "info": {
[debug] �[35m[AndroidDriver]�[39m     "Android-Package": "com.picc.mcp",
[debug] �[35m[AndroidDriver]�[39m     "Browser": "Chrome/81.0.4044.138",
[debug] �[35m[AndroidDriver]�[39m     "Protocol-Version": "1.3",
[debug] �[35m[AndroidDriver]�[39m     "User-Agent": "Mozilla/5.0 (Linux; Android 10; VCE-AL00 Build/HUAWEIVCE-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36",
[debug] �[35m[AndroidDriver]�[39m     "V8-Version": "8.1.307.32",
[debug] �[35m[AndroidDriver]�[39m     "WebKit-Version": "537.36 (@8c6c7ba89cc9453625af54f11fd83179e23450fa)",
[debug] �[35m[AndroidDriver]�[39m     "webSocketDebuggerUrl": "ws://127.0.0.1:10900/devtools/browser"
[debug] �[35m[AndroidDriver]�[39m   },
[debug] �[35m[AndroidDriver]�[39m   "process": {
[debug] �[35m[AndroidDriver]�[39m     "name": "com.picc.mcp",
[debug] �[35m[AndroidDriver]�[39m     "id": "15186"
[debug] �[35m[AndroidDriver]�[39m   }
[debug] �[35m[AndroidDriver]�[39m }
[debug] �[35m[AndroidDriver]�[39m Precalculated Chromedriver capabilities: {
[debug] �[35m[AndroidDriver]�[39m   "androidPackage": "com.picc.mcp",
[debug] �[35m[AndroidDriver]�[39m   "androidUseRunningApp": true,
[debug] �[35m[AndroidDriver]�[39m   "androidProcess": "com.picc.mcp",
[debug] �[35m[AndroidDriver]�[39m   "androidDeviceSerial": "GPG4C19619002744"
[debug] �[35m[AndroidDriver]�[39m }
[debug] �[35m[AndroidDriver]�[39m Before starting chromedriver, androidPackage is 'com.picc.mcp'
[debug] �[35m[Chromedriver]�[39m Changed state to 'starting'
�[35m[Chromedriver]�[39m Set chromedriver binary as: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
[debug] �[35m[Chromedriver]�[39m Killing any old chromedrivers, running: wmic process where "commandline like '%chromedriver.exe%--port=8000%'" delete
[debug] �[35m[Chromedriver]�[39m Successfully cleaned up old chromedrivers
[debug] �[35m[Chromedriver]�[39m Cleaning this device's adb forwarded port socket connections: GPG4C19619002744
[debug] �[35m[ADB]�[39m List forwarding ports
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward --list'
[debug] �[35m[ADB]�[39m Removing forwarded port socket connection: 50782 
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward --remove tcp:50782'
�[35m[Chromedriver]�[39m Spawning chromedriver with: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
[debug] �[35m[Chromedriver]�[39m Chromedriver version: '81.0.4044.138'
�[35m[Chromedriver]�[39m Chromedriver v. 81.0.4044.138 supports W3C protocol, but MJSONWP one has been explicitly requested
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
�[35m[WD Proxy]�[39m connect ECONNREFUSED 127.0.0.1:8000
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"value":{"build":{"version":"81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999})"},"message":"ChromeDriver ready for new sessions.","os":{"arch":"x86_64","name":"Windows NT","version":"10.0.19045"},"ready":true}}
�[35m[Chromedriver]�[39m Starting MJSONWP Chromedriver session with capabilities: {
�[35m[Chromedriver]�[39m   "desiredCapabilities": {
�[35m[Chromedriver]�[39m     "chromeOptions": {
�[35m[Chromedriver]�[39m       "androidPackage": "com.picc.mcp",
�[35m[Chromedriver]�[39m       "androidUseRunningApp": true,
�[35m[Chromedriver]�[39m       "androidProcess": "com.picc.mcp",
�[35m[Chromedriver]�[39m       "androidDeviceSerial": "GPG4C19619002744",
�[35m[Chromedriver]�[39m       "w3c": false
�[35m[Chromedriver]�[39m     },
�[35m[Chromedriver]�[39m     "loggingPrefs": {
�[35m[Chromedriver]�[39m       "browser": "ALL"
�[35m[Chromedriver]�[39m     }
�[35m[Chromedriver]�[39m   }
�[35m[Chromedriver]�[39m }
[debug] �[35m[WD Proxy]�[39m Matched '/session' to command name 'createSession'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.picc.mcp","androidUseRunningApp":true,"androidProcess":"com.picc.mcp","androidDeviceSerial":"GPG4C19619002744","w3c":false},"loggingPrefs":{"browser":"ALL"}}}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999})"},"cssSelectorsEnabled":true,"databaseEnabled":false,"goog:chromeOptions":{"debuggerAddress":"localhost:50994"},"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":"81.0.4044.138","webStorageEnabled":true,"webauthn:virtualAuthenticators":false}}
�[35m[WD Proxy]�[39m Determined the downstream protocol as 'MJSONWP'
[debug] �[35m[Chromedriver]�[39m Changed state to 'online'
[debug] �[35m[W3C (8bd0f92e)]�[39m Responding to client with driver.setContext() result: null
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/context �[39m�[32m200�[39m �[90m6229 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/timeouts�[39m
�[35m[HTTP]�[39m �[90m{"implicit":20000}�[39m
�[35m[W3C (8bd0f92e)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/timeouts' to command name 'timeouts'
[debug] �[35m[Protocol Converter]�[39m Will send the following request bodies to /timeouts: [{"type":"implicit","ms":20000}]
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/timeouts] to [POST http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/timeouts] with body: {"type":"implicit","ms":20000}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":null}
�[35m[WD Proxy]�[39m Replacing sessionId fb6630a8fe8378e023b6bfebb6cbaf59 with 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/timeouts �[39m�[32m200�[39m �[90m7 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"id","value":"masterServer1"}�[39m
�[35m[W3C (8bd0f92e)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element] to [POST http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/element] with body: {"using":"id","value":"masterServer1"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":{"ELEMENT":"0.8821732653336454-1"}}
�[35m[WD Proxy]�[39m Replacing sessionId fb6630a8fe8378e023b6bfebb6cbaf59 with 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element �[39m�[32m200�[39m �[90m135 ms - 156�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mGET�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/attribute/value�[39m
�[35m[HTTP]�[39m �[90m{}�[39m
�[35m[W3C (8bd0f92e)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/attribute/value' to command name 'getAttribute'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/attribute/value] to [GET http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/element/0.8821732653336454-1/attribute/value] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":"10.22.64.173"}
�[35m[WD Proxy]�[39m Replacing sessionId fb6630a8fe8378e023b6bfebb6cbaf59 with 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[HTTP]�[39m �[37m<-- GET /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/attribute/value �[39m�[32m200�[39m �[90m111 ms - 75�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"a","value":["","a"],"id":"0.8821732653336454-1"}�[39m
�[35m[W3C (8bd0f92e)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value' to command name 'setValue'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value] to [POST http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/element/0.8821732653336454-1/value] with body: {"text":"a","value":["","a"],"id":"0.8821732653336454-1"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":null}
�[35m[WD Proxy]�[39m Replacing sessionId fb6630a8fe8378e023b6bfebb6cbaf59 with 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value �[39m�[32m200�[39m �[90m518 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"x","value":["","x"],"id":"0.8821732653336454-1"}�[39m
�[35m[W3C (8bd0f92e)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value' to command name 'setValue'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value] to [POST http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/element/0.8821732653336454-1/value] with body: {"text":"x","value":["","x"],"id":"0.8821732653336454-1"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":null}
�[35m[WD Proxy]�[39m Replacing sessionId fb6630a8fe8378e023b6bfebb6cbaf59 with 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value �[39m�[32m200�[39m �[90m615 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"10.22.64.243","value":["1","0",".","2","2",".","6","4",".","2","4","3"],"id":"0.8821732653336454-1"}�[39m
�[35m[W3C (8bd0f92e)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value' to command name 'setValue'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value] to [POST http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/element/0.8821732653336454-1/value] with body: {"text":"10.22.64.243","value":["1","0",".","2","2",".","6","4",".","2","4","3"],"id":"0.8821732653336454-1"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":null}
�[35m[WD Proxy]�[39m Replacing sessionId fb6630a8fe8378e023b6bfebb6cbaf59 with 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-1/value �[39m�[32m200�[39m �[90m1707 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"id","value":"port"}�[39m
�[35m[W3C (8bd0f92e)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element] to [POST http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/element] with body: {"using":"id","value":"port"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":{"ELEMENT":"0.8821732653336454-3"}}
�[35m[WD Proxy]�[39m Replacing sessionId fb6630a8fe8378e023b6bfebb6cbaf59 with 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element �[39m�[32m200�[39m �[90m90 ms - 156�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mGET�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-3/attribute/value�[39m
�[35m[HTTP]�[39m �[90m{}�[39m
�[35m[W3C (8bd0f92e)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-3/attribute/value' to command name 'getAttribute'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-3/attribute/value] to [GET http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/element/0.8821732653336454-3/attribute/value] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":"8005"}
�[35m[WD Proxy]�[39m Replacing sessionId fb6630a8fe8378e023b6bfebb6cbaf59 with 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[HTTP]�[39m �[37m<-- GET /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element/0.8821732653336454-3/attribute/value �[39m�[32m200�[39m �[90m41 ms - 67�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"xpath","value":"//a[contains(@href,\"com.picc.mcp/files/mcph5/login.html\")]"}�[39m
�[35m[W3C (8bd0f92e)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element] to [POST http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/element] with body: {"using":"xpath","value":"//a[contains(@href,\"com.picc.mcp/files/mcph5/login.html\")]"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":0,"value":{"ELEMENT":"0.8821732653336454-4"}}
�[35m[WD Proxy]�[39m Replacing sessionId fb6630a8fe8378e023b6bfebb6cbaf59 with 8bd0f92e-2a52-47f7-a7a7-a4634d0ea652
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/element �[39m�[32m200�[39m �[90m62 ms - 156�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.8821732653336454-4"}]}�[39m
[debug] �[35m[W3C (8bd0f92e)]�[39m Calling AppiumDriver.execute() with args: ["return arguments[0].scrollIntoView(true);",[{"element-6066-11e4-a52e-4f735466cecf":"0.8821732653336454-4"}],"8bd0f92e-2a52-47f7-a7a7-a4634d0ea652"]
[debug] �[35m[WD Proxy]�[39m Matched '/execute' to command name 'execute'
[debug] �[35m[Protocol Converter]�[39m Did not know how to rewrite the original URL '/execute' for MJSONWP protocol
[debug] �[35m[WD Proxy]�[39m Proxying [POST /execute] to [POST http://127.0.0.1:8000/wd/hub/session/fb6630a8fe8378e023b6bfebb6cbaf59/execute] with body: {"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.8821732653336454-4"}]}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"fb6630a8fe8378e023b6bfebb6cbaf59","status":17,"value":{"message":"javascript error: arguments[0].scrollIntoView is not a function\n  (Session info: chrome=81.0.4044.138)\n  (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)"}}
[debug] �[35m[MJSONWP]�[39m Matched JSONWP error code 17 to JavaScriptError
[debug] �[35m[W3C (8bd0f92e)]�[39m Encountered internal error running command: JavaScriptError: javascript error: arguments[0].scrollIntoView is not a function
[debug] �[35m[W3C (8bd0f92e)]�[39m   (Session info: chrome=81.0.4044.138)
[debug] �[35m[W3C (8bd0f92e)]�[39m   (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)
[debug] �[35m[W3C (8bd0f92e)]�[39m     at errorFromMJSONWPStatusCode (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:764:12)
[debug] �[35m[W3C (8bd0f92e)]�[39m     at ProxyRequestError.getActualError (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:661:14)
[debug] �[35m[W3C (8bd0f92e)]�[39m     at JWProxy.command (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
[debug] �[35m[W3C (8bd0f92e)]�[39m     at runMicrotasks (<anonymous>)
[debug] �[35m[W3C (8bd0f92e)]�[39m     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[debug] �[35m[W3C (8bd0f92e)]�[39m     at AndroidUiautomator2Driver.execute (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:19:10)
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/8bd0f92e-2a52-47f7-a7a7-a4634d0ea652/execute/sync �[39m�[31m500�[39m �[90m96 ms - 1383�[39m
�[35m[HTTP]�[39m �[90m�[39m


@KazuCocoa
Copy link
Member

Please add appium:showChromedriverLog to print chromedriver logs

@tianyao1111
Copy link
Author

Please add appium:showChromedriverLog to print chromedriver logs

This is the log after opening appium: showChromedriverLog

�[35m[Appium]�[39m Welcome to Appium v1.22.0
�[35m[Appium]�[39m Non-default server args:
�[35m[Appium]�[39m   sessionOverride: true
�[35m[Appium]�[39m   chromedriverExecutable: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
�[35m[Appium]�[39m   defaultCapabilities: {
�[35m[Appium]�[39m     chromeOptions: {
�[35m[Appium]�[39m       args: {
�[35m[Appium]�[39m         0: --log-level=DEBUG
�[35m[Appium]�[39m         1: --enable-logging
�[35m[Appium]�[39m       }
�[35m[Appium]�[39m       perfLoggingPrefs: {
�[35m[Appium]�[39m         enableNetwork: true
�[35m[Appium]�[39m         enablePage: true
�[35m[Appium]�[39m       }
�[35m[Appium]�[39m     }
�[35m[Appium]�[39m   }
�[35m[Appium]�[39m   relaxedSecurityEnabled: true
�[35m[Appium]�[39m Default capabilities, which will be added to each request unless overridden by desired capabilities:
�[35m[Appium]�[39m   chromeOptions: {
�[35m[Appium]�[39m     args: {
�[35m[Appium]�[39m       0: --log-level=DEBUG
�[35m[Appium]�[39m       1: --enable-logging
�[35m[Appium]�[39m     }
�[35m[Appium]�[39m     perfLoggingPrefs: {
�[35m[Appium]�[39m       enableNetwork: true
�[35m[Appium]�[39m       enablePage: true
�[35m[Appium]�[39m     }
�[35m[Appium]�[39m   }
�[35m[Appium]�[39m Appium REST http interface listener started on 0.0.0.0:4723
[debug] �[35m[HTTP]�[39m Request idempotency key: be468656-b9cd-42f8-89a6-1d60efc662ef
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session�[39m
�[35m[HTTP]�[39m �[90m{"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:appPackage":"com.picc.mcp","appium:appActivity":"com.picc.mcp.IndexVideoActivity","appium:noReset":true,"appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:newCommandTimeout":180,"appium:adbExecTimeout":180000,"appium:logcatFormat":"time","appium:logcatFilterSpecs":["*:E"],"appium:clearDeviceLogsOnStart":true,"appium:showChromedriverLog":true,"appium:chromeOptions":{"w3c":false}}}}�[39m
[debug] �[35m[W3C]�[39m Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:appPackage":"com.picc.mcp","appium:appActivity":"com.picc.mcp.IndexVideoActivity","appium:noReset":true,"appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:newCommandTimeout":180,"appium:adbExecTimeout":180000,"appium:logcatFormat":"time","appium:logcatFilterSpecs":["*:E"],"appium:clearDeviceLogsOnStart":true,"appium:showChromedriverLog":true,"appium:chromeOptions":{"w3c":false}}}]
[debug] �[35m[BaseDriver]�[39m Event 'newSessionRequested' logged at 1698371962840 (09:59:22 GMT+0800 (中国标准时间))
�[35m[Appium]�[39m 

�[35m[Appium]�[39m ======================================================================

�[35m[Appium]�[39m   DEPRECATION WARNING:

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   The 'automationName' capability was not provided in the desired 
�[35m[Appium]�[39m   capabilities for this Android session

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   Setting 'automationName=UiAutomator2' by default and using the 
�[35m[Appium]�[39m   UiAutomator2 Driver

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   The next major version of Appium (2.x) will **require** the 
�[35m[Appium]�[39m   'automationName' capability to be set for all sessions on all 
�[35m[Appium]�[39m   platforms

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   In previous versions (Appium <= 1.13.x), the default was 
�[35m[Appium]�[39m   'automationName=UiAutomator1'

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   If you wish to use that automation instead of UiAutomator2, please 
�[35m[Appium]�[39m   add 'automationName=UiAutomator1' to your desired capabilities

�[35m[Appium]�[39m 

�[35m[Appium]�[39m   For more information about drivers, please visit 
�[35m[Appium]�[39m   http://appium.io/docs/en/about-appium/intro/ and explore the 
�[35m[Appium]�[39m   'Drivers' menu

�[35m[Appium]�[39m 

�[35m[Appium]�[39m ======================================================================

�[35m[Appium]�[39m 
�[35m[Appium]�[39m Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session
[debug] �[35m[Appium]�[39m There are no active sessions for cleanup
�[35m[Appium]�[39m Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] �[35m[BaseDriver]�[39m Creating session with W3C capabilities: {
[debug] �[35m[BaseDriver]�[39m   "alwaysMatch": {
[debug] �[35m[BaseDriver]�[39m     "platformName": "Android",
[debug] �[35m[BaseDriver]�[39m     "appium:appPackage": "com.picc.mcp",
[debug] �[35m[BaseDriver]�[39m     "appium:appActivity": "com.picc.mcp.IndexVideoActivity",
[debug] �[35m[BaseDriver]�[39m     "appium:noReset": true,
[debug] �[35m[BaseDriver]�[39m     "appium:unicodeKeyboard": true,
[debug] �[35m[BaseDriver]�[39m     "appium:resetKeyboard": true,
[debug] �[35m[BaseDriver]�[39m     "appium:newCommandTimeout": 180,
[debug] �[35m[BaseDriver]�[39m     "appium:adbExecTimeout": 180000,
[debug] �[35m[BaseDriver]�[39m     "appium:logcatFormat": "time",
[debug] �[35m[BaseDriver]�[39m     "appium:logcatFilterSpecs": [
[debug] �[35m[BaseDriver]�[39m       "*:E"
[debug] �[35m[BaseDriver]�[39m     ],
[debug] �[35m[BaseDriver]�[39m     "appium:clearDeviceLogsOnStart": true,
[debug] �[35m[BaseDriver]�[39m     "appium:showChromedriverLog": true,
[debug] �[35m[BaseDriver]�[39m     "appium:chromeOptions": {
[debug] �[35m[BaseDriver]�[39m       "w3c": false
[debug] �[35m[BaseDriver]�[39m     }
[debug] �[35m[BaseDriver]�[39m   },
[debug] �[35m[BaseDriver]�[39m   "firstMatch": [
[debug] �[35m[BaseDriver]�[39m     {}
[debug] �[35m[BaseDriver]�[39m   ]
[debug] �[35m[BaseDriver]�[39m }
�[35m[BaseDriver]�[39m Session created with session id: 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[UiAutomator2]�[39m Starting 'com.picc.mcp' directly on the device
�[35m[ADB]�[39m Found 1 'build-tools' folders under 'D:\aa\SDK' (newest first):
�[35m[ADB]�[39m     D:/aa/SDK/build-tools/30.0.3
�[35m[ADB]�[39m Using 'adb.exe' from 'D:\aa\SDK\platform-tools\adb.exe'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 start-server'
�[35m[AndroidDriver]�[39m Retrieving device list
[debug] �[35m[ADB]�[39m Trying to find a connected android device
[debug] �[35m[ADB]�[39m Getting connected devices
[debug] �[35m[ADB]�[39m Connected devices: [{"udid":"GPG4C19619002744","state":"device"}]
�[35m[AndroidDriver]�[39m Using device: GPG4C19619002744
�[35m[ADB]�[39m Using 'adb.exe' from 'D:\aa\SDK\platform-tools\adb.exe'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 start-server'
[debug] �[35m[ADB]�[39m Setting device id to GPG4C19619002744
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell getprop ro.build.version.sdk'
[debug] �[35m[ADB]�[39m Current device property 'ro.build.version.sdk': 29
�[35m[ADB]�[39m Getting device platform version
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell getprop ro.build.version.release'
[debug] �[35m[ADB]�[39m Current device property 'ro.build.version.release': 10
[debug] �[35m[ADB]�[39m Device API level: 29
�[35m[UiAutomator2]�[39m Relaxing hidden api policy
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
�[35m[AndroidDriver]�[39m No app sent in, not parsing package/activity
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 wait-for-device'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell echo ping'
[debug] �[35m[AndroidDriver]�[39m Pushing settings apk to device...
[debug] �[35m[ADB]�[39m Getting install status for io.appium.settings
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.settings'
[debug] �[35m[ADB]�[39m 'io.appium.settings' is installed
[debug] �[35m[ADB]�[39m Getting package info for 'io.appium.settings'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.settings'
[debug] �[35m[ADB]�[39m The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0')
[debug] �[35m[ADB]�[39m There is no need to install/upgrade 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
[debug] �[35m[ADB]�[39m Getting IDs of all 'io.appium.settings' processes
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell 'pgrep --help; echo $?''
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] �[35m[AndroidDriver]�[39m io.appium.settings is already running. There is no need to reset its permissions.
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell appops set io.appium.settings android:mock_location allow'
[debug] �[35m[Logcat]�[39m Clearing logcat logs from device
[debug] �[35m[Logcat]�[39m Starting logs capture with command: D:\\aa\\SDK\\platform-tools\\adb.exe -P 5037 -s GPG4C19619002744 logcat -v time \*\:E
[debug] �[35m[AndroidDriver]�[39m Enabling Unicode keyboard support
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell settings get secure default_input_method'
[debug] �[35m[AndroidDriver]�[39m Unsetting previous IME io.appium.settings/.UnicodeIME
[debug] �[35m[AndroidDriver]�[39m Setting IME to 'io.appium.settings/.UnicodeIME'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell ime enable io.appium.settings/.UnicodeIME'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell ime set io.appium.settings/.UnicodeIME'
[debug] �[35m[UiAutomator2]�[39m Forwarding UiAutomator2 Server port 6790 to local port 8200
[debug] �[35m[ADB]�[39m Forwarding system: 8200 to device: 6790
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward tcp:8200 tcp:6790'
[debug] �[35m[ADB]�[39m Getting install status for io.appium.uiautomator2.server
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.uiautomator2.server'
[debug] �[35m[ADB]�[39m 'io.appium.uiautomator2.server' is installed
[debug] �[35m[ADB]�[39m Getting package info for 'io.appium.uiautomator2.server'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.uiautomator2.server'
[debug] �[35m[ADB]�[39m The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.24.0' >= '4.24.0')
[debug] �[35m[UiAutomator2]�[39m io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] �[35m[ADB]�[39m Checking app cert for C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk
�[35m[ADB]�[39m Using 'apksigner.jar' from 'D:\aa\SDK\build-tools\30.0.3\lib\apksigner.jar'
[debug] �[35m[ADB]�[39m Starting apksigner: 'C:\\Program Files\\Java\\jdk1.8.0_201\\bin\\java.exe' -Xmx1024M -Xss1m -jar D:\\aa\\SDK\\build-tools\\30.0.3\\lib\\apksigner.jar verify --print-certs C:\\Users\\admin\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v4.24.0.apk
[debug] �[35m[ADB]�[39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US

[debug] �[35m[ADB]�[39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc

[debug] �[35m[ADB]�[39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81

[debug] �[35m[ADB]�[39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87

[debug] �[35m[ADB]�[39m 
[debug] �[35m[ADB]�[39m sha256 hash did match for 'appium-uiautomator2-server-v4.24.0.apk'
�[35m[ADB]�[39m 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk' is signed with the default certificate
[debug] �[35m[ADB]�[39m Getting install status for io.appium.uiautomator2.server.test
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys package io.appium.uiautomator2.server.test'
[debug] �[35m[ADB]�[39m 'io.appium.uiautomator2.server.test' is installed
[debug] �[35m[ADB]�[39m Checking app cert for C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[debug] �[35m[ADB]�[39m Starting apksigner: 'C:\\Program Files\\Java\\jdk1.8.0_201\\bin\\java.exe' -Xmx1024M -Xss1m -jar D:\\aa\\SDK\\build-tools\\30.0.3\\lib\\apksigner.jar verify --print-certs C:\\Users\\admin\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk
[debug] �[35m[ADB]�[39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US

[debug] �[35m[ADB]�[39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc

[debug] �[35m[ADB]�[39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81

[debug] �[35m[ADB]�[39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87

[debug] �[35m[ADB]�[39m 
[debug] �[35m[ADB]�[39m sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk'
�[35m[ADB]�[39m 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
�[35m[UiAutomator2]�[39m Server packages are not going to be (re)installed
[debug] �[35m[UiAutomator2]�[39m Waiting up to 30000ms for services to be available
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell pm list instrumentation'
[debug] �[35m[UiAutomator2]�[39m Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
�[35m[ADB]�[39m Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[debug] �[35m[ADB]�[39m Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[debug] �[35m[UiAutomator2]�[39m No app capability. Assuming it is already on the device
[debug] �[35m[UiAutomator2]�[39m Performing shallow cleanup of automation leftovers
[debug] �[35m[UiAutomator2]�[39m No obsolete sessions have been detected (socket hang up)
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell am force-stop io.appium.uiautomator2.server.test'
�[35m[UiAutomator2]�[39m Starting UIAutomator2 server 4.24.0
�[35m[UiAutomator2]�[39m Using UIAutomator2 server from 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.24.0.apk' and test from 'C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
�[35m[UiAutomator2]�[39m Waiting up to 30000ms for UiAutomator2 to be online...
[debug] �[35m[ADB]�[39m Creating ADB subprocess with args: ["-P",5037,"-s","GPG4C19619002744","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
�[35m[WD Proxy]�[39m socket hang up
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
�[35m[WD Proxy]�[39m socket hang up
[debug] �[35m[Instrumentation]�[39m io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
�[35m[WD Proxy]�[39m socket hang up
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[debug] �[35m[UiAutomator2]�[39m The initialization of the instrumentation process took 3298ms
[debug] �[35m[WD Proxy]�[39m Matched '/session' to command name 'createSession'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /session] to [POST http://127.0.0.1:8200/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"showChromedriverLog":true,"chromeOptions":{"w3c":false}},"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"showChromedriverLog":true,"chromeOptions":{"w3c":false},"deviceName":"GPG4C19619002744","deviceUDID":"GPG4C19619002744"}],"alwaysMatch":{}}}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"1b78bcae-293e-44c8-a79f-84a2318220c3","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"showChromedriverLog":true,"chromeOptions":{"w3c":false}},"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"showChromedriverLog":true,"chromeOptions":{"w3c":false},"deviceName":"GPG4C19619002744","...
�[35m[WD Proxy]�[39m Determined the downstream protocol as 'W3C'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/1b78bcae-293e-44c8-a79f-84a2318220c3/appium/device/info] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"1b78bcae-293e-44c8-a79f-84a2318220c3","value":{"androidId":"6e49637b773bd7af","apiVersion":"29","bluetooth":{"state":"OFF"},"brand":"HUAWEI","carrierName":"中国电信","displayDensity":480,"locale":"zh_CN_#Hans","manufacturer":"HUAWEI","model":"VCE-AL00","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":1048576,"linkUpstreamBandwidthKbps":1048576,"networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-48,"transportTypes":"TRANSPORT_WIFI"},"detailedState":"CONNECTED","extraInfo":null,"isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":0,"subtypeName":"","type":1,"typeName":"WIFI"}],"platformVersion":"10","realDisplaySize":"1080x2310","timeZone":"Asia/Shanghai"}}
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell dumpsys window'
�[35m[AndroidDriver]�[39m Screen already unlocked, doing nothing
�[35m[UiAutomator2]�[39m Starting 'com.picc.mcp/com.picc.mcp.IndexVideoActivity and waiting for 'com.picc.mcp/com.picc.mcp.IndexVideoActivity'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell am start -W -n com.picc.mcp/com.picc.mcp.IndexVideoActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8200/wd/hub/session/1b78bcae-293e-44c8-a79f-84a2318220c3/appium/device/pixel_ratio] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"1b78bcae-293e-44c8-a79f-84a2318220c3","value":3}
[debug] �[35m[WD Proxy]�[39m Matched '/appium/device/system_bars' to command name 'getSystemBars'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8200/wd/hub/session/1b78bcae-293e-44c8-a79f-84a2318220c3/appium/device/system_bars] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"1b78bcae-293e-44c8-a79f-84a2318220c3","value":{"statusBar":102}}
[debug] �[35m[WD Proxy]�[39m Matched '/window/current/size' to command name 'getWindowSize'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /window/current/size] to [GET http://127.0.0.1:8200/wd/hub/session/1b78bcae-293e-44c8-a79f-84a2318220c3/window/current/size] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"1b78bcae-293e-44c8-a79f-84a2318220c3","value":{"height":2090,"width":1080}}
�[35m[Appium]�[39m New AndroidUiautomator2Driver session created successfully, session 5e0d7962-7781-4d80-aed0-78fd1beb4e1a added to master session list
[debug] �[35m[BaseDriver]�[39m Event 'newSessionStarted' logged at 1698371978726 (09:59:38 GMT+0800 (中国标准时间))
[debug] �[35m[W3C (5e0d7962)]�[39m Cached the protocol value 'W3C' for the new session 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
[debug] �[35m[W3C (5e0d7962)]�[39m 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","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"showChromedriverLog":true,"chromeOptions":{"w3c":false}},"platformName":"Android","appPackage":"com.picc.mcp","appActivity":"com.picc.mcp.IndexVideoActivity","noReset":true,"unicodeKeyboard":true,"resetKeyboard":true,"newCommandTimeout":180,"adbExecTimeout":180000,"logcatFormat":"time","logcatFilterSpecs":["*:E"],"clearDeviceLogsOnStart":true,"showChromedriverLog":true,"chromeOptions":{"w3c":false},"deviceName":"GPG4C19619002744","deviceUDID":"GPG4C19619002744","deviceApiLevel":29,"platformVersion":"10","...
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session �[39m�[32m200�[39m �[90m15910 ms - 1292�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/timeouts�[39m
�[35m[HTTP]�[39m �[90m{"implicit":20000}�[39m
[debug] �[35m[W3C (5e0d7962)]�[39m Calling AppiumDriver.timeouts() with args: [null,null,null,null,20000,"5e0d7962-7781-4d80-aed0-78fd1beb4e1a"]
[debug] �[35m[BaseDriver]�[39m W3C timeout argument: {"implicit":20000}}
[debug] �[35m[BaseDriver]�[39m Set implicit wait to 20000ms
[debug] �[35m[W3C (5e0d7962)]�[39m Responding to client with driver.timeouts() result: null
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/timeouts �[39m�[32m200�[39m �[90m7 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"xpath","value":"//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]"}�[39m
[debug] �[35m[W3C (5e0d7962)]�[39m Calling AppiumDriver.findElement() with args: ["xpath","//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]","5e0d7962-7781-4d80-aed0-78fd1beb4e1a"]
[debug] �[35m[BaseDriver]�[39m Valid locator strategies for this request: xpath, id, class name, accessibility id, css selector, -android uiautomator
[debug] �[35m[BaseDriver]�[39m Waiting up to 20000 ms for condition
[debug] �[35m[WD Proxy]�[39m Matched '/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hub/session/1b78bcae-293e-44c8-a79f-84a2318220c3/element] with body: {"strategy":"xpath","selector":"//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]","context":"","multiple":false}
�[35m[WD Proxy]�[39m Got response with status 404: {"sessionId":"1b78bcae-293e-44c8-a79f-84a2318220c3","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:90)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:67)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:59)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:264)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:258)\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...
[debug] �[35m[W3C]�[39m Matched W3C error code 'no such element' to NoSuchElementError
[debug] �[35m[BaseDriver]�[39m Waited for 516 ms so far
[debug] �[35m[WD Proxy]�[39m Matched '/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hub/session/1b78bcae-293e-44c8-a79f-84a2318220c3/element] with body: {"strategy":"xpath","selector":"//android.view.View[@text=\"parameterSettings.html?returnUrl=login\"]","context":"","multiple":false}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"1b78bcae-293e-44c8-a79f-84a2318220c3","value":{"ELEMENT":"00000000-0000-001b-0000-002500000012","element-6066-11e4-a52e-4f735466cecf":"00000000-0000-001b-0000-002500000012"}}
[debug] �[35m[W3C (5e0d7962)]�[39m Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"00000000-0000-001b-0000-002500000012","ELEMENT":"00000000-0000-001b-0000-002500000012"}
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element �[39m�[32m200�[39m �[90m1689 ms - 137�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/00000000-0000-001b-0000-002500000012/click�[39m
�[35m[HTTP]�[39m �[90m{"id":"00000000-0000-001b-0000-002500000012"}�[39m
[debug] �[35m[W3C (5e0d7962)]�[39m Calling AppiumDriver.click() with args: ["00000000-0000-001b-0000-002500000012","5e0d7962-7781-4d80-aed0-78fd1beb4e1a"]
[debug] �[35m[WD Proxy]�[39m Matched '/element/00000000-0000-001b-0000-002500000012/click' to command name 'click'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /element/00000000-0000-001b-0000-002500000012/click] to [POST http://127.0.0.1:8200/wd/hub/session/1b78bcae-293e-44c8-a79f-84a2318220c3/element/00000000-0000-001b-0000-002500000012/click] with body: {"element":"00000000-0000-001b-0000-002500000012"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"1b78bcae-293e-44c8-a79f-84a2318220c3","value":null}
[debug] �[35m[W3C (5e0d7962)]�[39m Responding to client with driver.click() result: null
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/00000000-0000-001b-0000-002500000012/click �[39m�[32m200�[39m �[90m467 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/context�[39m
�[35m[HTTP]�[39m �[90m{"name":"WEBVIEW_com.picc.mcp"}�[39m
[debug] �[35m[W3C (5e0d7962)]�[39m Calling AppiumDriver.setContext() with args: ["WEBVIEW_com.picc.mcp","5e0d7962-7781-4d80-aed0-78fd1beb4e1a"]
[debug] �[35m[AndroidDriver]�[39m Getting a list of available webviews
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell cat /proc/net/unix'
[debug] �[35m[AndroidDriver]�[39m Parsed 1 active devtools socket: ["@webview_devtools_remote_15874"]
[debug] �[35m[AndroidDriver]�[39m Collecting CDP data of 1 webview
[debug] �[35m[AndroidDriver]�[39m Forwarding remote port webview_devtools_remote_15874 to a local port in range 10900..11000
[debug] �[35m[AndroidDriver]�[39m You could use the 'webviewDevtoolsPort' capability to customize the starting port number
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward tcp:10900 localabstract:webview_devtools_remote_15874'
[debug] �[35m[ADB]�[39m Removing forwarded port socket connection: 10900 
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward --remove tcp:10900'
[debug] �[35m[AndroidDriver]�[39m CDP data collection completed
[debug] �[35m[AndroidDriver]�[39m WEBVIEW_15874 mapped to pid 15874
[debug] �[35m[AndroidDriver]�[39m Getting process name for webview 'WEBVIEW_15874'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell ps --help'
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 shell ps -A'
[debug] �[35m[AndroidDriver]�[39m Got process name: 'com.picc.mcp'
[debug] �[35m[AndroidDriver]�[39m Found 1 webview: ["WEBVIEW_com.picc.mcp"]
[debug] �[35m[AndroidDriver]�[39m Available contexts: ["NATIVE_APP","WEBVIEW_com.picc.mcp"]
[debug] �[35m[AndroidDriver]�[39m Connecting to chrome-backed webview context 'WEBVIEW_com.picc.mcp'
[debug] �[35m[AndroidDriver]�[39m A port was not given, using random free port: 8000
[debug] �[35m[AndroidDriver]�[39m Passing web view details to the Chromedriver constructor: {
[debug] �[35m[AndroidDriver]�[39m   "info": {
[debug] �[35m[AndroidDriver]�[39m     "Android-Package": "com.picc.mcp",
[debug] �[35m[AndroidDriver]�[39m     "Browser": "Chrome/81.0.4044.138",
[debug] �[35m[AndroidDriver]�[39m     "Protocol-Version": "1.3",
[debug] �[35m[AndroidDriver]�[39m     "User-Agent": "Mozilla/5.0 (Linux; Android 10; VCE-AL00 Build/HUAWEIVCE-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36",
[debug] �[35m[AndroidDriver]�[39m     "V8-Version": "8.1.307.32",
[debug] �[35m[AndroidDriver]�[39m     "WebKit-Version": "537.36 (@8c6c7ba89cc9453625af54f11fd83179e23450fa)",
[debug] �[35m[AndroidDriver]�[39m     "webSocketDebuggerUrl": "ws://127.0.0.1:10900/devtools/browser"
[debug] �[35m[AndroidDriver]�[39m   },
[debug] �[35m[AndroidDriver]�[39m   "process": {
[debug] �[35m[AndroidDriver]�[39m     "name": "com.picc.mcp",
[debug] �[35m[AndroidDriver]�[39m     "id": "15874"
[debug] �[35m[AndroidDriver]�[39m   }
[debug] �[35m[AndroidDriver]�[39m }
[debug] �[35m[AndroidDriver]�[39m Precalculated Chromedriver capabilities: {
[debug] �[35m[AndroidDriver]�[39m   "androidPackage": "com.picc.mcp",
[debug] �[35m[AndroidDriver]�[39m   "androidUseRunningApp": true,
[debug] �[35m[AndroidDriver]�[39m   "androidProcess": "com.picc.mcp",
[debug] �[35m[AndroidDriver]�[39m   "androidDeviceSerial": "GPG4C19619002744"
[debug] �[35m[AndroidDriver]�[39m }
[debug] �[35m[AndroidDriver]�[39m Before starting chromedriver, androidPackage is 'com.picc.mcp'
[debug] �[35m[Chromedriver]�[39m Changed state to 'starting'
�[35m[Chromedriver]�[39m Set chromedriver binary as: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe
[debug] �[35m[Chromedriver]�[39m Killing any old chromedrivers, running: wmic process where "commandline like '%chromedriver.exe%--port=8000%'" delete
[debug] �[35m[Chromedriver]�[39m Successfully cleaned up old chromedrivers
[debug] �[35m[Chromedriver]�[39m Cleaning this device's adb forwarded port socket connections: GPG4C19619002744
[debug] �[35m[ADB]�[39m List forwarding ports
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward --list'
[debug] �[35m[ADB]�[39m Removing forwarded port socket connection: 53189 
[debug] �[35m[ADB]�[39m Running 'D:\aa\SDK\platform-tools\adb.exe -P 5037 -s GPG4C19619002744 forward --remove tcp:53189'
�[35m[Chromedriver]�[39m Spawning chromedriver with: D:\aa\chromedriver_win3281.0.4044.138\chromedriver_win3281.0.4044.138.exe --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
[debug] �[35m[Chromedriver]�[39m Chromedriver version: '81.0.4044.138'
�[35m[Chromedriver]�[39m Chromedriver v. 81.0.4044.138 supports W3C protocol, but MJSONWP one has been explicitly requested
[debug] �[35m[Chromedriver]�[39m [STDOUT] Starting ChromeDriver 81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}) on port 8000

[debug] �[35m[Chromedriver]�[39m [STDOUT] Only local connections are allowed.

[debug] �[35m[Chromedriver]�[39m [STDOUT] Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
�[35m[WD Proxy]�[39m connect ECONNREFUSED 127.0.0.1:8000
[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"value":{"build":{"version":"81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999})"},"message":"ChromeDriver ready for new sessions.","os":{"arch":"x86_64","name":"Windows NT","version":"10.0.19045"},"ready":true}}
�[35m[Chromedriver]�[39m Starting MJSONWP Chromedriver session with capabilities: {
�[35m[Chromedriver]�[39m   "desiredCapabilities": {
�[35m[Chromedriver]�[39m     "chromeOptions": {
�[35m[Chromedriver]�[39m       "androidPackage": "com.picc.mcp",
�[35m[Chromedriver]�[39m       "androidUseRunningApp": true,
�[35m[Chromedriver]�[39m       "androidProcess": "com.picc.mcp",
�[35m[Chromedriver]�[39m       "androidDeviceSerial": "GPG4C19619002744",
�[35m[Chromedriver]�[39m       "w3c": false
�[35m[Chromedriver]�[39m     },
�[35m[Chromedriver]�[39m     "loggingPrefs": {
�[35m[Chromedriver]�[39m       "browser": "ALL"
�[35m[Chromedriver]�[39m     }
�[35m[Chromedriver]�[39m   }
�[35m[Chromedriver]�[39m }
[debug] �[35m[WD Proxy]�[39m Matched '/session' to command name 'createSession'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.picc.mcp","androidUseRunningApp":true,"androidProcess":"com.picc.mcp","androidDeviceSerial":"GPG4C19619002744","w3c":false},"loggingPrefs":{"browser":"ALL"}}}
[debug] �[35m[Chromedriver]�[39m Webview version: 'Chrome/81.0.4044.138'
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999})"},"cssSelectorsEnabled":true,"databaseEnabled":false,"goog:chromeOptions":{"debuggerAddress":"localhost:53622"},"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":"81.0.4044.138","webStorageEnabled":true,"webauthn:virtualAuthenticators":false}}
�[35m[WD Proxy]�[39m Determined the downstream protocol as 'MJSONWP'
[debug] �[35m[Chromedriver]�[39m Changed state to 'online'
[debug] �[35m[W3C (5e0d7962)]�[39m Responding to client with driver.setContext() result: null
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/context �[39m�[32m200�[39m �[90m6063 ms - 14�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/timeouts�[39m
�[35m[HTTP]�[39m �[90m{"implicit":20000}�[39m
�[35m[W3C (5e0d7962)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/timeouts' to command name 'timeouts'
[debug] �[35m[Protocol Converter]�[39m Will send the following request bodies to /timeouts: [{"type":"implicit","ms":20000}]
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/timeouts] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/timeouts] with body: {"type":"implicit","ms":20000}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":null}
�[35m[WD Proxy]�[39m Replacing sessionId 5d2f44f57c6a1df7d6ab498319eb9a46 with 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/timeouts �[39m�[32m200�[39m �[90m13 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"id","value":"masterServer1"}�[39m
�[35m[W3C (5e0d7962)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/element] with body: {"using":"id","value":"masterServer1"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":{"ELEMENT":"0.47396339724855663-1"}}
�[35m[WD Proxy]�[39m Replacing sessionId 5d2f44f57c6a1df7d6ab498319eb9a46 with 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element �[39m�[32m200�[39m �[90m282 ms - 158�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mGET�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/attribute/value�[39m
�[35m[HTTP]�[39m �[90m{}�[39m
�[35m[W3C (5e0d7962)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/attribute/value' to command name 'getAttribute'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/attribute/value] to [GET http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/element/0.47396339724855663-1/attribute/value] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":"10.22.64.173"}
�[35m[WD Proxy]�[39m Replacing sessionId 5d2f44f57c6a1df7d6ab498319eb9a46 with 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[HTTP]�[39m �[37m<-- GET /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/attribute/value �[39m�[32m200�[39m �[90m83 ms - 75�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"a","value":["","a"],"id":"0.47396339724855663-1"}�[39m
�[35m[W3C (5e0d7962)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value' to command name 'setValue'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/element/0.47396339724855663-1/value] with body: {"text":"a","value":["","a"],"id":"0.47396339724855663-1"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":null}
�[35m[WD Proxy]�[39m Replacing sessionId 5d2f44f57c6a1df7d6ab498319eb9a46 with 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value �[39m�[32m200�[39m �[90m529 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"x","value":["","x"],"id":"0.47396339724855663-1"}�[39m
�[35m[W3C (5e0d7962)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value' to command name 'setValue'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/element/0.47396339724855663-1/value] with body: {"text":"x","value":["","x"],"id":"0.47396339724855663-1"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":null}
�[35m[WD Proxy]�[39m Replacing sessionId 5d2f44f57c6a1df7d6ab498319eb9a46 with 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value �[39m�[32m200�[39m �[90m249 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value�[39m
�[35m[HTTP]�[39m �[90m{"text":"10.22.64.243","value":["1","0",".","2","2",".","6","4",".","2","4","3"],"id":"0.47396339724855663-1"}�[39m
�[35m[W3C (5e0d7962)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value' to command name 'setValue'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/element/0.47396339724855663-1/value] with body: {"text":"10.22.64.243","value":["1","0",".","2","2",".","6","4",".","2","4","3"],"id":"0.47396339724855663-1"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":null}
�[35m[WD Proxy]�[39m Replacing sessionId 5d2f44f57c6a1df7d6ab498319eb9a46 with 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-1/value �[39m�[32m200�[39m �[90m1511 ms - 65�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"id","value":"port"}�[39m
�[35m[W3C (5e0d7962)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/element] with body: {"using":"id","value":"port"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":{"ELEMENT":"0.47396339724855663-3"}}
�[35m[WD Proxy]�[39m Replacing sessionId 5d2f44f57c6a1df7d6ab498319eb9a46 with 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element �[39m�[32m200�[39m �[90m90 ms - 158�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mGET�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-3/attribute/value�[39m
�[35m[HTTP]�[39m �[90m{}�[39m
�[35m[W3C (5e0d7962)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-3/attribute/value' to command name 'getAttribute'
[debug] �[35m[WD Proxy]�[39m Proxying [GET /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-3/attribute/value] to [GET http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/element/0.47396339724855663-3/attribute/value] with no body
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":"8005"}
�[35m[WD Proxy]�[39m Replacing sessionId 5d2f44f57c6a1df7d6ab498319eb9a46 with 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[HTTP]�[39m �[37m<-- GET /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element/0.47396339724855663-3/attribute/value �[39m�[32m200�[39m �[90m68 ms - 67�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element�[39m
�[35m[HTTP]�[39m �[90m{"using":"xpath","value":"//a[contains(@href,\"com.picc.mcp/files/mcph5/login.html\")]"}�[39m
�[35m[W3C (5e0d7962)]�[39m Driver proxy active, passing request on via HTTP proxy
[debug] �[35m[WD Proxy]�[39m Matched '/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element' to command name 'findElement'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/element] with body: {"using":"xpath","value":"//a[contains(@href,\"com.picc.mcp/files/mcph5/login.html\")]"}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":0,"value":{"ELEMENT":"0.47396339724855663-4"}}
�[35m[WD Proxy]�[39m Replacing sessionId 5d2f44f57c6a1df7d6ab498319eb9a46 with 5e0d7962-7781-4d80-aed0-78fd1beb4e1a
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/element �[39m�[32m200�[39m �[90m119 ms - 158�[39m
�[35m[HTTP]�[39m �[90m�[39m
�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}]}�[39m
[debug] �[35m[W3C (5e0d7962)]�[39m Calling AppiumDriver.execute() with args: ["return arguments[0].scrollIntoView(true);",[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}],"5e0d7962-7781-4d80-aed0-78fd1beb4e1a"]
[debug] �[35m[WD Proxy]�[39m Matched '/execute' to command name 'execute'
[debug] �[35m[Protocol Converter]�[39m Did not know how to rewrite the original URL '/execute' for MJSONWP protocol
[debug] �[35m[WD Proxy]�[39m Proxying [POST /execute] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/execute] with body: {"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}]}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":17,"value":{"message":"javascript error: arguments[0].scrollIntoView is not a function\n  (Session info: chrome=81.0.4044.138)\n  (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)"}}
[debug] �[35m[MJSONWP]�[39m Matched JSONWP error code 17 to JavaScriptError
[debug] �[35m[W3C (5e0d7962)]�[39m Encountered internal error running command: JavaScriptError: javascript error: arguments[0].scrollIntoView is not a function
[debug] �[35m[W3C (5e0d7962)]�[39m   (Session info: chrome=81.0.4044.138)
[debug] �[35m[W3C (5e0d7962)]�[39m   (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)
[debug] �[35m[W3C (5e0d7962)]�[39m     at errorFromMJSONWPStatusCode (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:764:12)
[debug] �[35m[W3C (5e0d7962)]�[39m     at ProxyRequestError.getActualError (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:661:14)
[debug] �[35m[W3C (5e0d7962)]�[39m     at JWProxy.command (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
[debug] �[35m[W3C (5e0d7962)]�[39m     at runMicrotasks (<anonymous>)
[debug] �[35m[W3C (5e0d7962)]�[39m     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[debug] �[35m[W3C (5e0d7962)]�[39m     at AndroidUiautomator2Driver.execute (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:19:10)
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/execute/sync �[39m�[31m500�[39m �[90m206 ms - 1383�[39m
�[35m[HTTP]�[39m �[90m�[39m

@KazuCocoa
Copy link
Member

Hm, as the below error, the error itself came from chromedriver v81, not Appium own implementation.

�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}]}�[39m
[debug] �[35m[W3C (5e0d7962)]�[39m Calling AppiumDriver.execute() with args: ["return arguments[0].scrollIntoView(true);",[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}],"5e0d7962-7781-4d80-aed0-78fd1beb4e1a"]
[debug] �[35m[WD Proxy]�[39m Matched '/execute' to command name 'execute'
[debug] �[35m[Protocol Converter]�[39m Did not know how to rewrite the original URL '/execute' for MJSONWP protocol
[debug] �[35m[WD Proxy]�[39m Proxying [POST /execute] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/execute] with body: {"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}]}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":17,"value":{"message":"javascript error: arguments[0].scrollIntoView is not a function\n  (Session info: chrome=81.0.4044.138)\n  (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)"}}
[debug] �[35m[MJSONWP]�[39m Matched JSONWP error code 17 to JavaScriptError
[debug] �[35m[W3C (5e0d7962)]�[39m Encountered internal error running command: JavaScriptError: javascript error: arguments[0].scrollIntoView is not a function
[debug] �[35m[W3C (5e0d7962)]�[39m   (Session info: chrome=81.0.4044.138)
[debug] �[35m[W3C (5e0d7962)]�[39m   (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)
[debug] �[35m[W3C (5e0d7962)]�[39m     at errorFromMJSONWPStatusCode (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:764:12)
[debug] �[35m[W3C (5e0d7962)]�[39m     at ProxyRequestError.getActualError (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:661:14)
[debug] �[35m[W3C (5e0d7962)]�[39m     at JWProxy.command (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
[debug] �[35m[W3C (5e0d7962)]�[39m     at runMicrotasks (<anonymous>)
[debug] �[35m[W3C (5e0d7962)]�[39m     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[debug] �[35m[W3C (5e0d7962)]�[39m     at AndroidUiautomator2Driver.execute (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:19:10)
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/execute/sync �[39m�[31m500�[39m �[90m206 ms - 1383�[39m

why does scrollIntoView not report this error when running in selenium, but when executing in appium.

Have you run chrome v81 for selenium as well? Newer Chrome such as v118 as recent versions are quit new, so such newer one may have fixes.

@tianyao1111
Copy link
Author

Hm, as the below error, the error itself came from chromedriver v81, not Appium own implementation.

�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}]}�[39m
[debug] �[35m[W3C (5e0d7962)]�[39m Calling AppiumDriver.execute() with args: ["return arguments[0].scrollIntoView(true);",[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}],"5e0d7962-7781-4d80-aed0-78fd1beb4e1a"]
[debug] �[35m[WD Proxy]�[39m Matched '/execute' to command name 'execute'
[debug] �[35m[Protocol Converter]�[39m Did not know how to rewrite the original URL '/execute' for MJSONWP protocol
[debug] �[35m[WD Proxy]�[39m Proxying [POST /execute] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/execute] with body: {"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}]}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":17,"value":{"message":"javascript error: arguments[0].scrollIntoView is not a function\n  (Session info: chrome=81.0.4044.138)\n  (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)"}}
[debug] �[35m[MJSONWP]�[39m Matched JSONWP error code 17 to JavaScriptError
[debug] �[35m[W3C (5e0d7962)]�[39m Encountered internal error running command: JavaScriptError: javascript error: arguments[0].scrollIntoView is not a function
[debug] �[35m[W3C (5e0d7962)]�[39m   (Session info: chrome=81.0.4044.138)
[debug] �[35m[W3C (5e0d7962)]�[39m   (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)
[debug] �[35m[W3C (5e0d7962)]�[39m     at errorFromMJSONWPStatusCode (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:764:12)
[debug] �[35m[W3C (5e0d7962)]�[39m     at ProxyRequestError.getActualError (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:661:14)
[debug] �[35m[W3C (5e0d7962)]�[39m     at JWProxy.command (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
[debug] �[35m[W3C (5e0d7962)]�[39m     at runMicrotasks (<anonymous>)
[debug] �[35m[W3C (5e0d7962)]�[39m     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[debug] �[35m[W3C (5e0d7962)]�[39m     at AndroidUiautomator2Driver.execute (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:19:10)
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/execute/sync �[39m�[31m500�[39m �[90m206 ms - 1383�[39m

why does scrollIntoView not report this error when running in selenium, but when executing in appium.

Have you run chrome v81 for selenium as well? Newer Chrome such as v118 as recent versions are quit new, so such newer one may have fixes.
We haven't run selenium with Chrome v81, we're using the latest one. Let's give it a try, Chrome v81 runs selenium. Thank you for your patient answer!

@tianyao1111
Copy link
Author

Hm, as the below error, the error itself came from chromedriver v81, not Appium own implementation.

�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}]}�[39m
[debug] �[35m[W3C (5e0d7962)]�[39m Calling AppiumDriver.execute() with args: ["return arguments[0].scrollIntoView(true);",[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}],"5e0d7962-7781-4d80-aed0-78fd1beb4e1a"]
[debug] �[35m[WD Proxy]�[39m Matched '/execute' to command name 'execute'
[debug] �[35m[Protocol Converter]�[39m Did not know how to rewrite the original URL '/execute' for MJSONWP protocol
[debug] �[35m[WD Proxy]�[39m Proxying [POST /execute] to [POST http://127.0.0.1:8000/wd/hub/session/5d2f44f57c6a1df7d6ab498319eb9a46/execute] with body: {"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.47396339724855663-4"}]}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"5d2f44f57c6a1df7d6ab498319eb9a46","status":17,"value":{"message":"javascript error: arguments[0].scrollIntoView is not a function\n  (Session info: chrome=81.0.4044.138)\n  (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)"}}
[debug] �[35m[MJSONWP]�[39m Matched JSONWP error code 17 to JavaScriptError
[debug] �[35m[W3C (5e0d7962)]�[39m Encountered internal error running command: JavaScriptError: javascript error: arguments[0].scrollIntoView is not a function
[debug] �[35m[W3C (5e0d7962)]�[39m   (Session info: chrome=81.0.4044.138)
[debug] �[35m[W3C (5e0d7962)]�[39m   (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)
[debug] �[35m[W3C (5e0d7962)]�[39m     at errorFromMJSONWPStatusCode (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:764:12)
[debug] �[35m[W3C (5e0d7962)]�[39m     at ProxyRequestError.getActualError (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:661:14)
[debug] �[35m[W3C (5e0d7962)]�[39m     at JWProxy.command (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
[debug] �[35m[W3C (5e0d7962)]�[39m     at runMicrotasks (<anonymous>)
[debug] �[35m[W3C (5e0d7962)]�[39m     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[debug] �[35m[W3C (5e0d7962)]�[39m     at AndroidUiautomator2Driver.execute (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:19:10)
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/5e0d7962-7781-4d80-aed0-78fd1beb4e1a/execute/sync �[39m�[31m500�[39m �[90m206 ms - 1383�[39m

why does scrollIntoView not report this error when running in selenium, but when executing in appium.

Have you run chrome v81 for selenium as well? Newer Chrome such as v118 as recent versions are quit new, so such newer one may have fixes.
We haven't run selenium with Chrome v81, we're using the latest one. Let's give it a try, Chrome v81 runs selenium. Thank you for your patient answer!

The following is the log of selenium running with Chrome v81, and there were no errors reported in the scoreIntoView. In addition, before upgrading the Python package, Chrome v81 was also used, but there would be no error at that time. If ScollIntoView reported an error on Chrome v81, it would have reported an error before the upgrade:
https://github.com/tianyao1111/T2/blob/master/appium_chromedriver.log

@KazuCocoa
Copy link
Member

The following is the log of selenium running with Chrome v81, and there were no errors reported in the scoreIntoView

The attached log had a 500 error as below line that might be the reported error. Perhaps a different log you wanted to share?

�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/df691e09-ab52-474e-9e0c-89a0c903d1c3/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.8102463007490215-3"}]}�[39m
[debug] �[35m[W3C (df691e09)]�[39m Calling AppiumDriver.execute() with args: ["return arguments[0].scrollIntoView(true);",[{"element-6066-11e4-a52e-4f735466cecf":"0.8102463007490215-3"}],"df691e09-ab52-474e-9e0c-89a0c903d1c3"]
[debug] �[35m[WD Proxy]�[39m Matched '/execute' to command name 'execute'
[debug] �[35m[Protocol Converter]�[39m Did not know how to rewrite the original URL '/execute' for MJSONWP protocol
[debug] �[35m[WD Proxy]�[39m Proxying [POST /execute] to [POST http://127.0.0.1:8000/wd/hub/session/e283c1eb7270d45f38880a782782455c/execute] with body: {"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.8102463007490215-3"}]}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"e283c1eb7270d45f38880a782782455c","status":17,"value":{"message":"javascript error: arguments[0].scrollIntoView is not a function\n  (Session info: chrome=81.0.4044.138)\n  (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)"}}
[debug] �[35m[MJSONWP]�[39m Matched JSONWP error code 17 to JavaScriptError
[debug] �[35m[W3C (df691e09)]�[39m Encountered internal error running command: JavaScriptError: javascript error: arguments[0].scrollIntoView is not a function
[debug] �[35m[W3C (df691e09)]�[39m   (Session info: chrome=81.0.4044.138)
[debug] �[35m[W3C (df691e09)]�[39m   (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)
[debug] �[35m[W3C (df691e09)]�[39m     at errorFromMJSONWPStatusCode (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:764:12)
[debug] �[35m[W3C (df691e09)]�[39m     at ProxyRequestError.getActualError (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:661:14)
[debug] �[35m[W3C (df691e09)]�[39m     at JWProxy.command (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
[debug] �[35m[W3C (df691e09)]�[39m     at runMicrotasks (<anonymous>)
[debug] �[35m[W3C (df691e09)]�[39m     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[debug] �[35m[W3C (df691e09)]�[39m     at AndroidUiautomator2Driver.execute (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:19:10)
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/df691e09-ab52-474e-9e0c-89a0c903d1c3/execute/sync �[39m�[31m500�[39m �[90m188 ms - 1383�[39m
�[35m[HTTP]�[39m �[90m�[39m

before upgrading the Python package

My best guess is protocol differences.

Btw, selenium v4 based appium python client (v2+) basically may have an issue for non-w3c webdriver protocol. I'd recommend using Python client v1 if you'd like to keep using "w3c": false

@tianyao1111
Copy link
Author

The following is the log of selenium running with Chrome v81, and there were no errors reported in the scoreIntoView

The attached log had a 500 error as below line that might be the reported error. Perhaps a different log you wanted to share?

�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/df691e09-ab52-474e-9e0c-89a0c903d1c3/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.8102463007490215-3"}]}�[39m
[debug] �[35m[W3C (df691e09)]�[39m Calling AppiumDriver.execute() with args: ["return arguments[0].scrollIntoView(true);",[{"element-6066-11e4-a52e-4f735466cecf":"0.8102463007490215-3"}],"df691e09-ab52-474e-9e0c-89a0c903d1c3"]
[debug] �[35m[WD Proxy]�[39m Matched '/execute' to command name 'execute'
[debug] �[35m[Protocol Converter]�[39m Did not know how to rewrite the original URL '/execute' for MJSONWP protocol
[debug] �[35m[WD Proxy]�[39m Proxying [POST /execute] to [POST http://127.0.0.1:8000/wd/hub/session/e283c1eb7270d45f38880a782782455c/execute] with body: {"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.8102463007490215-3"}]}
[debug] �[35m[WD Proxy]�[39m Got response with status 200: {"sessionId":"e283c1eb7270d45f38880a782782455c","status":17,"value":{"message":"javascript error: arguments[0].scrollIntoView is not a function\n  (Session info: chrome=81.0.4044.138)\n  (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)"}}
[debug] �[35m[MJSONWP]�[39m Matched JSONWP error code 17 to JavaScriptError
[debug] �[35m[W3C (df691e09)]�[39m Encountered internal error running command: JavaScriptError: javascript error: arguments[0].scrollIntoView is not a function
[debug] �[35m[W3C (df691e09)]�[39m   (Session info: chrome=81.0.4044.138)
[debug] �[35m[W3C (df691e09)]�[39m   (Driver info: chromedriver=81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}),platform=Windows NT 10.0.19045 x86_64)
[debug] �[35m[W3C (df691e09)]�[39m     at errorFromMJSONWPStatusCode (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:764:12)
[debug] �[35m[W3C (df691e09)]�[39m     at ProxyRequestError.getActualError (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:661:14)
[debug] �[35m[W3C (df691e09)]�[39m     at JWProxy.command (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
[debug] �[35m[W3C (df691e09)]�[39m     at runMicrotasks (<anonymous>)
[debug] �[35m[W3C (df691e09)]�[39m     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[debug] �[35m[W3C (df691e09)]�[39m     at AndroidUiautomator2Driver.execute (C:\Users\admin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:19:10)
�[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/df691e09-ab52-474e-9e0c-89a0c903d1c3/execute/sync �[39m�[31m500�[39m �[90m188 ms - 1383�[39m
�[35m[HTTP]�[39m �[90m�[39m

before upgrading the Python package

My best guess is protocol differences.

Btw, selenium v4 based appium python client (v2+) basically may have an issue for non-w3c webdriver protocol. I'd recommend using Python client v1 if you'd like to keep using "w3c": false

I comment out 'w3c': false, it also report this error;
should I just upgrade my appium server to 2. X? Is it possible that my Python package has been upgraded to 2. X, and is the appium server still 1. X causing this?

@KazuCocoa
Copy link
Member

Hm, then I don't have a good idea.
Could you compare the request URL and the body like the below with ok/no cases? If these requests are the same, the behavior basically depends on the chromedriver side, out of Appium's control.

�[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/df691e09-ab52-474e-9e0c-89a0c903d1c3/execute/sync�[39m
�[35m[HTTP]�[39m �[90m{"script":"return arguments[0].scrollIntoView(true);","args":[{"element-6066-11e4-a52e-4f735466cecf":"0.8102463007490215-3"}]}�[39m
[debug] �[35m[W3C (df691e09)]�[39m Calling AppiumDriver.execute() with args: ["return arguments[0].scrollIntoView(true);",[{"element-6066-11e4-a52e-4f735466cecf":"0.8102463007490215-3"}],"df691e09-ab52-474e-9e0c-89a0c903d1c3"]
[debug] �[35m[WD Proxy]�[39m Matched '/execute' to command name 'execute'

@KazuCocoa
Copy link
Member

KazuCocoa commented Nov 9, 2023

Is it possible that my Python package has been upgraded to 2. X, and is the appium server still 1. X causing this?

Yes, basically Appium has been talking w3c webdriver protocol, so you could use a newer python client and older appium if necessary, while potentially you may need to manage the appium server instance by yourselves. (we no longer maintain older versions, though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants