'Calculate DPs using density and screenSize of iOS devices
Problem: Iam trying to calculate DP using the following formula.
dp = (width * 160) / density;
Iam using this formula since i don't know how can i have the DP value directly using Appium framework.
What i already know: Using getWindowSize() and getDisplayDensity() only works for android devices.
My question is: It's possible to know the resolution and the density using Appium for iOS devices?
BTW Iam using javascript.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|