getRotation method

Class: ImageRotationPlatform: NightwatchLanguage: JavaScript SDK:

Retrieve the amount the image should be rotated by.


let value = rotationObj.getRotation();
rotationObj.rotation = value;
value = rotationObj.rotation;

Note that this feature is available as both a method and a property.


This method does not take any parameters.

Return value

Type: ImageRotationPlain
The amount by which the image should be rotated in degrees. A positive value indicates a clockwise rotation.

Type definitions

The legal values that an image may be rotated by. This may have the following values: -270|-180|-90|0|90|180|270