Package org.openqa.selenium
Interface Rotatable
-
public interface RotatableRepresents rotation of the browser view for orientation-sensitive devices. When using this with a real device, the device should not be moved so that the built-in sensors do not interfere.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScreenOrientationgetOrientation()voidrotate(DeviceRotation rotation)Changes the rotation of the browser window.voidrotate(ScreenOrientation orientation)Changes the orientation of the browser window.DeviceRotationrotation()
-
-
-
Method Detail
-
rotate
void rotate(ScreenOrientation orientation)
Changes the orientation of the browser window.- Parameters:
orientation- the desired screen orientation
-
getOrientation
ScreenOrientation getOrientation()
- Returns:
- the current screen orientation of the browser
-
rotate
void rotate(DeviceRotation rotation)
Changes the rotation of the browser window.
-
rotation
DeviceRotation rotation()
- Returns:
- DeviceOrientation describing the current screen rotation of the browser window
-
-