-
-
Notifications
You must be signed in to change notification settings - Fork 768
Description
The problem
When I try to use Selenium 4 in my test case, the error java.lang.NoClassDefFoundError occurs: org / openqa / selenium / remote / http / W3CHttpCommandCodec.
Environment
- Appium app version that exhibits the issue: 1.15.1
*Appium version : 'io.appium', name: 'java-client', version: '7.3.0' - Selenium version : 'selenium-java', version: '4.0.0-alpha-3'
- Last Selenium version that did not exhibit the issue : 'selenium-java', version: '3.141.59'
- Desktop OS/version used to run Appium: Win 10
- Node.js version (unless using Appium.app|exe):
- Npm or Yarn package manager: Gradle 6.0.1
- Mobile platform/version under test:Android 8
- Real device or emulator/simulator:Emulator
Details
When I try to use Selenium 4 in my test case, the error java.lang.NoClassDefFoundError occurs: org / openqa / selenium / remote / http / W3CHttpCommandCodec.
When using earlier dependencies Selenium up to 4 such errors do not occur.
How can this be due to changes in the implementation of Selenium 4?!
Link to Appium logs
https://gist.github.com/77ripdrive/8007368e8e65bebfad8189a6564f2b9d
Code To Reproduce Issue [ Good To Have ]
https://github.com/77ripdrive/Mobile-Emulators
This is a working example with Selenium 3. To reproduce the error, you need to change the version of the dependency in the file build.gradle line 25 :
implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59'
to the dependency version :
implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '4.0.0-alpha-3'