私は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!
ますか?