முக்கிய உள்ளடக்கத்திற்குச் செல்லவும்

getDisplayDensity

Get the display density from the device.

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

Usage
browser.getDisplayDensity()
Example
getDisplayDensity.js
it('should get the display density', async () => {
const density = await browser.getDisplayDensity()
console.log('Display density:', density)
})
Support

Support for android

குறிப்பு

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

Welcome! How can I help?

WebdriverIO AI Copilot