-1
をgeckdrive失敗しますが、Firefoxでは、オブジェクトテストは、私は、エラーの下に取得していますFirefoxで実行したときに同じテストがchromedriverで渡しているが
をgeckdrive失敗しますが、Firefoxでは、オブジェクトテストは、私は、エラーの下に取得していますFirefoxで実行したときに同じテストがchromedriverで渡しているが
@Before
public void Setup() throws IOException {
read = new ReadProperty();
try {
read.ReadData();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
if (read.browsername.equals("firefox")) {
System.setProperty("webdriver.gecko.driver", driverPath + "geckodriver.exe");
driver = new FirefoxDriver();
Navigate_to_App();
maximizeWindow();
} else if (read.browsername.equals("chrome")) {
System.setProperty("webdriver.chrome.driver", "C://ams5.0//src//Drivers//chromedriver.exe");
driver = new ChromeDriver();
Navigate_to_App();
maximizeWindow();
}
を見つけるために失敗しているgeckodriverされていますNoSuch Element Exceptionを取得していますが、ChromeまたはOperaのリンクをクリックできます。
コード、htmlとエラーメッセージを追加して、 – Guy