Page tree
Skip to end of metadata
Go to start of metadata

Last updated: May 28, 2019 11:28

Purpose

Rotates the device to either landscape or portrait or its next state.

The Next parameter value in operation enables a 90° rotation.

Usage

browser.perfRotateDevice(by, restValue)

Parameters

NameTypePossible ValuesDescription
byStringstate | operation

restValue

String

portrait | landscape

reset | next


The device screen rotation state.
Portrait - long side of screen is vertical
Landscape - long side of screen is horizontal

or

The state operation to perform on the device.
Reset - rotate the device to its default state
Next - rotate the device to its next state

Return Value

None

Exceptions

None

Examples

this.Then(/^I rotate the device to landscape$/, function () {
    browser.perfRotateDevice("state", "landscape")
})