我在使用CasperJs导航时解雇弹出式iframe时遇到了一些问题。代码很简单......
@.then ->
@.click('#buttonCancel');
@.withFrame 'InlineDialog_Iframe', ->
@.waitForSelector('#buttonCancel');
@.clickLabel('No, thanks');
但是每次我跑这个时我都会从phantomjs那里得到一个错误:
pure virtual method called
terminate called without an active exception
PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/4fd2a861-e967-d32e-1ae744f2-175a5f93.dmp
我可以在这里复制并粘贴转储文件,但我不知道它中有多少有用的信息。
似乎每次我尝试在帧之间移动......幻影js崩溃!有没有人有这方面的经验?
编辑:运行应用程序的控制台输出:
[info] [phantom] Step _step 10/13: done in 16574ms.
[info] [phantom] waitFor() finished in 40ms.
[info] [phantom] Step anonymous 11/13 https://--------- (HTTP 200)
[debug] [phantom] Mouse event 'mousedown' on selector: xpath selector: //*[text()="No, thanks"]
[debug] [phantom] Mouse event 'mouseup' on selector: xpath selector: //*[text()="No, thanks"]
[debug] [phantom] Mouse event 'click' on selector: xpath selector: //*[text()="No, thanks"]
[debug] [phantom] Successfully injected Casper client-side utilities
[info] [phantom] Step anonymous 11/13: done in 16687ms.
PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: