Skip to main content
Rotates the device to portrait or landscape. The simplified form takes the orientation as a single string.

Parameters

ParameterTypeRequiredDescription
orientationportrait | landscapeYesTarget orientation.
saveAsstringNoVariable to store this step’s return value on env.<name>.
retriesnumberNoTimes to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

Orientation as a single string.
- rotate: landscape

Examples

- rotate:
    orientation: portrait