appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.2k stars 755 forks source link

I want use Appium 2.0 with java client 6.1.0 #1992

Closed JYOTIPRAKASH225 closed 6 months ago

JYOTIPRAKASH225 commented 1 year ago

Do I have the most recent component updates?

Is the component officially supported by the Appium team?

Is there an existing issue for this?

Current Behavior

I want use Appium 2.0 with java client 6.1.0. While using AppiumDriverLocalService : I am getting URL_MASK = "http://%s:%d/wd/hub";, this doen't work with Appium 2.0 So I need a solution where I will be able to use AppiumDriverLocalService in Appium 2.0 with java client 6.1.0

Expected Behavior

So I need a solution where I will be able to use AppiumDriverLocalService in Appium 2.0 with java client 6.1.0

Minimal Reproducible Example

While using AppiumDriverLocalService : I am getting URL_MASK = "http://%s:%d/wd/hub";, this doen't work with Appium 2.0

Environment

Link to Appium Logs

No response

Further Information

No response

jlipps commented 1 year ago

Why can't you upgrade the java client version?

ashwithpoojary98 commented 12 months ago

@JYOTIPRAKASH225 please try below code new AppiumServiceBuilder() .usingAnyFreePort() .usingDriverExecutable(new File("/usr/local/bin/node")) .withLogFile(new File(System.getProperty("user.dir")+"appium.log")) .withArgument(GeneralServerFlag.BASEPATH, "/wd/hub") .withArgument(GeneralServerFlag.RELAXED_SECURITY) .build() .start();