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

Method orientation

py/selenium/webdriver/remote/webdriver.py:1227–1233  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1225
1226 @property
1227 def orientation(self) -> dict:
1228 """Gets the current orientation of the device.
1229
1230 Example:
1231 `orientation = driver.orientation`
1232 """
1233 return self.execute(Command.GET_SCREEN_ORIENTATION)["value"]
1234
1235 @orientation.setter
1236 def orientation(self, value) -> None:

Callers 1

WebDriverClass · 0.80

Calls 2

executeMethod · 0.95
WebDriverExceptionClass · 0.90

Tested by

no test coverage detected