0

I'm trying to write a selenium code in java using eclipse. However, the IDE shows that "The org package is not accessible", as shown below: enter image description here

Parzival
  • 2,051
  • 4
  • 14
  • 32
aya adel
  • 1
  • 1
  • Eclipse should be suggesting a quick fix for this issue in the details of the error message. See also https://stackoverflow.com/questions/62056713/error-the-package-org-apache-commons-is-not-accessible –  Apr 08 '21 at 10:38

1 Answers1

0

Do you use a Build tool Like Maven or Gradle.

Instead of using a physical path you may use build tool like Maven with below dependency

<dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.141.59</version>
    </dependency>

if using gradle then below dependency

compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59'
Sonali Das
  • 943
  • 1
  • 7
  • 24