Verifies if the given extension is not present in the list of absent extensions for the given driver instance. This API is designed for private usage. Args: ext_name: extension name Returns: self instance for chaining Raises
(self, ext_name: str)
| 437 | raise WebDriverException("You can only set the orientation to 'LANDSCAPE' and 'PORTRAIT'") |
| 438 | |
| 439 | def assert_extension_exists(self, ext_name: str) -> Self: |
| 440 | """ |
| 441 | Verifies if the given extension is not present in the list of absent extensions |
| 442 | for the given driver instance. |
| 443 | This API is designed for private usage. |
| 444 | |
| 445 | Args: |
| 446 | ext_name: extension name |
| 447 | |
| 448 | Returns: |
| 449 | self instance for chaining |
| 450 | |
| 451 | Raises: |
| 452 | UnknownMethodException: If the extension has been marked as absent once |
| 453 | """ |
| 454 | if ext_name in self._absent_extensions: |
| 455 | raise UnknownMethodException() |
| 456 | return self |
| 457 | |
| 458 | def mark_extension_absence(self, ext_name: str) -> Self: |
| 459 | """ |
no outgoing calls
no test coverage detected