Selenium スタンドアロン サーバーを使用しています - 2.25.0
IE - 8.0.7601.17514 (64 - ビット版)
IEDriverServer.exe - 2.28.0 (64 ビット)
OS - Windows 7 プロフェッショナル
Java - SDK7
以下のコードを使用して IE を起動し、簡単なテストを実行しています。
WebDriver driver = null;
DesiredCapabilities ieCapabilities = null;
ieCapabilities = DesiredCapabilities.internetExplorer();
if (ieCapabilities != null) {
driver = new InternetExplorerDriver(ieCapabilities);
}
driver.get("http://www.yebhi.com/");
// driver.findElement(By.id("anchSighin")).click();
driver.findElement(By.xpath("//div/ul/li/a/div/span")).click();
driver.findElement(By.xpath("//div[80]/a")).click();
driver.findElement(By.xpath("//div[4]/div/div[2]/div/div[4]/a"))
.click();
Thread.sleep(5000);
driver.findElement(By.xpath("//div[5]/div[4]/div/div[4]/a")).click();
driver.switchTo().frame(2);
driver.findElement(By.id("txtMoblogin")).clear();
driver.findElement(By.id("txtMoblogin")).sendKeys("ghfghghf");
driver.findElement(By.id("txtMobPass")).clear();
driver.findElement(By.id("txtMobPass")).sendKeys("hfghgh");
Thread.sleep(5000);
driver.findElement(By.id("btnLogin")).click();
上記のコードを使用することで、テストを起動して実行できましたが、問題がありました。
実際の問題はthe browser is continuously maximizing and minimizing until the test suite get finished.
この問題に 1 週間以上悩まされています。バグかどうかはわかりません。バグの場合は解決してください。
前もって感謝します。