I've added all JARS configured chromedriver.

Why this error is coming "Error: Unable to initialize main class Practice.test1 Caused by: java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver" enter image description here


You have most probably not added the proper dependencies.

Reference: https://stackoverflow.com/a/61429938

I suggest looking into this response for the steps to do so with a dependency management tool, like Maven: https://stackoverflow.com/a/3167378

  • not able to figure out yet , installed all selenium java JARS still dont know what is missing
    – Divya
    Sep 4 at 9:57
  • I suggest trying using a proper dependency manager rather than doing it by hand. Sep 5 at 20:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.