MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / orientation

Method orientation

py/selenium/webdriver/remote/webdriver.py:1120–1126  ·  view source on GitHub ↗

Gets the current orientation of the device. Example: `orientation = driver.orientation`

(self)

Source from the content-addressed store, hash-verified

1118
1119 @property
1120 def orientation(self) -> dict:
1121 """Gets the current orientation of the device.
1122
1123 Example:
1124 `orientation = driver.orientation`
1125 """
1126 return self.execute(Command.GET_SCREEN_ORIENTATION)["value"]
1127
1128 @orientation.setter
1129 def orientation(self, value) -> None:

Callers 1

WebDriverClass · 0.80

Calls 2

executeMethod · 0.95
WebDriverExceptionClass · 0.90

Tested by

no test coverage detected