【问题标题】:Extjs Click event, double fireExtjs 点击事件,双火
【发布时间】:2012-06-17 01:17:45
【问题描述】:

我在玩 Casperjs 和 ExtJS

这是我的游乐场:http://jsfiddle.net/charlesbourasseau/fEDCu/

这是我的 test.coffee: casper = require('casper').create 日志级别:'调试' 详细:真

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! 吗?

【问题讨论】:

    标签: javascript events extjs casperjs


    【解决方案1】:

    我不确定 casperjs,但你的小提琴看起来不错。如果您单击一个按钮 - 您将获得一个日志条目。

    【讨论】:

    • casperjs 很好,我用没有 Extjs 的小提琴对其进行了测试,只打印了一个条目。
    【解决方案2】:

    这实际上是一个 CasperJS 问题,它在 master 分支中修复。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-11-27
      • 1970-01-01
      • 1970-01-01
      • 2012-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多