Appium-Set Orientation(设置定位)
Set Orientation
- Example Usage
- Support
- Appium Server
- Appium Clients
- HTTP API Specifications
- Endpoint
- URL Parameters
- JSON Parameters
- Response
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
还没有评论,来说两句吧...