Applitools
Docs
Open Primary Menu
Close Primary Menu
Overview
Concepts
SDK
Test manager
Integrations
Admin
Open search panel
Get Started
None
Filter:
Close Search
You are here:
None
Filter:
getDevicePixelRatio method
Class:
Eyes
Platform:
WebdriverIO 5
Language:
JavaScript
SDK:
Latest
other languages
Use this method to retrieve the screen pixel ratio.
Syntax
let value = eyes.getDevicePixelRatio();
Parameters
This method does not take any parameters.
Return value
Type:
number