我在AngularJS 1和SeleniumIDE2.9.1上有一个用于功能测试的SPA。
窗体上有带有onclick处理程序的按钮。当我运行一些测试场景时,它会在此按钮上的单击命令上崩溃,并带有消息:
[error] Unexpected Exception: Error: cross-process JS call faild.但是SPA做出了正确的反应,并做了它需要做的事情。
下一次测试是正确的,除了一次。所以,我没有green light。
我该如何处理这种点击的行为?或者我做错什么了?
即使我用代码13通过keyPress调用这个按钮,我也有同样的情况。
· [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发布于 2017-02-06 07:52:57
问题可能是火狐发布的最后一个版本。正如我在这些链接上所看到的:
有两种解决办法:
https://stackoverflow.com/questions/41871736
复制相似问题