Hi, I am very new to selenium. So forgive me for any technical errors. I have a project that works great for IE. But I need to also check the use of firefox. Does the project require a pointer to a driver, such as IEDriver, if executed in IE?
You do not need to specify a driver path for FirefoxDriver.You can use directly . WebDriver driver = new FirefoxDriver();
WebDriver driver = new FirefoxDriver();
However, there are other ways to run selenium in Firefox, as shown below:
1- Firefox;.
2- Firefox Binary;[PS: - , , ]
-Dwebdriver.firefox.bin = "C:\Mozilla Firefox\firefox.exe"
FireFox driver = new FirefoxDriver(), selenium path .
FireFox
driver = new FirefoxDriver()
System.setProperty("webdriver.ie.driver", "pathToTheIEDriver"); WebDriver driver = new InternetExplorerDriver();
WebDriver, Firefox, :
import org.openqa.selenium.By; import org.openqa.selenium.WebElement; WebDriver driver = new FirefoxDriver();
import org.openqa.selenium.WebElement;//import this package import org.openqa.selenium.By; //import this package WebDriver FF_river = new FirefoxDriver();//create a reference variable of FirefoxDriver() int
Firefox, GeckoDriver. geckodriver: https://github.com/mozilla/geckodriver/releases
( , "BrowserDriver"). :
System.setProperty("webdriver.gecko.driver", System.getProperty("user.dir")+"/BrowserDriver/Mac/geckodriver 2"); WebDriver driver = new FirefoxDriver();
Source: https://habr.com/ru/post/1570131/More articles:Aggregation subquery, search inside list of specific _id - mongodbWhen to use `form:` in Typed Racket? - annotationsDo not get the desired result using the Wordnet type determination method - pythonLink to global primitives and objects - pythonPromises inside the loops - promiseОтправка объекта ошибки из порожденного дочернего процесса по IPC-каналу - javascriptREST API-интерфейс проверки подлинности и авторизации с помощью файлов cookie на стороне клиента - angularjsTuning SQL Server - performanceDropdown list not showing in Firefox - htmlHow to add a color legend to the matte matrix R - rAll Articles