Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.NoClassDefFoundError: org/openqa/selenium/remote/SessionNotFoundException

I am using Firefox 45.0 and Dependency added in pom.xml is selenium-firefox-driver 2.53.0.

java.lang.NoClassDefFoundError: org/openqa/selenium/remote/SessionNotFoundException
    at TestFIles_MDM.Test_Authn.setup(Test_Authn.java:27)

Error is coming for both Firefox and Chrome.

How can I resolve it, it was working last week.

like image 564
rich Avatar asked Apr 18 '16 15:04

rich


2 Answers

I think you are missing this dependency in pom.xml:

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

Check Selenium docs about Maven dependencies.

like image 190
ytrewq Avatar answered Sep 28 '22 10:09

ytrewq


Voila, It's worked for me.Just updated the selenium-java dependency in pom.xml

<!--  Selenium java-jar dependency -->

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

Or here is the link to get the updated version- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java

like image 43
Shivam Avatar answered Sep 28 '22 09:09

Shivam