IOS Simulator -.mobileconfig上的实习生不存在。返回一个空的plist

时间:2019-04-16 12:10:52

标签: ios appium intern xcuitest

我正在尝试在iOS Simulator上执行实习生脚本,为此我需要在IOS模拟器上安装证书, 根据建议,我已将Appium的XCUITest驱动程序更新为2.87.0 但是现在它又带来了另一个问题。

[debug] [XCUITest] Executing command 'execute'
[debug] [Support] Plist file '/Users/admin/node_modules/appium/node_modules/appium-base-driver/static/1mdnbdr.6q2jg.mobileconfig' does not exist. Returning an empty plist.
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/816A6AC8-7B69-42B8-A6E8-888980AD554C/element] with body: {"using":"accessibility id","value":"Allow"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"accessibility id","value":"Allow","description":"unable to find an element"},"sessionId":"816A6AC8-7B69-42B8-A6E8-888980AD554C","status":7}
(node:71381) UnhandledPromiseRejectionWarning: NoSuchElementError: An element could not be located on the page using the given search parameters.
    at XCUITestDriver.callee$0$0$ (/Users/admin/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:130:13)
    at tryCatch (/Users/admin/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/admin/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/admin/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/Users/admin/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
(node:71381) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 9)

我被困住了,不知道如何进行。 任何帮助表示赞赏。 谢谢你。

0 个答案:

没有答案