-
-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Switch size retrieval to use the W3C window/rect endpoint #2538
Conversation
## [9.0.0](v8.4.3...v9.0.0) (2025-03-24) ### ⚠ BREAKING CHANGES * The following deprecated driver methods were removed: - getWindowSizeWeb - getWindowSizeNative ### Features * Switch size retrieval to use the W3C window/rect endpoint ([#2538](#2538)) ([cdc421f](cdc421f))
🎉 This PR is included in version 9.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi @mykola-mokhnach , could you please explain why these methods were removed? I'm using Appium together with RobotFramework's AppiumLibrary. One of the keywords in the library, Swipe By Percent, uses the methods self.get_window_width and get_window_height under the hood. Everything works fine with version 8, but breaks with the latest version.
|
That was moved to w3c webdriver endpoint. Btw, this change is between xcuitest driver and Appium/WDA mostly. Could you share the full appium server log? I guess you used old Appium/WDA (lower than Appium/WDA 9.3.0, which is not bundled in the xcuitest driver 9.0.0 https://www.npmjs.com/package/appium-xcuitest-driver/v/9.0.0?activeTab=code) with xcodebuild driver 9.0.0. https://github.com/appium/WebDriverAgent/blob/master/CHANGELOG.md#930-2025-03-21 |
Thanks! I am using Appium 2.17.1 Could you explain more about the connection between Appium, WDA, and the XCUITest driver? Is there any way how to check the version of WDA? I’ve noticed it works with Appium when I don’t use the Appium Device Farm plugin. I don't know the details of how it works inside the plugin. |
Appium XCUITest driver communicates with a client. Appium XCUITest driver communicates with Appium/WDA, which is running on a device to handle the app under test. Appium server log has info on what WDA is running on the device. I don't know about the plugin internal so if the issue occurs with the plugin only, I'd recommend reporting this behavior to the plugin author to update them with the latest XCUITest driver and its deps. |
I’ve fixed it. Device Farm requires the WDA to be signed, and for this purpose, the authors provided the following command:
However, this build might lead to WDA becoming outdated, as I’ve just found out. Before:
After:
So, you were absolutely right — thanks a lot for your advice! |
BREAKING CHANGE: The following deprecated driver methods were removed: