1 from collections.abc import Generator
4 from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
6 from .extension_connection import ExtensionConnection as ExtensionConnection
7 from .firefox_binary import FirefoxBinary as FirefoxBinary
8 from .firefox_profile import FirefoxProfile as FirefoxProfile
9 from .options import Options as Options
10 from .remote_connection import FirefoxRemoteConnection as FirefoxRemoteConnection
11 from .service import Service as Service
12 from .webelement import FirefoxWebElement as FirefoxWebElement
16 class WebDriver(RemoteWebDriver):
17 NATIVE_EVENTS_ALLOWED: Any
25 firefox_profile: Any | None = ...,
26 firefox_binary: Any | None = ...,
28 capabilities: Any | None = ...,
29 proxy: Any | None = ...,
30 executable_path: str = ...,
31 options: Any | None = ...,
32 service_log_path: str = ...,
33 firefox_options: Any | None = ...,
34 service_args: Any | None = ...,
35 desired_capabilities: Any | None = ...,
36 log_path: Any | None = ...,
37 keep_alive: bool = ...,
39 def quit(self) -> None: ...
41 def firefox_profile(self): ...
42 def set_context(self, context) -> None: ...
43 def context(self, context) -> Generator[None, None, None]: ...
44 def install_addon(self, path, temporary: Any | None = ...): ...
45 def uninstall_addon(self, identifier) -> None: ...