Delete extensions added in the class with 'setattr
(self)
| 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""" |