Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
458 views
by The go-to Tester (360 points)
I have setup appium on mac environment and created sample test scripts.While ruunning scripts, I am getting below error message:

java.lang.NoClassDefFoundError: org/openqa/selenium/internal/HasIdentity

I need belp on same. what jar file I am missing for that.

Thanks

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer

There are possibilities.

If you are using maven to build dependencies, there are possibilities that one of your JAR file is not download. So, try to remove .m2 folder and build your dependencies again.

Also, in your pom.xml file, remove below lines.

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>2.42.2</version>
<scope>test</scope>
</dependency>
As appium 1.3.0 is dependent of Selenium 2.46.0.

If you have added your libraries manually, you should try verifying if you have missed any library to be added.

 

Hope that helps!

 

by The go-to Tester (360 points)
Thanks its work


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...