MCPcopy
hub / github.com/appium/python-client / orientation

Method orientation

appium/webdriver/webdriver.py:407–417  ·  view source on GitHub ↗

Gets the current orientation of the device Example: .. code-block:: python orientation = driver.orientation

(self)

Source from the content-addressed store, hash-verified

405 # MJSONWP for Selenium v4
406 @property # type: ignore[override]
407 def orientation(self) -> str:
408 """
409 Gets the current orientation of the device
410
411 Example:
412
413 .. code-block:: python
414
415 orientation = driver.orientation
416 """
417 return self.execute(Command.GET_SCREEN_ORIENTATION)['value']
418
419 # MJSONWP for Selenium v4
420 @orientation.setter

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected