selenium ideのバグ修正を投稿してみた。

selenium ide のバグの修正を半年前ぐらいにブログに書いたけど、やっぱブログに書くだけでは本家に拾ってもらえるわけはないし、selenium ide を使う人にrti修正パッチを配るのが面倒になったので本家に報告してみるテスト。

http://groups.google.com/group/selenium-users
#何か反映されないのはタイムラグ?
#使い方間違って投稿されていなかったらいやだなぁ

英語とかまったくさっぱり全然壊滅的にわからないので、excite翻訳で訳して送ってみた。
伝わればいいんだけど。。。。(英語が得意な人誰が訳してあげてください)

hello.
I corrected the bug that "clickAndWait" uncommonly becomes "click".

This bug occurs when the event record of selenium ide is stopped, and it adds and the line is deleted.

Reproduction Steps:
Please select full powers by Ctrl + A while recording with selenium ide and delete all the tests with Delete.
And, when a new event is recorded, it can be confirmed that the button click is not "clickAndWait" but "click".

Fix:
editor.js Editor.prototype.addCommand function

    } else {
//        this.lastCommandIndex = this.view.getRecordIndex();          //bug!!
          this.lastCommandIndex = this.getTestCase().commands.length;  //fix

        this.getTestCase().commands.splice(this.lastCommandIndex, 0, command);
        this.view.rowInserted(this.lastCommandIndex);
        this.timeoutID = setTimeout("editor.clearLastCommand()", 300);
    }

It is repaired for the time being by this.
Repaired in selenium ide version 1.0.4 and 1.0.2 is confirmed.

A detailed explanation is in the blog of me Japanese.
http://d.hatena.ne.jp/rti7743/20090929/1254237759


しまった、、、selenium ide とタイトルに入れるの忘れた、、、
I corrected problem of clickAndWait bug of selenium ide. とか入れるべきだったか、、、

追記
何かうまく投稿できたらしい。
issue の方にあげろやーって言われたので、issue に投稿してみる。
http://code.google.com/p/selenium/issues/detail?id=419

早く直るといいなぁ