ユーザー拡張機能とセレンの拡張について読みましたが、作成しているカスタムコマンド内からコマンドを呼び出す方法を知りたいと思っています。
Selenium IDEオプションのSeleniumコア拡張機能(user-extensions.js)に次のようなファイルを追加しました。
// selenium-action-example.js
Selenium.prototype.doExample = function() {
this.doOpen("/"); // doesn't waitForPageToLoad like the command does
// These two commands are equivalent to the clickAndWait command. NOT!
// For proof, see the filterForRemoteControl function:
// http://code.google.com/p/selenium/source/browse/trunk/ide/src/extension/content/formats/formatCommandOnlyAdapter.js?r=8284#68
this.doClick("css=a#example");
this.doWaitForPageToLoad(); // doesn't wait at all
this.doClick("link=Example");
this.doWaitForElementPresent("example"); // error! undefined function
this.doClick("example");
};
つまり、カスタムアクション内でクリックの合間に物事を待つにはどうすればよいですか?