Saltar al contenido principal

getSystemBars

Retrieve visibility and bounds information of the status and navigation bars.

Note: Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the mobile: execute method.

Usage
browser.getSystemBars()
Example
getSystemBars.js
it('should get system bars info', async () => {
const bars = await browser.getSystemBars()
console.log('Status bar:', bars.statusBar)
console.log('Navigation bar:', bars.navigationBar)
})
Support

Support for android

nota

Refer to the official Appium driver documentation to see which driver versions support this command.

Welcome! How can I help?

WebdriverIO AI Copilot