Hi I am very new to selenium . So pardon me for any technical mistakes. I have a project which works fine for IE. But I need to test using firefox too. Does the project require a pointer towards the driver like IEDriver in case of execution in IE?
You don't need to set the driver path for FirefoxDriver.
You can directly use WebDriver driver = new FirefoxDriver();
.
However, there are other ways to run selenium in Firefox also, as below:
1- Using Firefox Profile;
Used to run selenium in a new user-defined profile with a set of preferences as necessary.
2- Using Firefox Binary;
[PS:- Not much Idea on how it works, But this link might help you out]
In my enviroment I set the property -Dwebdriver.firefox.bin="C:\Mozilla Firefox\firefox.exe"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With