I'm using Selenium's v3.4.0 in a maven project. I imported all Selenium's jars using the below dependency:-
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
The issue is, I'm not able to resolve any dependency in my project in Eclipse for below code inside main method:-
public class FirefoxTest {
public static void main(String[] args) {
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"); //This is the location where you have installed Firefox on your machine
FirefoxDriver driver = new FirefoxDriver(options);
driver.get("http://www.google.com");
}
}
So, what could be wrong? Eclipse is unable to resolve FirefoxDriver type to any dependencies. Kindly help.