硒IDE。单击命令跨进程JS调用失败
Selenium IDE. Cross-process JS call failed on click command
我在 AngularJS 1 和 Selenium IDE 2.9.1 上有一个 SPA 用于功能测试。
窗体上有带有 onclick 处理程序的按钮。
当我 运行 某些测试场景时,它在单击此按钮上的命令时崩溃并显示消息:
[error] Unexpected Exception: Error: cross-process JS call faild.
但是 SPA 反应正确并做它需要做的事情。
接下来的测试正确通过,除了一个。所以,我没有green light
.
如何处理此点击行为?或者我做错了什么?
即使我使用代码 13 通过 keyPress 调用此按钮,我也会遇到同样的情况
· [info] Executing: |keyPress | css=button | |
· [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
问题可能是 Firefox 最新发布的版本。正如我在这些链接上看到的:
- https://github.com/SeleniumHQ/selenium/issues/3435
- https://groups.google.com/forum/?fromgroups#!topic/selenium-users/4Jz6hIjjxNk
有两种解决方案:
- 将最后一个版本降级到 50.0.1 版本,该版本没有抛出错误
- 安装 Selenium IDE:Firefox 的流量控制扩展
我在 AngularJS 1 和 Selenium IDE 2.9.1 上有一个 SPA 用于功能测试。
窗体上有带有 onclick 处理程序的按钮。 当我 运行 某些测试场景时,它在单击此按钮上的命令时崩溃并显示消息:
[error] Unexpected Exception: Error: cross-process JS call faild.
但是 SPA 反应正确并做它需要做的事情。
接下来的测试正确通过,除了一个。所以,我没有green light
.
如何处理此点击行为?或者我做错了什么?
即使我使用代码 13 通过 keyPress 调用此按钮,我也会遇到同样的情况
· [info] Executing: |keyPress | css=button | |
· [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
问题可能是 Firefox 最新发布的版本。正如我在这些链接上看到的:
- https://github.com/SeleniumHQ/selenium/issues/3435
- https://groups.google.com/forum/?fromgroups#!topic/selenium-users/4Jz6hIjjxNk
有两种解决方案:
- 将最后一个版本降级到 50.0.1 版本,该版本没有抛出错误
- 安装 Selenium IDE:Firefox 的流量控制扩展