我正在玩Casperjs和ExtJS
这是我的游乐场:http://jsfiddle.net/charlesbourasseau/fEDCu/
这是我的test.coffee: casper = require('casper')。创建 logLevel:'debug' 详细:真实
url = 'http://fiddle.jshell.net/charlesbourasseau/fEDCu/show/'
casper.start url, ->
@click '.x-btn'
casper.run -> @test.renderResults true
这是输出:
[info] [phantom] Starting...
[info] [phantom] Running suite: 2 steps
[debug] [phantom] opening url: http://fiddle.jshell.net/charlesbourasseau/fEDCu/show/, HTTP GET
[debug] [phantom] Successfully injected Casper client-side utilities
[info] [phantom] Step 2/2 http://fiddle.jshell.net/charlesbourasseau/fEDCu/show/ (HTTP 200)
[debug] [phantom] Mouse event 'click' on selector: .x-btn
[info] [remote] Click!
[info] [remote] Click!
[info] [phantom] Step 2/2: done in 4146ms.
[info] [phantom] Done 2 steps in 4233ms
FAIL Looks like you didn't run any test.
有人知道为什么我会得到2 [info] [remote] Click!
吗?
答案 0 :(得分:1)
我不确定casperjs但你的小提琴看起来很好。如果单击按钮 - 您将获得一个日志条目。
答案 1 :(得分:0)
这实际上是一个CasperJS问题,它在主分支中修复。