1

When I am trying to run a test on Mobile Browser in java. I am getting the following error

java.lang.NoClassDefFoundError: org/openqa/selenium/remote/HttpVerb
    at io.selendroid.SelendroidCommandExecutor$1.<init>(SelendroidCommandExecutor.java:30)
    at io.selendroid.SelendroidCommandExecutor.<clinit>(SelendroidCommandExecutor.java:27)

Does anyone know how to solve this?

1 Answer 1

1

HttpVerb class has been deprecated. Here is the commit

I have changed from

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

to

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

After I downgraded selenium-java version from 2.48 to 2.45. My error gets resolved.

But I don't know what is the permanent solution when we upgraded to latest selenium-java

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.