getSystemBars, wrong values for navigationBar in Landscape mode in Android
See original GitHub issueThe problem
When using getSystemBars
in Android, we get the dimensions of two bars statusBar
and navigationBar
.
The statusBar
returns the same values for the height
and width
in both portrait
and landscape
modes, but, the navigationBar
in landscape
mode switches the height
and the width
.
I would expect the same behavior from both bars.
Environment
- Appium version (or git revision) that exhibits the issue:
1.9.1
and1.20.2
- Desktop OS/version used to run Appium:
Linux
- Node.js version (unless using Appium.app|exe):
16.1.0
- Npm or Yarn package manager:
Yarn
- Mobile platform/version under test:
Android
7.0
and10.0
- Real device or emulator/simulator:
emulator
- Appium CLI or Appium.app|exe: using SauceLabs emulator
Link to Appium logs
https://gist.github.com/SophieDePaula/c788c8bd8c62c04317acc4c6f383625b
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
BottomNavigationView overlap in landscape mode
I have discovered a very strange behavior today. This is my BottomNavigationView. <androidx.constraintlayout.widget.ConstraintLayout xmlns: ...
Read more >Appium - WebdriverIO
Get the name of the current Android activity. Appium command. More details can be found in the official protocol docs. Usage. driver.
Read more >Wrong navigation bar layout for second modal controller
Hi! There is a bug in iOS 13 that cause the navigation bar of the second controller presented modally to have a wrong...
Read more >System Bars - Appium
Edit this Doc Get System Bars. Retrieve visibility and bounds information of the status and navigation bars. Example Usage. Java; Python; Javascript; Ruby ......
Read more >Display content edge-to-edge in your app | Android Developers
xml file to ensure the color of the navigation bar and, optionally, to set the status bar as transparent and status bar content...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We simply parse the actual output of
adb shell dumpsys window windows
command there (mFrame
property ofStatusBar
andNavigationBar
entries). If this output contains the same width and height values then it must be an issue in Android OS itself.I see the same issue as in my description with Appium 2 latest beta (33). Appium logs: https://gist.github.com/SophieDePaula/64a94ae25f56ae84d934a81701cc6409