JUnitクラスでは、4つのメソッドとしてセレンテストケースを設定しています。最初はうまく動作します - しかし、この方法の最後のステップが完了する前に、残りの3つは、Firefoxブラウザを閉じる -セレンはjannitとしてantで実行中ですが、IDEではなくブラウザが閉じます
ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: this.page().currentDocument is undefined
com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: this.page().currentDocument is undefined
セットアップは以下の通りです与える:
のAntベースの実行
- のJavaを1.5
- のEclipse 3.5
- Seleniumサーバー1.0.1
- Seleni UMクライアントドライバ1.0.1
IDE
- のJava 1.5
- のEclipse 3.5
- Seleniumサーバー1.0.1
- セレンクライアントドライバ1.0.1
I根本原因を突き止めることを望んでいる
それが次の行にクラッシュし
:
Selenium.prototype.getElementBody = function(elementId) {
return this.outerHTML(this.page().currentDocument.getElementById(elementId));
};
これはと呼ばれているものです::これは、ユーザーextensions.jsファイルへの変更は
ある
commandProcessor.getString("getElementBody", "idOfElement");
問題が何であるかわかりますか? – AutomatedTester