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

Method assert_extension_exists

appium/webdriver/webdriver.py:439–456  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 15

lockMethod · 0.45
unlockMethod · 0.45
is_lockedMethod · 0.45
shakeMethod · 0.45
finger_printMethod · 0.45
hide_keyboardMethod · 0.45
is_keyboard_shownMethod · 0.45
press_keycodeMethod · 0.45
long_press_keycodeMethod · 0.45
device_timeMethod · 0.45
get_device_timeMethod · 0.45
pull_fileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected