-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Upgrade androidx.test.uiautomator:uiautomator to 2.3.0 to fix issue #398 #490
Comments
feel free to open a PR. you need to fork the current repository in order to do that. |
Also it's an alpha version. Do you think it is a good idea to include it into the release before it stabilizes? |
Oh indeed it's still alpha01, probably it's better to wait for official stabilised release of 2.3.0 after several months, but I'll try and test if the fix works in a separate fork. (we're still using appium 1 so I hope it would easy to upgrade this library in appium 1 in our fork😃) |
For info I just validated the fix with the new Note : I had a small issue in code when I do the upgrade, and I opened an issue here #491 |
@KazuCocoa @xiaoPierre Any updates with it? Maybe we can upgrade to 2.3.0 beta? @xiaoPierre mb can u share how u install locally uiautomator 2.3.0 alpha/beta? |
It looks like the lib changed to beta recently https://developer.android.com/jetpack/androidx/releases/test-uiautomator |
Can u update lib in project to 2.3.0 beta? |
Lets create a PR and see how the CI results look like with this beta |
Basically, we've been waiting for the stable version release. You can manually modify this branch directly and create the server as https://github.com/appium/appium-uiautomator2-server?tab=readme-ov-file#building-project . Then once you replace existing apk in appium-uiautomator2-server/index.js Line 4 in 50066df
|
@KazuCocoa @mykola-mokhnach UiAutomator devs depredecate getDefaultDisplay method |
Do you mean https://developer.android.com/reference/android/view/WindowManager#getDefaultDisplay() ?
https://developer.android.com/reference/android/content/Context#getDisplay() appium-uiautomator2-server/app/src/main/java/io/appium/uiautomator2/core/UiAutomatorBridge.java Line 57 in 1a1d473
Updated |
@KazuCocoa |
Perhaps #585 change helps. We haven't verified the latest deps version, so possibly the version has compatibility issues. |
For your case, it looks like the latest 2.3.0-beta01 package dropped the |
#588 is a fix for the beta01 |
@KazuCocoa Thanks, its working, but now when i trying to click on element, has trouble like this E selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot create UiObject2 instance with 'null' selector
E Stacktrace:
E io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: Cannot create UiObject2 instance with 'null' selector Any thoughts? |
No, just we need to test well and fix them. |
@KazuCocoa The same trouble on 2.3.0-alpha01 |
Then we should test the library carefully and update code. I guess we should update the base sdk version first, and wait for upcoming beta to see if it is intended changes in the lib or possible issue in the version. |
@KazuCocoa Okay, please keep me posted, because fixing the screen size is very important for me (and judging by the many questions on various resources, not only for me) |
Sure, then, please create a new issue in the main appium repository so that we can track issues easier for future investigation. |
appium/appium#19597 will be the primary (instead of this issue) place to link GitHub issues, but as #490 (comment), it would be helpful to create separate issue for different behavior. Then I'll keep linking them to the primary issue' |
Hello,
I ran into the same issue as #398, and I see that the issue submitted to google has been resolved in version 2.3.0 (here's the release notes).
Could we upgrade
androidx.test.uiautomator:uiautomator
to2.3.0
to fix this long-lasting issue ? (It seems that write permission is not open for the repository..) Thanks in advance !cc @mykola-mokhnach @KazuCocoa as you followed similar issues before.
[update by KazuCocoa]
Moved to appium/appium#19597
The text was updated successfully, but these errors were encountered: