DevicePixelRatio Class
Device-Pixel-Ratio object
Constructor
Item Index
Methods
_determineDevicePixelRatio
(
Number
private
-
[options]
Determines the device-pixel-ratio of the browser.
Parameters:
-
[options]
Object optional-
[horizontalPadding=0]
Int optionalPadding of the document
-
Returns:
_execute
(
private
-
script
-
[args]
Executes a script in the browser and returns the result.
This is a convenience method for accessing the execute method.
Returns:
:
_requestJSON
(
private
-
method
-
path
-
[body]
Performs a context dependent JSON request for the current session. The result is parsed for errors.
Returns:
:
getDevicePixelRatio
(
Number
-
[options]
Gets the device-pixel-ratio of the browser. If this info is not available yet, then it will determine it. It will then be cached for each driver instance, determining this only once per instance.
Note:
horizontalPadding
is any element that extents horizontally
outside of the document, i.e. negative absolute position.
Parameters:
-
[options]
Object optional-
[horizontalPadding=0]
Int optionalPadding of the document
-