0

While Executing the APPIUM code on the local system running fine but when Executing Through Jenkins Job It giving the Error.

It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible

I've tried This Link Error : impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found

Tahir Akhlaq
  • 1
  • 1
  • 2

1 Answers1

0

Most probably you're suffering from a form of a Jar Hell, to wit there is a dependencies conflict due to using Selenium Java Client libraries which are not compatible with the one which Appium has as the transitive dependencies.

enter image description here

If you're managing dependencies manually - make sure that your project classpath matches the above picture, however it's better to go for a dependency management solution like Maven or Gradle and make sure to have only Appium declared as an explicit dependency for your project - and the issue should go away.

Check out Appium - Code Examples - Java for comprehensive information and a sample project you can use as a basis or reference.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133