getDisplayDensity
Get the display density from the device.
Usage​
await browser.getDisplayDensity()
Example​
getDisplayDensity.js
it('should get the display density', async () => {
const density = await browser.getDisplayDensity()
console.log('Display density:', density)
})
Support​
Supported platforms: Android
note
Refer to the official Appium driver documentation to see which driver versions support this command.