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

Method delete_extensions

appium/webdriver/webdriver.py:291–297  ·  view source on GitHub ↗

Delete extensions added in the class with 'setattr

(self)

Source from the content-addressed store, hash-verified

289 ...
290
291 def delete_extensions(self) -> None:
292 """Delete extensions added in the class with 'setattr'"""
293 for extension in self._extensions:
294 instance = extension(self.execute)
295 method_name = instance.method_name()
296 if hasattr(WebDriver, method_name):
297 delattr(WebDriver, method_name)
298
299 def _update_command_executor(self, keep_alive: bool) -> None:
300 """Update command executor following directConnect feature"""

Callers 3

test_add_commandMethod · 0.80
test_add_command_bodyMethod · 0.80

Calls 1

method_nameMethod · 0.45

Tested by 3

test_add_commandMethod · 0.64
test_add_command_bodyMethod · 0.64