【问题标题】:Selenium IDE. Cross-process JS call failed on click command硒 IDE。单击命令时跨进程 JS 调用失败
【发布时间】:2017-01-26 10:45:10
【问题描述】:

我在 AngularJS 1 和 Selenium IDE 2.9.1 上有一个 SPA,用于功能测试。

表单上有带有 onclick 处理程序的按钮。 当我运行一些测试场景时,它会在此按钮上的单击命令上崩溃并显示消息:

[error] Unexpected Exception: Error: cross-process JS call faild.

但是 SPA 会做出正确的反应并做它需要做的事情。

接下来的测试正确通过,除了一个。所以,我没有green light

如何处理此点击行为?还是我做错了什么?

即使我通过 keyPress 使用代码 13 调用此按钮,我也会遇到同样的情况

·  [info] Executing: |keyPress | css=button | \13 |

·  [debug] Command found, going to execute keyPress

·  [debug] modifyWindow seleniumMarker1485501036924:selenium1485501041612

·  [debug] _getFrameElement: frameElement=null

·  [debug] modifySeparateTestWindowToDetectPageLoads: already polling this window: selenium1485501041612

·  [debug] getCurrentWindow newPageLoaded = false

·  [error] Unexpected Exception: Error: cross-process JS call failed.

·  [debug] commandError

·  [debug] testComplete: failed=true

·  [info] Test case failed

【问题讨论】:

    标签: angularjs selenium automated-tests selenium-ide


    【解决方案1】:

    问题可能是 Firefox 发布的最后一个版本。正如我在这些链接上看到的:

    有两种解决方案:

    • 将最后一个版本降级到 50.0.1 版本,其中未引发错误
    • 安装 Selenium IDE:Firefox 的流控制扩展

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-02-26
      • 2013-12-28
      • 2013-11-26
      • 1970-01-01
      • 2017-05-15
      • 2019-06-09
      • 1970-01-01
      相关资源
      最近更新 更多