0
こんにちは、私はセレンに新しいですし、それを介してWebフォーム上の自動化を試しています。私は自分のコードを実行したときしかし、それはここで を終了します私のコードはここにセレンはエクリプスでは実行できません
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.support.ui.Select;
public class Demo {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.ie.driver", "C:\\selenium\\IEDriverServer_Win32_2.53.1\\IEDriverServer.exe");
WebDriver driver=new `InternetExplorerDriver();
driver.get("http://example.com");
}
}
である私は
testing US7ASCII against <abc>
PASSED LOSSY
testing US7ASCII against <ab?c>
PASSED LOSSY
testing US7ASCII against <XYZ>
PASSED LOSSY
testing US7ASCII against <longlonglonglong...>
PASSED LOSSY
testing WE8ISO8859P1 against <abc>
PASSED LOSSY
testing WE8ISO8859P1 against <ab?c>
PASSED LOSSY
testing WE8ISO8859P1 against <XYZ>
PASSED LOSSY
testing WE8ISO8859P1 against <longlonglonglong...>
PASSED LOSSY
testing AL24UTFFSS against <abc>
PASSED
testing AL24UTFFSS against <ab?c>
PASSED
testing AL24UTFFSS against <XYZ>
PASSED
testing AL24UTFFSS against <longlonglonglong...>
PASSED
testing UTF8 against <abc>
PASSED
testing UTF8 against <ab?c>
PASSED
testing UTF8 against <XYZ>
PASSED
testing UTF8 against <longlonglonglong...>
PASSED
アプリケーションは、すぐに私はそれを実行して終了しますコンソール上に得るものです。問題がどこにあるのか分かりません。
IE webdriverを実行するための設定をしましたか? https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver – Haxor