在ios 13.3版本上,使用appium 16.0.0进行自动化时,应用程序屏幕冻结,没有反应。

问题描述 投票:0回答:1

我最近升级了iOS版本到13.3,这是苹果公司的最新版本,自从升级后,我面临着一些特定屏幕的问题,当自动化进行时,应用程序屏幕被冻结,变得没有反应,甚至手动执行任何点击或任何东西。

在Appium中,我得到了以下日志......

[debug] [MJSONWP (b7af44de)] Calling AppiumDriver.getSession() with args: ['''b7af44de-4b5b-4db6-8dd8-4e6aac82fd21''']
[debug] [XCUITest] Executing command 'getSession'
[Xcode] 2020-02-03 19:29:29.725097+0530 WebDriverAgentRunner-Runner[6981:1956897] Failed to invoke libxml2>xmlTextWriterStartElement for the tag value '(null)'. Error code: -1
[Xcode] 
[Xcode] 2020-02-03 19:29:29.725529+0530 WebDriverAgentRunner-Runner[6981:1956897] Failed to generate XML presentation of a screen element
[Xcode] Entity: line 2: parser error : Extra content at the end of the document
[Xcode] 
[Xcode] ^
[Xcode] error : xmlTextWriterWriteDocCallback : XML error 5 !
[Xcode] 
[debug] [WD Proxy] Got response with status 500: {
[debug] [WD Proxy]   "value" : {
[debug] [WD Proxy]     "error" : "unknown error",
[debug] [WD Proxy]     "message" : "Cannot get 'xml' source of the current application",
[debug] [WD Proxy]     "traceback" : ""
[debug] [WD Proxy]   },
[debug] [WD Proxy]   "sessionId" : "C3936A6F-27F6-47F1-85B1-6C81FAEC36E0"
[debug] [WD Proxy] }
[debug] [W3C] Matched W3C error code 'unknown error' to UnknownError
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched '/screenshot' to command name 'getScreenshot'
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8100/session/C3936A6F-27F6-47F1-85B1-6C81FAEC36E0/screenshot] with no body
[debug] [MJSONWP (b7af44de)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot get 'xml' source of the current application
[debug] [MJSONWP (b7af44de)]     at errorFromW3CJsonCode (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)
[debug] [MJSONWP (b7af44de)]     at ProxyRequestError.getActualError (/usr/local/lib/node_modules/appium/node_modules/appium-`enter code here`base-`enter code here`driver/lib/protocol/errors.js:663:14)`enter code here`
[debug] [MJSONWP (b7af44de)]     at JWProxy.command (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:268:19)
[HTTP] <-- GET /wd/hub/session/b7af44de-4b5b-4db6-8dd8-4e6aac82fd21/source 500 30065 ms - 221
java ios iphone appium-ios
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.