Gets the current orientation of the device Example: .. code-block:: python orientation = driver.orientation
(self)
| 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 |