-
Notifications
You must be signed in to change notification settings - Fork 392
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
window/size sometimes returns an incorrect size #879
Comments
Could you share the full appium log as well? |
I did not use Appium, I only ran this project and tested window/size with Postman. I discovered this issue, and after debugging, I found that this change #834 caused the problem. |
I confirmed. That PR "fixed" the active device selection. Before the PR, If you'd like to get the entire window size, It would be safe to check with |
Btw, for example, when you activate an app that does not have resources for high resolution, the get window size would return the app's hight/width. it could be similar to the WDA in your comment. The size info itself is correct as WDA app. |
I see, it seems like adding an interface similar to device/size could be useful. |
Perhaps #881 is good for it. It returns screen scale info as well (https://appium.github.io/appium-xcuitest-driver/latest/reference/execute-methods/#mobile-devicescreeninfo) so adding the screen size info should be good to add. |
|
Simulator iPhone 15 Pro,wda 8.2.1
1 test wda
2 When I click on WDA again and the simulator is in a black screen state, the size I get is 320x480.
3 When I put WDA in the background, the size I get is 393x852.
The text was updated successfully, but these errors were encountered: