Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 硒化物。单击命令时跨进程JS调用失败_Angularjs_Selenium_Automated Tests_Selenium Ide - Fatal编程技术网

Angularjs 硒化物。单击命令时跨进程JS调用失败

Angularjs 硒化物。单击命令时跨进程JS调用失败,angularjs,selenium,automated-tests,selenium-ide,Angularjs,Selenium,Automated Tests,Selenium Ide,我在AngularJS 1和Selenium IDE 2.9.1上有一个SPA用于功能测试 表单上有一个带有onclick处理程序的按钮。 当我运行一些测试场景时,它会在单击此按钮上的命令时崩溃,并显示以下消息: [error] Unexpected Exception: Error: cross-process JS call faild. 但是SPA的反应很好,可以做它需要做的事情 下一个测试正确通过,除了一个测试。所以,我没有绿灯 如何处理此单击的行为?或者我做错了什么 即使我用13号键

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

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

[error] Unexpected Exception: Error: cross-process JS call faild.
但是SPA的反应很好,可以做它需要做的事情

下一个测试正确通过,除了一个测试。所以,我没有绿灯

如何处理此单击的行为?或者我做错了什么

即使我用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

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

有两种解决方案:

  • 将上一版本降级到50.0.1版本,在该版本中未引发错误
  • 将Selenium IDE:流控制扩展安装到Firefox