question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getSystemBars, wrong values for navigationBar in Landscape mode in Android

See original GitHub issue

The 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 and 1.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 and 10.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:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Apr 28, 2022

We simply parse the actual output of adb shell dumpsys window windows command there (mFrame property of StatusBar and NavigationBar entries). If this output contains the same width and height values then it must be an issue in Android OS itself.

0reactions
SophieDePaulacommented, Apr 28, 2022

I see the same issue as in my description with Appium 2 latest beta (33). Appium logs: https://gist.github.com/SophieDePaula/64a94ae25f56ae84d934a81701cc6409

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found