Set Orientation
Set the current device/browser orientation
Example Usage
Java | driver.rotate(ScreenOrientation.LANDSCAPE); |
Python | driver.orientation ="LANDSCAPE" |
Javascript | // webdriver.io example driver.setOrientation( "LANDSCAPE" );// wd example await driver.setOrientation( 'LANDSCAPE' ); |
Ruby | # ruby_lib example rotation = :landscape # ruby_lib_core example @driver.rotation = :landscape |
C# | driver.Orientation = ScreenOrientation.Landscape; |
PHP | // TODO PHP sample |
Support
Appium Server
Appium Clients
HTTP API Specifications
Endpoint
POST /session/:session_id/orientation
URL Parameters
name | description |
---|---|
session_id | ID of the session to route the command to |
JSON Parameters
name | type | description |
---|---|---|
orientation | string | The desired orientation - {LANDSCAPE |
Response
Null