Reputation: 11
I got an error The type org.openqa.selenium.WebDriver is not accessible after uplaoding JArS files of selenium webdriver usinf eclipse IDE & JAVA . I need your help please ?
package samplePackage;
import org.openqa.selenium.WebDriver;
public class WebDriverDemo {
public static void main(String[] args) {
WebDriver;
}
}
Upvotes: 0
Views: 9379
Reputation: 133
If it has not already worked after what @pburgr has said, then make sure you have added the right JAR e.g. selenium-java-3.14.0.jar
If you have written import org.openqa.selenium.WebDriver;
yourself then remove it, write WebDriver driver = new FirefoxDriver();
and then let eclipse import the correct classes itself. Or you can do Cmd+Shift+O and it will import the right classes automatically.
Upvotes: 1
Reputation: 11
I found the solution : delete the module.java from your project
Upvotes: 1