iPad真机运行Protractor脚本遇'No WebView found'问题求助
大家好,我最近在做跨端的Protractor自动化测试,Web和Android设备上跑脚本都很顺利,但在iOS设备上一直卡壳,报**'No WebView found'**的错误。开发者已经明确确认这是混合应用了,下面是我完整的操作流程和对应的日志,麻烦各位帮忙分析下问题出在哪,给点解决建议,谢谢!
我的操作步骤及对应日志
第一步:启动
ios_webkit_debug_proxy,执行的命令是:ios_webkit_debug_proxy -c null:27753,:27753-27853得到的输出:
Listing devices on :27753 Connected :27755 to iPad (**************)
第二步:启动Appium服务器,日志片段如下:
[Appium] Welcome to Appium v1.8.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723第三步:运行Protractor脚本,执行命令:
Protractor iOSConfig.js关键日志内容:
[iOS] Could not find any webviews yet, refreshing/retrying
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: false
[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 27755
[debug] [RemoteDebugger] Sending request to: http://localhost:27755/json
[debug] [RemoteDebugger] Page element JSON: []
[debug] [iOS] No web frames found.
内容的提问来源于stack exchange,提问作者Sandeep Raulo

