You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

iPad真机运行Protractor脚本遇'No WebView found'问题求助

iOS端运行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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 09:59:34