Muthu Akilan
Muthu Akilan

Reputation: 5

org.openqa.selenium.webdriver is not accessible error using selenium?

I installed latest java 13.0 and latest Selenium version, got error "org.openqa.selenium.webdriver is not accessible" so changed the compliance level to 1.8 from 13.

I'm getting the error shown in the picture:

Im getting the error shown in the picture

Upvotes: 0

Views: 5484

Answers (1)

undetected Selenium
undetected Selenium

Reputation: 193108

This error message...

org.openqa.selenium.webdriver is not accessible

...implies that the org.openqa.selenium.webdriver was not accessible by your program.


As per the snapshot you shared, you shouldn't keep the class name with in the program as Java as it is a reserved word.

Solution

You need to take either of the following steps:

  • Either change the name of the class from Java to something else, e.g. testJava
  • Or you may have to delete this program all together and create a new class, e.g. testJava

tl; dr

Does Selenium v3.141 support Java 13?

Upvotes: 0

Related Questions