appium / java-client

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

Appium compatibility issue: Need appium version that is compatible with Selenium 4.18.1 #2174

Open vjramt opened 6 months ago

vjramt commented 6 months 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

Selenium 4.18.1 does not work with Appium 8.5.1 (tried with all Appium versions above till 9.2.2 latest) or any versions below. Test execution fails

Previous version Selenium 4.13.0 works fine with Appium 8.5.1, upgrading Selenium to next level doesn't work with any of Appium versions.

Is there a compatible version of Appium that works with 4.18.1, or there are any alternative versions of appium that can be used ?

Expected Behavior

Selenium 4.18.1 required a suitable Appium version that's compatible

Minimal Reproducible Example

17 17 4.18.1 9.2.0 7.7.0 2.15.2 ### Environment - Operating system: Windows10 - Appium server version (output of `appium --version`): 9.2.0 - Selenium version: 4.18.1 - Appium driver(s) and their version(s): - Appium plugin(s) and their version(s): - Node.js version (output of `node --version`): - `npm` version (output of `npm --version`): - Last component(s) version which did _not_ exhibit the problem: - Platform and version under test: - Real device or emulator/simulator: ### Link to Appium Logs _No response_ ### Further Information _No response_
KazuCocoa commented 6 months ago

Perhaps https://github.com/appium/java-client?tab=readme-ov-file#compatibility-matrix ?

vjramt commented 6 months ago

I have tried https://github.com/appium/java-client?tab=readme-ov-file#compatibility-matrix with the versions mentioned. Selenium 4.13.0 works fine with Appium 8.5.1. Latest version of Selenium doesn't have any compatible Appium versions

vjramt commented 6 months ago

@KazuCocoa - Let me know if you have any stable appium version that works with Selenium 4.18.1 Let me know if you need any additional details ?

KazuCocoa commented 6 months ago

I assume you're saying Appium Java Client version from the description. Appium server log as you said "not working" may help to help.

vjramt commented 6 months ago

Attached screenshot for more error details. The same test runs fine with Selenium 4.13.0 works fine with Appium 8.5.1.

KazuCocoa commented 6 months ago

It looks like your configured WebDriver URL was invalid..? So the new session request didn't reach the appium server. Or the concrete error message may need to scroll down more.

I assume you're saying Java client, so Appium server on your local itself is the same. Then should the WebDriver URL be http://0.0.0.0:4723? e.g.

[Appium] Welcome to Appium v2.5.4 (REV 552db40622bb7a82d9c6d67d2d6bcf3694b47e30)
[Appium] The autodetected Appium home path: /Users/kazu/.appium
[Appium] Attempting to load driver uiautomator2...
...
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
[Appium]    http://127.0.0.1:4723/ (only accessible from the same host)
[Appium] Available drivers:
[Appium]   - uiautomator2@3.5.1 (automationName 'UiAutomator2')
[Appium]   - xcuitest@7.15.3 (automationName 'XCUITest')
...
askherconsulting commented 5 months ago

I am also seeing this issue. Can you think of any reason why the same test would pass with an older version of selenium but not with the latest version?

KazuCocoa commented 5 months ago

Please share the full Appium server log and client version combination of Appium/Selenium to take a look at possible reasons https://github.com/appium/java-client?tab=readme-ov-file#compatibility-matrix