セレンのウェブサイトからの古典的なGoogleテストは、vistaのFFで動作します。IE7 では、ウィンドウ オブジェクトが見つからないようです。「*iexplore」の代わりに「*iexploreproxy」を使用するように構成を変更すると、Selnm はテスト (IE の場合) でさらに進みますが、信頼できないセキュリティ証明書の警告が発生するため、それを使用できません。Selenium RC 1.0.1 をインストールし、自分のボックスで実行されていることを確認しました。臭素などの他のツールは使用していません。私はEclipseで実行しています。
public class NewTest extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://www.google.com/", "iexplore");
// We instantiate and start the browser
}
public void testNew() throws Exception {
selenium.open("/");
selenium.type("q", "selenium rc");
selenium.click("btnG");
selenium.waitForPageToLoad("30000");
if(! selenium.isTextPresent("Results * for selenium rc"))
throw new Exception("failed");
}
}