【问题标题】:How to run Protractor specs on IE 11?如何在 IE 11 上运行量角器规范?
【发布时间】:2019-03-30 01:48:06
【问题描述】:

我一直在尝试在 IE 11 上运行量角器规范,使用以下 conf.js:

 multiCapabilities: [
       {
        'browserName': 'internet explorer',
         version: 11,
         'ignoreProtectedModeSettings': true
       // 'idle-duration':10000,
    }, 
    }],

并添加了这个:

 seleniumArgs: 'C:/Users/LJQAuser/AppData/Roaming/npm/node_modules/protractor/node_modules/webdriver-manager/selenium/IEDriverServer.exe',

并将directConnect设置为:false

但仍然显示错误:

控制台中的错误是: [12:38:42] I/local - 正在启动 selenium 独立服务器... [12:38:43] E/launcher - 错误:错误:服务器提前终止,状态为 1 在 earlyTermination.catch.e (C:\Users\LJQAuser\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\remote\index.js:252:52) 在:null:null 在 process._tickCallback (internal/process/next_tick.js:188:7)

结束报告 [12:38:43] E/launcher - 进程退出,错误代码为 100

【问题讨论】:

    标签: protractor internet-explorer-11


    【解决方案1】:

    Internet Explorer 存在大量问题。可能您将无法成功运行它。

    还有很多手动步骤需要应用。

    以下是一些基本的设置指南:

    Protractor test in IE

    https://qavalidation.com/2017/11/run-protractor-test-ie-internet-explorer.html/

    祝你好运!

    【讨论】:

    • 手动完成上述所有设置后,我仍然收到此错误:] E/launcher - 错误:错误:服务器提前终止,状态为 1
    • 有人可以帮忙吗??
    • 当我在 IE 的 Internet 选项中为所有 4 项设置启用保护模式时,此问题已解决。
    • Infern0 的大量问题是什么意思?我正在分析在实际项目中使用带 IE 的量角器进行 UI 测试。例如,您是否建议不考虑这种方法而直接使用后端 Selenium?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-12-21
    • 2015-03-09
    • 1970-01-01
    • 1970-01-01
    • 2017-10-01
    • 2020-10-21
    • 1970-01-01
    相关资源
    最近更新 更多