【发布时间】: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