massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / selenium / selenium / webdriver / firefox / webdriver.pyi
1 from collections.abc import Generator
2 from typing import Any
3
4 from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
5
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
13
14 basestring = str
15
16 class WebDriver(RemoteWebDriver):
17     NATIVE_EVENTS_ALLOWED: Any
18     CONTEXT_CHROME: str
19     CONTEXT_CONTENT: str
20     binary: Any
21     profile: Any
22     service: Any
23     def __init__(
24         self,
25         firefox_profile: Any | None = ...,
26         firefox_binary: Any | None = ...,
27         timeout: int = ...,
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 = ...,
38     ) -> None: ...
39     def quit(self) -> None: ...
40     @property
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: ...