GeorgeZh

Results comments of GeorgeZh

还有,我使用driver.webview()时会报错“is not a function”

Error: [execute("document.getElementById('classroom')")] Error response status: 1

ios_webkit_debug_proxy path: /usr/local/bin/ios_webkit_debug_proxy Could not connect to lockdownd. Exiting.: Permission denied Unable to attach 0edb9cee7e8f607d7a0c9e76d6fbd7483d259eb3 inspector Error: Device: 0edb9cee7e8f607d7a0c9e76d6fbd7483d259eb3 does not exist. at request.get.then.then.devices (/usr/local/lib/node_modules/macaca-ios/node_modules/remote-debugger/lib/remote-debugger.js:47:17) at tryCatcher (/usr/local/lib/node_modules/macaca-ios/node_modules/bluebird/js/main/util.js:26:23) at Promise._settlePromiseFromHandler...

就macaca官方文档https://macacajs.github.io/macaca-wd/#waitForElement,getComputedCss/getProperty/getRect/waitForVisibleByCss 在PC可以正常使用,在真机就报错了

可是文档上写着支持webview的,我已经切换到webview操作了,其他api都可以正常使用,我的是ios10.12