我在玩 Casperjs 和 ExtJS
这是我的游乐场:http: //jsfiddle.net/charlesbourasseau/fEDCu/
这是我的 test.coffee: casper = require('casper').create logLevel: 'debug' verbose: true
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!
吗?