From 9b306c33679cdaa8cdc96c9463bceca88634e54b Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 16 Sep 2022 15:39:14 +0200 Subject: [PATCH] Remove selenium stubs (#8753) Closes: #7381 --- pyrightconfig.stricter.json | 1 - stubs/selenium/@tests/stubtest_allowlist.txt | 1 - stubs/selenium/METADATA.toml | 2 - stubs/selenium/selenium/__init__.pyi | 0 stubs/selenium/selenium/common/__init__.pyi | 1 - stubs/selenium/selenium/common/exceptions.pyi | 49 ------ .../selenium/selenium/webdriver/__init__.pyi | 45 ------ .../selenium/webdriver/android/__init__.pyi | 0 .../selenium/webdriver/android/webdriver.pyi | 5 - .../webdriver/blackberry/__init__.pyi | 0 .../webdriver/blackberry/webdriver.pyi | 11 -- .../selenium/webdriver/chrome/__init__.pyi | 0 .../selenium/webdriver/chrome/options.pyi | 30 ---- .../webdriver/chrome/remote_connection.pyi | 4 - .../selenium/webdriver/chrome/service.pyi | 10 -- .../selenium/webdriver/chrome/webdriver.pyi | 25 ---- .../selenium/webdriver/common/__init__.pyi | 0 .../webdriver/common/action_chains.pyi | 29 ---- .../webdriver/common/actions/__init__.pyi | 0 .../common/actions/action_builder.pyi | 27 ---- .../webdriver/common/actions/input_device.pyi | 9 -- .../webdriver/common/actions/interaction.pyi | 21 --- .../webdriver/common/actions/key_actions.pyi | 13 -- .../webdriver/common/actions/key_input.pyi | 20 --- .../webdriver/common/actions/mouse_button.pyi | 4 - .../common/actions/pointer_actions.pyi | 23 --- .../common/actions/pointer_input.pyi | 17 --- .../selenium/webdriver/common/alert.pyi | 10 -- .../selenium/selenium/webdriver/common/by.pyi | 9 -- .../webdriver/common/desired_capabilities.pyi | 16 -- .../webdriver/common/html5/__init__.pyi | 0 .../common/html5/application_cache.pyi | 13 -- .../selenium/webdriver/common/keys.pyi | 67 --------- .../selenium/webdriver/common/proxy.pyi | 70 --------- .../selenium/webdriver/common/service.pyi | 21 --- .../webdriver/common/touch_actions.pyi | 15 -- .../selenium/webdriver/common/utils.pyi | 12 -- .../selenium/webdriver/edge/__init__.pyi | 0 .../selenium/webdriver/edge/options.pyi | 10 -- .../selenium/webdriver/edge/service.pyi | 8 - .../selenium/webdriver/edge/webdriver.pyi | 18 --- .../selenium/webdriver/firefox/__init__.pyi | 0 .../firefox/extension_connection.pyi | 20 --- .../webdriver/firefox/firefox_binary.pyi | 11 -- .../webdriver/firefox/firefox_profile.pyi | 41 ----- .../selenium/webdriver/firefox/options.pyi | 46 ------ .../webdriver/firefox/remote_connection.pyi | 4 - .../selenium/webdriver/firefox/service.pyi | 11 -- .../selenium/webdriver/firefox/webdriver.pyi | 45 ------ .../selenium/webdriver/firefox/webelement.pyi | 6 - .../selenium/webdriver/ie/__init__.pyi | 0 .../selenium/webdriver/ie/options.pyi | 95 ------------ .../selenium/webdriver/ie/service.pyi | 10 -- .../selenium/webdriver/ie/webdriver.pyi | 34 ----- .../selenium/webdriver/opera/__init__.pyi | 0 .../selenium/webdriver/opera/options.pyi | 25 ---- .../selenium/webdriver/opera/webdriver.pyi | 32 ---- .../selenium/webdriver/phantomjs/__init__.pyi | 0 .../selenium/webdriver/phantomjs/service.pyi | 11 -- .../webdriver/phantomjs/webdriver.pyi | 17 --- .../selenium/webdriver/remote/__init__.pyi | 0 .../selenium/webdriver/remote/command.pyi | 126 ---------------- .../webdriver/remote/errorhandler.pyi | 74 --------- .../webdriver/remote/file_detector.pyi | 13 -- .../selenium/webdriver/remote/mobile.pyi | 28 ---- .../webdriver/remote/remote_connection.pyi | 19 --- .../selenium/webdriver/remote/switch_to.pyi | 22 --- .../selenium/webdriver/remote/utils.pyi | 8 - .../selenium/webdriver/remote/webdriver.pyi | 126 ---------------- .../selenium/webdriver/remote/webelement.pyi | 64 -------- .../selenium/webdriver/safari/__init__.pyi | 0 .../selenium/webdriver/safari/permissions.pyi | 2 - .../webdriver/safari/remote_connection.pyi | 4 - .../selenium/webdriver/safari/service.pyi | 11 -- .../selenium/webdriver/safari/webdriver.pyi | 25 ---- .../selenium/webdriver/support/__init__.pyi | 0 .../support/abstract_event_listener.pyi | 20 --- .../selenium/webdriver/support/color.pyi | 31 ---- .../support/event_firing_webdriver.pyi | 68 --------- .../selenium/webdriver/support/events.pyi | 2 - .../webdriver/support/expected_conditions.pyi | 140 ------------------ .../selenium/webdriver/support/select.pyi | 24 --- .../selenium/webdriver/support/ui.pyi | 2 - .../selenium/webdriver/support/wait.pyi | 11 -- .../selenium/webdriver/webkitgtk/__init__.pyi | 0 .../selenium/webdriver/webkitgtk/options.pyi | 18 --- .../selenium/webdriver/webkitgtk/service.pyi | 8 - .../webdriver/webkitgtk/webdriver.pyi | 18 --- 88 files changed, 1888 deletions(-) delete mode 100644 stubs/selenium/@tests/stubtest_allowlist.txt delete mode 100644 stubs/selenium/METADATA.toml delete mode 100644 stubs/selenium/selenium/__init__.pyi delete mode 100644 stubs/selenium/selenium/common/__init__.pyi delete mode 100644 stubs/selenium/selenium/common/exceptions.pyi delete mode 100644 stubs/selenium/selenium/webdriver/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/android/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/android/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/blackberry/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/blackberry/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/chrome/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/chrome/options.pyi delete mode 100644 stubs/selenium/selenium/webdriver/chrome/remote_connection.pyi delete mode 100644 stubs/selenium/selenium/webdriver/chrome/service.pyi delete mode 100644 stubs/selenium/selenium/webdriver/chrome/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/action_chains.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/actions/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/actions/action_builder.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/actions/input_device.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/actions/interaction.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/actions/key_actions.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/actions/key_input.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/actions/mouse_button.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/actions/pointer_actions.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/actions/pointer_input.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/alert.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/by.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/desired_capabilities.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/html5/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/html5/application_cache.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/keys.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/proxy.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/service.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/touch_actions.pyi delete mode 100644 stubs/selenium/selenium/webdriver/common/utils.pyi delete mode 100644 stubs/selenium/selenium/webdriver/edge/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/edge/options.pyi delete mode 100644 stubs/selenium/selenium/webdriver/edge/service.pyi delete mode 100644 stubs/selenium/selenium/webdriver/edge/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/firefox/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/firefox/extension_connection.pyi delete mode 100644 stubs/selenium/selenium/webdriver/firefox/firefox_binary.pyi delete mode 100644 stubs/selenium/selenium/webdriver/firefox/firefox_profile.pyi delete mode 100644 stubs/selenium/selenium/webdriver/firefox/options.pyi delete mode 100644 stubs/selenium/selenium/webdriver/firefox/remote_connection.pyi delete mode 100644 stubs/selenium/selenium/webdriver/firefox/service.pyi delete mode 100644 stubs/selenium/selenium/webdriver/firefox/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/firefox/webelement.pyi delete mode 100644 stubs/selenium/selenium/webdriver/ie/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/ie/options.pyi delete mode 100644 stubs/selenium/selenium/webdriver/ie/service.pyi delete mode 100644 stubs/selenium/selenium/webdriver/ie/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/opera/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/opera/options.pyi delete mode 100644 stubs/selenium/selenium/webdriver/opera/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/phantomjs/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/phantomjs/service.pyi delete mode 100644 stubs/selenium/selenium/webdriver/phantomjs/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/command.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/errorhandler.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/file_detector.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/mobile.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/remote_connection.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/switch_to.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/utils.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/remote/webelement.pyi delete mode 100644 stubs/selenium/selenium/webdriver/safari/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/safari/permissions.pyi delete mode 100644 stubs/selenium/selenium/webdriver/safari/remote_connection.pyi delete mode 100644 stubs/selenium/selenium/webdriver/safari/service.pyi delete mode 100644 stubs/selenium/selenium/webdriver/safari/webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/support/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/support/abstract_event_listener.pyi delete mode 100644 stubs/selenium/selenium/webdriver/support/color.pyi delete mode 100644 stubs/selenium/selenium/webdriver/support/event_firing_webdriver.pyi delete mode 100644 stubs/selenium/selenium/webdriver/support/events.pyi delete mode 100644 stubs/selenium/selenium/webdriver/support/expected_conditions.pyi delete mode 100644 stubs/selenium/selenium/webdriver/support/select.pyi delete mode 100644 stubs/selenium/selenium/webdriver/support/ui.pyi delete mode 100644 stubs/selenium/selenium/webdriver/support/wait.pyi delete mode 100644 stubs/selenium/selenium/webdriver/webkitgtk/__init__.pyi delete mode 100644 stubs/selenium/selenium/webdriver/webkitgtk/options.pyi delete mode 100644 stubs/selenium/selenium/webdriver/webkitgtk/service.pyi delete mode 100644 stubs/selenium/selenium/webdriver/webkitgtk/webdriver.pyi diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index 3f7938823bc2..f74d6db311de 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -79,7 +79,6 @@ "stubs/PyYAML", "stubs/redis", "stubs/requests", - "stubs/selenium", "stubs/Send2Trash", "stubs/setuptools", "stubs/simplejson", diff --git a/stubs/selenium/@tests/stubtest_allowlist.txt b/stubs/selenium/@tests/stubtest_allowlist.txt deleted file mode 100644 index f9d836a8539f..000000000000 --- a/stubs/selenium/@tests/stubtest_allowlist.txt +++ /dev/null @@ -1 +0,0 @@ -selenium.webdriver.__all__ # intentional diff --git a/stubs/selenium/METADATA.toml b/stubs/selenium/METADATA.toml deleted file mode 100644 index 9d7ee7b9ceec..000000000000 --- a/stubs/selenium/METADATA.toml +++ /dev/null @@ -1,2 +0,0 @@ -version = "3.141.*" -obsolete_since = "4.1.2" diff --git a/stubs/selenium/selenium/__init__.pyi b/stubs/selenium/selenium/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/common/__init__.pyi b/stubs/selenium/selenium/common/__init__.pyi deleted file mode 100644 index baafbaf5476e..000000000000 --- a/stubs/selenium/selenium/common/__init__.pyi +++ /dev/null @@ -1 +0,0 @@ -from . import exceptions as exceptions diff --git a/stubs/selenium/selenium/common/exceptions.pyi b/stubs/selenium/selenium/common/exceptions.pyi deleted file mode 100644 index f3f9f6dc9514..000000000000 --- a/stubs/selenium/selenium/common/exceptions.pyi +++ /dev/null @@ -1,49 +0,0 @@ -from typing import Any - -class WebDriverException(Exception): - msg: Any - screen: Any - stacktrace: Any - def __init__(self, msg: Any | None = ..., screen: Any | None = ..., stacktrace: Any | None = ...) -> None: ... - -class ErrorInResponseException(WebDriverException): - response: Any - def __init__(self, response, msg) -> None: ... - -class InvalidSwitchToTargetException(WebDriverException): ... -class NoSuchFrameException(InvalidSwitchToTargetException): ... -class NoSuchWindowException(InvalidSwitchToTargetException): ... -class NoSuchElementException(WebDriverException): ... -class NoSuchAttributeException(WebDriverException): ... -class StaleElementReferenceException(WebDriverException): ... -class InvalidElementStateException(WebDriverException): ... - -class UnexpectedAlertPresentException(WebDriverException): - alert_text: Any - def __init__( - self, msg: Any | None = ..., screen: Any | None = ..., stacktrace: Any | None = ..., alert_text: Any | None = ... - ) -> None: ... - -class NoAlertPresentException(WebDriverException): ... -class ElementNotVisibleException(InvalidElementStateException): ... -class ElementNotInteractableException(InvalidElementStateException): ... -class ElementNotSelectableException(InvalidElementStateException): ... -class InvalidCookieDomainException(WebDriverException): ... -class UnableToSetCookieException(WebDriverException): ... -class RemoteDriverServerException(WebDriverException): ... -class TimeoutException(WebDriverException): ... -class MoveTargetOutOfBoundsException(WebDriverException): ... -class UnexpectedTagNameException(WebDriverException): ... -class InvalidSelectorException(NoSuchElementException): ... -class ImeNotAvailableException(WebDriverException): ... -class ImeActivationFailedException(WebDriverException): ... -class InvalidArgumentException(WebDriverException): ... -class JavascriptException(WebDriverException): ... -class NoSuchCookieException(WebDriverException): ... -class ScreenshotException(WebDriverException): ... -class ElementClickInterceptedException(WebDriverException): ... -class InsecureCertificateException(WebDriverException): ... -class InvalidCoordinatesException(WebDriverException): ... -class InvalidSessionIdException(WebDriverException): ... -class SessionNotCreatedException(WebDriverException): ... -class UnknownMethodException(WebDriverException): ... diff --git a/stubs/selenium/selenium/webdriver/__init__.pyi b/stubs/selenium/selenium/webdriver/__init__.pyi deleted file mode 100644 index c352e5e54973..000000000000 --- a/stubs/selenium/selenium/webdriver/__init__.pyi +++ /dev/null @@ -1,45 +0,0 @@ -from .android.webdriver import WebDriver as Android -from .blackberry.webdriver import WebDriver as BlackBerry -from .chrome.options import Options as ChromeOptions -from .chrome.webdriver import WebDriver as Chrome -from .common.action_chains import ActionChains as ActionChains -from .common.desired_capabilities import DesiredCapabilities as DesiredCapabilities -from .common.proxy import Proxy as Proxy -from .common.touch_actions import TouchActions as TouchActions -from .edge.webdriver import WebDriver as Edge -from .firefox.firefox_profile import FirefoxProfile as FirefoxProfile -from .firefox.options import Options as FirefoxOptions -from .firefox.webdriver import WebDriver as Firefox -from .ie.options import Options as IeOptions -from .ie.webdriver import WebDriver as Ie -from .opera.webdriver import WebDriver as Opera -from .phantomjs.webdriver import WebDriver as PhantomJS -from .remote.webdriver import WebDriver as Remote -from .safari.webdriver import WebDriver as Safari -from .webkitgtk.options import Options as WebKitGTKOptions -from .webkitgtk.webdriver import WebDriver as WebKitGTK - -# We need an explicit __all__ because some of the above won't otherwise be exported. -# This could also be fixed using assignments -__all__ = [ - "Firefox", - "FirefoxProfile", - "FirefoxOptions", - "Chrome", - "ChromeOptions", - "Ie", - "IeOptions", - "Edge", - "Opera", - "Safari", - "BlackBerry", - "PhantomJS", - "Android", - "WebKitGTK", - "WebKitGTKOptions", - "Remote", - "DesiredCapabilities", - "ActionChains", - "TouchActions", - "Proxy", -] diff --git a/stubs/selenium/selenium/webdriver/android/__init__.pyi b/stubs/selenium/selenium/webdriver/android/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/android/webdriver.pyi b/stubs/selenium/selenium/webdriver/android/webdriver.pyi deleted file mode 100644 index c310c4acd75f..000000000000 --- a/stubs/selenium/selenium/webdriver/android/webdriver.pyi +++ /dev/null @@ -1,5 +0,0 @@ -from selenium.webdriver.common.desired_capabilities import DesiredCapabilities as DesiredCapabilities -from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver - -class WebDriver(RemoteWebDriver): - def __init__(self, host: str = ..., port: int = ..., desired_capabilities=...) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/blackberry/__init__.pyi b/stubs/selenium/selenium/webdriver/blackberry/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/blackberry/webdriver.pyi b/stubs/selenium/selenium/webdriver/blackberry/webdriver.pyi deleted file mode 100644 index 8caafb6c450c..000000000000 --- a/stubs/selenium/selenium/webdriver/blackberry/webdriver.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver - -LOAD_TIMEOUT: int - -class WebDriver(RemoteWebDriver): - def __init__( - self, device_password, bb_tools_dir: Any | None = ..., hostip: str = ..., port: int = ..., desired_capabilities=... - ): ... - def quit(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/chrome/__init__.pyi b/stubs/selenium/selenium/webdriver/chrome/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/chrome/options.pyi b/stubs/selenium/selenium/webdriver/chrome/options.pyi deleted file mode 100644 index 83baf8ac019c..000000000000 --- a/stubs/selenium/selenium/webdriver/chrome/options.pyi +++ /dev/null @@ -1,30 +0,0 @@ -class Options: - KEY: str - def __init__(self) -> None: ... - @property - def binary_location(self): ... - @binary_location.setter - def binary_location(self, value) -> None: ... - @property - def capabilities(self): ... - def set_capability(self, name, value) -> None: ... - @property - def debugger_address(self): ... - @debugger_address.setter - def debugger_address(self, value) -> None: ... - @property - def arguments(self): ... - def add_argument(self, argument) -> None: ... - @property - def extensions(self): ... - def add_extension(self, extension) -> None: ... - def add_encoded_extension(self, extension) -> None: ... - @property - def experimental_options(self): ... - def add_experimental_option(self, name, value) -> None: ... - @property - def headless(self): ... - @headless.setter - def headless(self, value) -> None: ... - def set_headless(self, headless: bool = ...) -> None: ... - def to_capabilities(self): ... diff --git a/stubs/selenium/selenium/webdriver/chrome/remote_connection.pyi b/stubs/selenium/selenium/webdriver/chrome/remote_connection.pyi deleted file mode 100644 index 0e5870aef884..000000000000 --- a/stubs/selenium/selenium/webdriver/chrome/remote_connection.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from selenium.webdriver.remote.remote_connection import RemoteConnection as RemoteConnection - -class ChromeRemoteConnection(RemoteConnection): - def __init__(self, remote_server_addr, keep_alive: bool = ...) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/chrome/service.pyi b/stubs/selenium/selenium/webdriver/chrome/service.pyi deleted file mode 100644 index d581b790174e..000000000000 --- a/stubs/selenium/selenium/webdriver/chrome/service.pyi +++ /dev/null @@ -1,10 +0,0 @@ -from typing import Any - -from selenium.webdriver.common import service as service - -class Service(service.Service): - service_args: Any - def __init__( - self, executable_path, port: int = ..., service_args: Any | None = ..., log_path: Any | None = ..., env: Any | None = ... - ) -> None: ... - def command_line_args(self): ... diff --git a/stubs/selenium/selenium/webdriver/chrome/webdriver.pyi b/stubs/selenium/selenium/webdriver/chrome/webdriver.pyi deleted file mode 100644 index 754ebf51583f..000000000000 --- a/stubs/selenium/selenium/webdriver/chrome/webdriver.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver - -from .remote_connection import ChromeRemoteConnection as ChromeRemoteConnection - -class WebDriver(RemoteWebDriver): - service: Any - def __init__( - self, - executable_path: str = ..., - port: int = ..., - options: Any | None = ..., - service_args: Any | None = ..., - desired_capabilities: Any | None = ..., - service_log_path: Any | None = ..., - chrome_options: Any | None = ..., - keep_alive: bool = ..., - ) -> None: ... - def launch_app(self, id): ... - def get_network_conditions(self): ... - def set_network_conditions(self, **network_conditions) -> None: ... - def execute_cdp_cmd(self, cmd, cmd_args): ... - def quit(self) -> None: ... - def create_options(self): ... diff --git a/stubs/selenium/selenium/webdriver/common/__init__.pyi b/stubs/selenium/selenium/webdriver/common/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/common/action_chains.pyi b/stubs/selenium/selenium/webdriver/common/action_chains.pyi deleted file mode 100644 index e1ab3cda0db9..000000000000 --- a/stubs/selenium/selenium/webdriver/common/action_chains.pyi +++ /dev/null @@ -1,29 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.command import Command as Command - -from .actions.action_builder import ActionBuilder as ActionBuilder -from .utils import keys_to_typing as keys_to_typing - -class ActionChains: - w3c_actions: Any - def __init__(self, driver) -> None: ... - def perform(self) -> None: ... - def reset_actions(self) -> None: ... - def click(self, on_element: Any | None = ...): ... - def click_and_hold(self, on_element: Any | None = ...): ... - def context_click(self, on_element: Any | None = ...): ... - def double_click(self, on_element: Any | None = ...): ... - def drag_and_drop(self, source, target): ... - def drag_and_drop_by_offset(self, source, xoffset, yoffset): ... - def key_down(self, value, element: Any | None = ...): ... - def key_up(self, value, element: Any | None = ...): ... - def move_by_offset(self, xoffset, yoffset): ... - def move_to_element(self, to_element): ... - def move_to_element_with_offset(self, to_element, xoffset, yoffset): ... - def pause(self, seconds): ... - def release(self, on_element: Any | None = ...): ... - def send_keys(self, *keys_to_send): ... - def send_keys_to_element(self, element, *keys_to_send): ... - def __enter__(self): ... - def __exit__(self, _type, _value, _traceback) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/common/actions/__init__.pyi b/stubs/selenium/selenium/webdriver/common/actions/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/common/actions/action_builder.pyi b/stubs/selenium/selenium/webdriver/common/actions/action_builder.pyi deleted file mode 100644 index 40be962861d0..000000000000 --- a/stubs/selenium/selenium/webdriver/common/actions/action_builder.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.command import Command as Command - -from . import interaction as interaction -from .key_actions import KeyActions as KeyActions -from .key_input import KeyInput as KeyInput -from .pointer_actions import PointerActions as PointerActions -from .pointer_input import PointerInput as PointerInput - -class ActionBuilder: - devices: Any - driver: Any - def __init__(self, driver, mouse: Any | None = ..., keyboard: Any | None = ...) -> None: ... - def get_device_with(self, name): ... - @property - def pointer_inputs(self): ... - @property - def key_inputs(self): ... - @property - def key_action(self): ... - @property - def pointer_action(self): ... - def add_key_input(self, name): ... - def add_pointer_input(self, kind, name): ... - def perform(self) -> None: ... - def clear_actions(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/common/actions/input_device.pyi b/stubs/selenium/selenium/webdriver/common/actions/input_device.pyi deleted file mode 100644 index 461e84e98df7..000000000000 --- a/stubs/selenium/selenium/webdriver/common/actions/input_device.pyi +++ /dev/null @@ -1,9 +0,0 @@ -from typing import Any - -class InputDevice: - name: Any - actions: Any - def __init__(self, name: Any | None = ...) -> None: ... - def add_action(self, action) -> None: ... - def clear_actions(self) -> None: ... - def create_pause(self, duraton: int = ...) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/common/actions/interaction.pyi b/stubs/selenium/selenium/webdriver/common/actions/interaction.pyi deleted file mode 100644 index 61cb9eec9b00..000000000000 --- a/stubs/selenium/selenium/webdriver/common/actions/interaction.pyi +++ /dev/null @@ -1,21 +0,0 @@ -from typing import Any - -KEY: str -POINTER: str -NONE: str -SOURCE_TYPES: Any -POINTER_MOUSE: str -POINTER_TOUCH: str -POINTER_PEN: str -POINTER_KINDS: Any - -class Interaction: - PAUSE: str - source: Any - def __init__(self, source) -> None: ... - -class Pause(Interaction): - source: Any - duration: Any - def __init__(self, source, duration: int = ...) -> None: ... - def encode(self): ... diff --git a/stubs/selenium/selenium/webdriver/common/actions/key_actions.pyi b/stubs/selenium/selenium/webdriver/common/actions/key_actions.pyi deleted file mode 100644 index b5412a65bde7..000000000000 --- a/stubs/selenium/selenium/webdriver/common/actions/key_actions.pyi +++ /dev/null @@ -1,13 +0,0 @@ -from typing import Any - -from ..utils import keys_to_typing as keys_to_typing -from .interaction import KEY as KEY, Interaction as Interaction -from .key_input import KeyInput as KeyInput - -class KeyActions(Interaction): - source: Any - def __init__(self, source: Any | None = ...) -> None: ... - def key_down(self, letter): ... - def key_up(self, letter): ... - def pause(self, duration: int = ...): ... - def send_keys(self, text): ... diff --git a/stubs/selenium/selenium/webdriver/common/actions/key_input.pyi b/stubs/selenium/selenium/webdriver/common/actions/key_input.pyi deleted file mode 100644 index 744422672e81..000000000000 --- a/stubs/selenium/selenium/webdriver/common/actions/key_input.pyi +++ /dev/null @@ -1,20 +0,0 @@ -from typing import Any - -from . import interaction as interaction -from .input_device import InputDevice as InputDevice -from .interaction import Interaction as Interaction, Pause as Pause - -class KeyInput(InputDevice): - name: Any - type: Any - def __init__(self, name) -> None: ... - def encode(self): ... - def create_key_down(self, key) -> None: ... - def create_key_up(self, key) -> None: ... - def create_pause(self, pause_duration: int = ...) -> None: ... - -class TypingInteraction(Interaction): - type: Any - key: Any - def __init__(self, source, type_, key) -> None: ... - def encode(self): ... diff --git a/stubs/selenium/selenium/webdriver/common/actions/mouse_button.pyi b/stubs/selenium/selenium/webdriver/common/actions/mouse_button.pyi deleted file mode 100644 index 603c6f6bc31d..000000000000 --- a/stubs/selenium/selenium/webdriver/common/actions/mouse_button.pyi +++ /dev/null @@ -1,4 +0,0 @@ -class MouseButton: - LEFT: int - MIDDLE: int - RIGHT: int diff --git a/stubs/selenium/selenium/webdriver/common/actions/pointer_actions.pyi b/stubs/selenium/selenium/webdriver/common/actions/pointer_actions.pyi deleted file mode 100644 index 4cf6e0ce1508..000000000000 --- a/stubs/selenium/selenium/webdriver/common/actions/pointer_actions.pyi +++ /dev/null @@ -1,23 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.webelement import WebElement as WebElement - -from . import interaction as interaction -from .interaction import Interaction as Interaction -from .mouse_button import MouseButton as MouseButton -from .pointer_input import PointerInput as PointerInput - -class PointerActions(Interaction): - source: Any - def __init__(self, source: Any | None = ...) -> None: ... - def pointer_down(self, button=...) -> None: ... - def pointer_up(self, button=...) -> None: ... - def move_to(self, element, x: Any | None = ..., y: Any | None = ...): ... - def move_by(self, x, y): ... - def move_to_location(self, x, y): ... - def click(self, element: Any | None = ...): ... - def context_click(self, element: Any | None = ...): ... - def click_and_hold(self, element: Any | None = ...): ... - def release(self): ... - def double_click(self, element: Any | None = ...) -> None: ... - def pause(self, duration: int = ...): ... diff --git a/stubs/selenium/selenium/webdriver/common/actions/pointer_input.pyi b/stubs/selenium/selenium/webdriver/common/actions/pointer_input.pyi deleted file mode 100644 index 1647f90f1afd..000000000000 --- a/stubs/selenium/selenium/webdriver/common/actions/pointer_input.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from typing import Any - -from .input_device import InputDevice as InputDevice -from .interaction import POINTER as POINTER, POINTER_KINDS as POINTER_KINDS - -class PointerInput(InputDevice): - DEFAULT_MOVE_DURATION: int - type: Any - kind: Any - name: Any - def __init__(self, kind, name) -> None: ... - def create_pointer_move(self, duration=..., x: Any | None = ..., y: Any | None = ..., origin: Any | None = ...) -> None: ... - def create_pointer_down(self, button) -> None: ... - def create_pointer_up(self, button) -> None: ... - def create_pointer_cancel(self) -> None: ... - def create_pause(self, pause_duration) -> None: ... # type: ignore[override] - def encode(self): ... diff --git a/stubs/selenium/selenium/webdriver/common/alert.pyi b/stubs/selenium/selenium/webdriver/common/alert.pyi deleted file mode 100644 index 942702218263..000000000000 --- a/stubs/selenium/selenium/webdriver/common/alert.pyi +++ /dev/null @@ -1,10 +0,0 @@ -from typing import Any - -class Alert: - driver: Any - def __init__(self, driver) -> None: ... - @property - def text(self): ... - def dismiss(self) -> None: ... - def accept(self) -> None: ... - def send_keys(self, keysToSend) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/common/by.pyi b/stubs/selenium/selenium/webdriver/common/by.pyi deleted file mode 100644 index fbdf77bd6a97..000000000000 --- a/stubs/selenium/selenium/webdriver/common/by.pyi +++ /dev/null @@ -1,9 +0,0 @@ -class By: - ID: str - XPATH: str - LINK_TEXT: str - PARTIAL_LINK_TEXT: str - NAME: str - TAG_NAME: str - CLASS_NAME: str - CSS_SELECTOR: str diff --git a/stubs/selenium/selenium/webdriver/common/desired_capabilities.pyi b/stubs/selenium/selenium/webdriver/common/desired_capabilities.pyi deleted file mode 100644 index c9b16cae2793..000000000000 --- a/stubs/selenium/selenium/webdriver/common/desired_capabilities.pyi +++ /dev/null @@ -1,16 +0,0 @@ -from typing import Any - -class DesiredCapabilities: - FIREFOX: Any - INTERNETEXPLORER: Any - EDGE: Any - CHROME: Any - OPERA: Any - SAFARI: Any - HTMLUNIT: Any - HTMLUNITWITHJS: Any - IPHONE: Any - IPAD: Any - ANDROID: Any - PHANTOMJS: Any - WEBKITGTK: Any diff --git a/stubs/selenium/selenium/webdriver/common/html5/__init__.pyi b/stubs/selenium/selenium/webdriver/common/html5/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/common/html5/application_cache.pyi b/stubs/selenium/selenium/webdriver/common/html5/application_cache.pyi deleted file mode 100644 index 248010ea25d1..000000000000 --- a/stubs/selenium/selenium/webdriver/common/html5/application_cache.pyi +++ /dev/null @@ -1,13 +0,0 @@ -from typing import Any - -class ApplicationCache: - UNCACHED: int - IDLE: int - CHECKING: int - DOWNLOADING: int - UPDATE_READY: int - OBSOLETE: int - driver: Any - def __init__(self, driver) -> None: ... - @property - def status(self): ... diff --git a/stubs/selenium/selenium/webdriver/common/keys.pyi b/stubs/selenium/selenium/webdriver/common/keys.pyi deleted file mode 100644 index b93ef383be9e..000000000000 --- a/stubs/selenium/selenium/webdriver/common/keys.pyi +++ /dev/null @@ -1,67 +0,0 @@ -from typing import Any - -class Keys: - NULL: str - CANCEL: str - HELP: str - BACKSPACE: str - BACK_SPACE: Any - TAB: str - CLEAR: str - RETURN: str - ENTER: str - SHIFT: str - LEFT_SHIFT: Any - CONTROL: str - LEFT_CONTROL: Any - ALT: str - LEFT_ALT: Any - PAUSE: str - ESCAPE: str - SPACE: str - PAGE_UP: str - PAGE_DOWN: str - END: str - HOME: str - LEFT: str - ARROW_LEFT: Any - UP: str - ARROW_UP: Any - RIGHT: str - ARROW_RIGHT: Any - DOWN: str - ARROW_DOWN: Any - INSERT: str - DELETE: str - SEMICOLON: str - EQUALS: str - NUMPAD0: str - NUMPAD1: str - NUMPAD2: str - NUMPAD3: str - NUMPAD4: str - NUMPAD5: str - NUMPAD6: str - NUMPAD7: str - NUMPAD8: str - NUMPAD9: str - MULTIPLY: str - ADD: str - SEPARATOR: str - SUBTRACT: str - DECIMAL: str - DIVIDE: str - F1: str - F2: str - F3: str - F4: str - F5: str - F6: str - F7: str - F8: str - F9: str - F10: str - F11: str - F12: str - META: str - COMMAND: str diff --git a/stubs/selenium/selenium/webdriver/common/proxy.pyi b/stubs/selenium/selenium/webdriver/common/proxy.pyi deleted file mode 100644 index a058d9dee6b9..000000000000 --- a/stubs/selenium/selenium/webdriver/common/proxy.pyi +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any - -class ProxyTypeFactory: - @staticmethod - def make(ff_value, string): ... - -class ProxyType: - DIRECT: Any - MANUAL: Any - PAC: Any - RESERVED_1: Any - AUTODETECT: Any - SYSTEM: Any - UNSPECIFIED: Any - @classmethod - def load(cls, value): ... - -class Proxy: - proxyType: Any - autodetect: bool - ftpProxy: str - httpProxy: str - noProxy: str - proxyAutoconfigUrl: str - sslProxy: str - socksProxy: str - socksUsername: str - socksPassword: str - def __init__(self, raw: Any | None = ...) -> None: ... - @property - def proxy_type(self): ... - @proxy_type.setter - def proxy_type(self, value) -> None: ... - @property - def auto_detect(self): ... - @auto_detect.setter - def auto_detect(self, value) -> None: ... - @property - def ftp_proxy(self): ... - @ftp_proxy.setter - def ftp_proxy(self, value) -> None: ... - @property - def http_proxy(self): ... - @http_proxy.setter - def http_proxy(self, value) -> None: ... - @property - def no_proxy(self): ... - @no_proxy.setter - def no_proxy(self, value) -> None: ... - @property - def proxy_autoconfig_url(self): ... - @proxy_autoconfig_url.setter - def proxy_autoconfig_url(self, value) -> None: ... - @property - def ssl_proxy(self): ... - @ssl_proxy.setter - def ssl_proxy(self, value) -> None: ... - @property - def socks_proxy(self): ... - @socks_proxy.setter - def socks_proxy(self, value) -> None: ... - @property - def socks_username(self): ... - @socks_username.setter - def socks_username(self, value) -> None: ... - @property - def socks_password(self): ... - @socks_password.setter - def socks_password(self, value) -> None: ... - def add_to_capabilities(self, capabilities) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/common/service.pyi b/stubs/selenium/selenium/webdriver/common/service.pyi deleted file mode 100644 index f8b28110852c..000000000000 --- a/stubs/selenium/selenium/webdriver/common/service.pyi +++ /dev/null @@ -1,21 +0,0 @@ -from typing import Any - -class Service: - path: Any - port: Any - start_error_message: Any - log_file: Any - env: Any - def __init__( - self, executable, port: int = ..., log_file=..., env: Any | None = ..., start_error_message: str = ... - ) -> None: ... - @property - def service_url(self): ... - def command_line_args(self) -> None: ... - process: Any - def start(self) -> None: ... - def assert_process_still_running(self) -> None: ... - def is_connectable(self): ... - def send_remote_shutdown_command(self) -> None: ... - def stop(self) -> None: ... - def __del__(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/common/touch_actions.pyi b/stubs/selenium/selenium/webdriver/common/touch_actions.pyi deleted file mode 100644 index 04a5d1717681..000000000000 --- a/stubs/selenium/selenium/webdriver/common/touch_actions.pyi +++ /dev/null @@ -1,15 +0,0 @@ -class TouchActions: - def __init__(self, driver) -> None: ... - def perform(self) -> None: ... - def tap(self, on_element): ... - def double_tap(self, on_element): ... - def tap_and_hold(self, xcoord, ycoord): ... - def move(self, xcoord, ycoord): ... - def release(self, xcoord, ycoord): ... - def scroll(self, xoffset, yoffset): ... - def scroll_from_element(self, on_element, xoffset, yoffset): ... - def long_press(self, on_element): ... - def flick(self, xspeed, yspeed): ... - def flick_element(self, on_element, xoffset, yoffset, speed): ... - def __enter__(self): ... - def __exit__(self, _type, _value, _traceback) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/common/utils.pyi b/stubs/selenium/selenium/webdriver/common/utils.pyi deleted file mode 100644 index ffd77721b0e6..000000000000 --- a/stubs/selenium/selenium/webdriver/common/utils.pyi +++ /dev/null @@ -1,12 +0,0 @@ -from typing import Any - -from selenium.webdriver.common.keys import Keys as Keys - -basestring = str - -def free_port(): ... -def find_connectable_ip(host, port: Any | None = ...): ... -def join_host_port(host, port): ... -def is_connectable(port, host: str = ...): ... -def is_url_connectable(port): ... -def keys_to_typing(value): ... diff --git a/stubs/selenium/selenium/webdriver/edge/__init__.pyi b/stubs/selenium/selenium/webdriver/edge/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/edge/options.pyi b/stubs/selenium/selenium/webdriver/edge/options.pyi deleted file mode 100644 index 990c0923eda9..000000000000 --- a/stubs/selenium/selenium/webdriver/edge/options.pyi +++ /dev/null @@ -1,10 +0,0 @@ -class Options: - def __init__(self) -> None: ... - @property - def page_load_strategy(self): ... - @page_load_strategy.setter - def page_load_strategy(self, value) -> None: ... - @property - def capabilities(self): ... - def set_capability(self, name, value) -> None: ... - def to_capabilities(self): ... diff --git a/stubs/selenium/selenium/webdriver/edge/service.pyi b/stubs/selenium/selenium/webdriver/edge/service.pyi deleted file mode 100644 index 87abed56f260..000000000000 --- a/stubs/selenium/selenium/webdriver/edge/service.pyi +++ /dev/null @@ -1,8 +0,0 @@ -from typing import Any - -from selenium.webdriver.common import service as service - -class Service(service.Service): - service_args: Any - def __init__(self, executable_path, port: int = ..., verbose: bool = ..., log_path: Any | None = ...) -> None: ... - def command_line_args(self): ... diff --git a/stubs/selenium/selenium/webdriver/edge/webdriver.pyi b/stubs/selenium/selenium/webdriver/edge/webdriver.pyi deleted file mode 100644 index 1a76a70c2fdf..000000000000 --- a/stubs/selenium/selenium/webdriver/edge/webdriver.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver - -class WebDriver(RemoteWebDriver): - port: Any - edge_service: Any - def __init__( - self, - executable_path: str = ..., - capabilities: Any | None = ..., - port: int = ..., - verbose: bool = ..., - service_log_path: Any | None = ..., - log_path: Any | None = ..., - keep_alive: bool = ..., - ) -> None: ... - def quit(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/firefox/__init__.pyi b/stubs/selenium/selenium/webdriver/firefox/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/firefox/extension_connection.pyi b/stubs/selenium/selenium/webdriver/firefox/extension_connection.pyi deleted file mode 100644 index d47e2b80d9d2..000000000000 --- a/stubs/selenium/selenium/webdriver/firefox/extension_connection.pyi +++ /dev/null @@ -1,20 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.remote_connection import RemoteConnection as RemoteConnection - -LOGGER: Any -PORT: int -HOST: Any - -class ExtensionConnection(RemoteConnection): - profile: Any - binary: Any - def __init__(self, host, firefox_profile, firefox_binary: Any | None = ..., timeout: int = ...) -> None: ... - def quit(self, sessionId: Any | None = ...) -> None: ... - def connect(self): ... - @classmethod - def connect_and_quit(cls) -> None: ... - @classmethod - def is_connectable(cls) -> None: ... - -class ExtensionConnectionError(Exception): ... diff --git a/stubs/selenium/selenium/webdriver/firefox/firefox_binary.pyi b/stubs/selenium/selenium/webdriver/firefox/firefox_binary.pyi deleted file mode 100644 index 4b146ba458e9..000000000000 --- a/stubs/selenium/selenium/webdriver/firefox/firefox_binary.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from typing import Any - -class FirefoxBinary: - NO_FOCUS_LIBRARY_NAME: str - command_line: Any - def __init__(self, firefox_path: Any | None = ..., log_file: Any | None = ...) -> None: ... - def add_command_line_options(self, *args) -> None: ... - profile: Any - def launch_browser(self, profile, timeout: int = ...) -> None: ... - def kill(self) -> None: ... - def which(self, fname): ... diff --git a/stubs/selenium/selenium/webdriver/firefox/firefox_profile.pyi b/stubs/selenium/selenium/webdriver/firefox/firefox_profile.pyi deleted file mode 100644 index 885b25454f9b..000000000000 --- a/stubs/selenium/selenium/webdriver/firefox/firefox_profile.pyi +++ /dev/null @@ -1,41 +0,0 @@ -from typing import Any - -WEBDRIVER_EXT: str -WEBDRIVER_PREFERENCES: str -EXTENSION_NAME: str - -class AddonFormatError(Exception): ... - -class FirefoxProfile: - ANONYMOUS_PROFILE_NAME: str - DEFAULT_PREFERENCES: Any - default_preferences: Any - profile_dir: Any - tempfolder: Any - extensionsDir: Any - userPrefs: Any - def __init__(self, profile_directory: Any | None = ...) -> None: ... - def set_preference(self, key, value) -> None: ... - def add_extension(self, extension=...) -> None: ... - def update_preferences(self) -> None: ... - @property - def path(self): ... - @property - def port(self): ... - @port.setter - def port(self, port) -> None: ... - @property - def accept_untrusted_certs(self): ... - @accept_untrusted_certs.setter - def accept_untrusted_certs(self, value) -> None: ... - @property - def assume_untrusted_cert_issuer(self): ... - @assume_untrusted_cert_issuer.setter - def assume_untrusted_cert_issuer(self, value) -> None: ... - @property - def native_events_enabled(self): ... - @native_events_enabled.setter - def native_events_enabled(self, value) -> None: ... - @property - def encoded(self): ... - def set_proxy(self, proxy) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/firefox/options.pyi b/stubs/selenium/selenium/webdriver/firefox/options.pyi deleted file mode 100644 index d5f52f8f5dc7..000000000000 --- a/stubs/selenium/selenium/webdriver/firefox/options.pyi +++ /dev/null @@ -1,46 +0,0 @@ -from typing import Any - -class Log: - level: Any - def __init__(self) -> None: ... - def to_capabilities(self): ... - -class Options: - KEY: str - log: Any - def __init__(self) -> None: ... - @property - def binary(self): ... - @binary.setter - def binary(self, new_binary) -> None: ... - @property - def binary_location(self): ... - @binary_location.setter - def binary_location(self, value) -> None: ... - @property - def accept_insecure_certs(self): ... - @accept_insecure_certs.setter - def accept_insecure_certs(self, value) -> None: ... - @property - def capabilities(self): ... - def set_capability(self, name, value) -> None: ... - @property - def preferences(self): ... - def set_preference(self, name, value) -> None: ... - @property - def proxy(self): ... - @proxy.setter - def proxy(self, value) -> None: ... - @property - def profile(self): ... - @profile.setter - def profile(self, new_profile) -> None: ... - @property - def arguments(self): ... - def add_argument(self, argument) -> None: ... - @property - def headless(self): ... - @headless.setter - def headless(self, value) -> None: ... - def set_headless(self, headless: bool = ...) -> None: ... - def to_capabilities(self): ... diff --git a/stubs/selenium/selenium/webdriver/firefox/remote_connection.pyi b/stubs/selenium/selenium/webdriver/firefox/remote_connection.pyi deleted file mode 100644 index 7bfe0847234f..000000000000 --- a/stubs/selenium/selenium/webdriver/firefox/remote_connection.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from selenium.webdriver.remote.remote_connection import RemoteConnection as RemoteConnection - -class FirefoxRemoteConnection(RemoteConnection): - def __init__(self, remote_server_addr, keep_alive: bool = ...) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/firefox/service.pyi b/stubs/selenium/selenium/webdriver/firefox/service.pyi deleted file mode 100644 index a28db4351515..000000000000 --- a/stubs/selenium/selenium/webdriver/firefox/service.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from typing import Any - -from selenium.webdriver.common import service as service - -class Service(service.Service): - service_args: Any - def __init__( - self, executable_path, port: int = ..., service_args: Any | None = ..., log_path: str = ..., env: Any | None = ... - ) -> None: ... - def command_line_args(self): ... - def send_remote_shutdown_command(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/firefox/webdriver.pyi b/stubs/selenium/selenium/webdriver/firefox/webdriver.pyi deleted file mode 100644 index e76cf3bfdd95..000000000000 --- a/stubs/selenium/selenium/webdriver/firefox/webdriver.pyi +++ /dev/null @@ -1,45 +0,0 @@ -from collections.abc import Generator -from typing import Any - -from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver - -from .extension_connection import ExtensionConnection as ExtensionConnection -from .firefox_binary import FirefoxBinary as FirefoxBinary -from .firefox_profile import FirefoxProfile as FirefoxProfile -from .options import Options as Options -from .remote_connection import FirefoxRemoteConnection as FirefoxRemoteConnection -from .service import Service as Service -from .webelement import FirefoxWebElement as FirefoxWebElement - -basestring = str - -class WebDriver(RemoteWebDriver): - NATIVE_EVENTS_ALLOWED: Any - CONTEXT_CHROME: str - CONTEXT_CONTENT: str - binary: Any - profile: Any - service: Any - def __init__( - self, - firefox_profile: Any | None = ..., - firefox_binary: Any | None = ..., - timeout: int = ..., - capabilities: Any | None = ..., - proxy: Any | None = ..., - executable_path: str = ..., - options: Any | None = ..., - service_log_path: str = ..., - firefox_options: Any | None = ..., - service_args: Any | None = ..., - desired_capabilities: Any | None = ..., - log_path: Any | None = ..., - keep_alive: bool = ..., - ) -> None: ... - def quit(self) -> None: ... - @property - def firefox_profile(self): ... - def set_context(self, context) -> None: ... - def context(self, context) -> Generator[None, None, None]: ... - def install_addon(self, path, temporary: Any | None = ...): ... - def uninstall_addon(self, identifier) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/firefox/webelement.pyi b/stubs/selenium/selenium/webdriver/firefox/webelement.pyi deleted file mode 100644 index 1a4b49fc6159..000000000000 --- a/stubs/selenium/selenium/webdriver/firefox/webelement.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from selenium.webdriver.remote.webelement import WebElement as RemoteWebElement - -class FirefoxWebElement(RemoteWebElement): - @property - def anonymous_children(self): ... - def find_anonymous_element_by_attribute(self, name, value): ... diff --git a/stubs/selenium/selenium/webdriver/ie/__init__.pyi b/stubs/selenium/selenium/webdriver/ie/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/ie/options.pyi b/stubs/selenium/selenium/webdriver/ie/options.pyi deleted file mode 100644 index e32af1727411..000000000000 --- a/stubs/selenium/selenium/webdriver/ie/options.pyi +++ /dev/null @@ -1,95 +0,0 @@ -class ElementScrollBehavior: - TOP: int - BOTTOM: int - -class Options: - KEY: str - SWITCHES: str - BROWSER_ATTACH_TIMEOUT: str - ELEMENT_SCROLL_BEHAVIOR: str - ENSURE_CLEAN_SESSION: str - FILE_UPLOAD_DIALOG_TIMEOUT: str - FORCE_CREATE_PROCESS_API: str - FORCE_SHELL_WINDOWS_API: str - FULL_PAGE_SCREENSHOT: str - IGNORE_PROTECTED_MODE_SETTINGS: str - IGNORE_ZOOM_LEVEL: str - INITIAL_BROWSER_URL: str - NATIVE_EVENTS: str - PERSISTENT_HOVER: str - REQUIRE_WINDOW_FOCUS: str - USE_PER_PROCESS_PROXY: str - VALIDATE_COOKIE_DOCUMENT_TYPE: str - def __init__(self) -> None: ... - @property - def arguments(self): ... - def add_argument(self, argument) -> None: ... - @property - def options(self): ... - @property - def capabilities(self): ... - def set_capability(self, name, value) -> None: ... - @property - def browser_attach_timeout(self): ... - @browser_attach_timeout.setter - def browser_attach_timeout(self, value) -> None: ... - @property - def element_scroll_behavior(self): ... - @element_scroll_behavior.setter - def element_scroll_behavior(self, value) -> None: ... - @property - def ensure_clean_session(self): ... - @ensure_clean_session.setter - def ensure_clean_session(self, value) -> None: ... - @property - def file_upload_dialog_timeout(self): ... - @file_upload_dialog_timeout.setter - def file_upload_dialog_timeout(self, value) -> None: ... - @property - def force_create_process_api(self): ... - @force_create_process_api.setter - def force_create_process_api(self, value) -> None: ... - @property - def force_shell_windows_api(self): ... - @force_shell_windows_api.setter - def force_shell_windows_api(self, value) -> None: ... - @property - def full_page_screenshot(self): ... - @full_page_screenshot.setter - def full_page_screenshot(self, value) -> None: ... - @property - def ignore_protected_mode_settings(self): ... - @ignore_protected_mode_settings.setter - def ignore_protected_mode_settings(self, value) -> None: ... - @property - def ignore_zoom_level(self): ... - @ignore_zoom_level.setter - def ignore_zoom_level(self, value) -> None: ... - @property - def initial_browser_url(self): ... - @initial_browser_url.setter - def initial_browser_url(self, value) -> None: ... - @property - def native_events(self): ... - @native_events.setter - def native_events(self, value) -> None: ... - @property - def persistent_hover(self): ... - @persistent_hover.setter - def persistent_hover(self, value) -> None: ... - @property - def require_window_focus(self): ... - @require_window_focus.setter - def require_window_focus(self, value) -> None: ... - @property - def use_per_process_proxy(self): ... - @use_per_process_proxy.setter - def use_per_process_proxy(self, value) -> None: ... - @property - def validate_cookie_document_type(self): ... - @validate_cookie_document_type.setter - def validate_cookie_document_type(self, value) -> None: ... - @property - def additional_options(self): ... - def add_additional_option(self, name, value) -> None: ... - def to_capabilities(self): ... diff --git a/stubs/selenium/selenium/webdriver/ie/service.pyi b/stubs/selenium/selenium/webdriver/ie/service.pyi deleted file mode 100644 index faae611e7670..000000000000 --- a/stubs/selenium/selenium/webdriver/ie/service.pyi +++ /dev/null @@ -1,10 +0,0 @@ -from typing import Any - -from selenium.webdriver.common import service as service - -class Service(service.Service): - service_args: Any - def __init__( - self, executable_path, port: int = ..., host: Any | None = ..., log_level: Any | None = ..., log_file: Any | None = ... - ) -> None: ... - def command_line_args(self): ... diff --git a/stubs/selenium/selenium/webdriver/ie/webdriver.pyi b/stubs/selenium/selenium/webdriver/ie/webdriver.pyi deleted file mode 100644 index 94e00380ea1c..000000000000 --- a/stubs/selenium/selenium/webdriver/ie/webdriver.pyi +++ /dev/null @@ -1,34 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver - -from .options import Options as Options -from .service import Service as Service - -DEFAULT_TIMEOUT: int -DEFAULT_PORT: int -DEFAULT_HOST: Any -DEFAULT_LOG_LEVEL: Any -DEFAULT_SERVICE_LOG_PATH: Any - -class WebDriver(RemoteWebDriver): - port: Any - host: Any - iedriver: Any - def __init__( - self, - executable_path: str = ..., - capabilities: Any | None = ..., - port=..., - timeout=..., - host=..., - log_level=..., - service_log_path=..., - options: Any | None = ..., - ie_options: Any | None = ..., - desired_capabilities: Any | None = ..., - log_file: Any | None = ..., - keep_alive: bool = ..., - ) -> None: ... - def quit(self) -> None: ... - def create_options(self): ... diff --git a/stubs/selenium/selenium/webdriver/opera/__init__.pyi b/stubs/selenium/selenium/webdriver/opera/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/opera/options.pyi b/stubs/selenium/selenium/webdriver/opera/options.pyi deleted file mode 100644 index 508b61b51e15..000000000000 --- a/stubs/selenium/selenium/webdriver/opera/options.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from selenium.webdriver.chrome.options import Options as ChromeOptions - -class Options(ChromeOptions): - KEY: str - def __init__(self) -> None: ... - @property - def capabilities(self): ... - def set_capability(self, name, value) -> None: ... - @property - def android_package_name(self): ... - @android_package_name.setter - def android_package_name(self, value) -> None: ... - @property - def android_device_socket(self): ... - @android_device_socket.setter - def android_device_socket(self, value) -> None: ... - @property - def android_command_line_file(self): ... - @android_command_line_file.setter - def android_command_line_file(self, value) -> None: ... - def to_capabilities(self): ... - -class AndroidOptions(Options): - android_package_name: str - def __init__(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/opera/webdriver.pyi b/stubs/selenium/selenium/webdriver/opera/webdriver.pyi deleted file mode 100644 index bad77b141e2d..000000000000 --- a/stubs/selenium/selenium/webdriver/opera/webdriver.pyi +++ /dev/null @@ -1,32 +0,0 @@ -from typing import Any - -from selenium.webdriver.chrome.webdriver import WebDriver as ChromiumDriver - -from .options import Options as Options - -class OperaDriver(ChromiumDriver): - def __init__( - self, - executable_path: Any | None = ..., - port: int = ..., - options: Any | None = ..., - service_args: Any | None = ..., - desired_capabilities: Any | None = ..., - service_log_path: Any | None = ..., - opera_options: Any | None = ..., - keep_alive: bool = ..., - ) -> None: ... - def create_options(self): ... - -class WebDriver(OperaDriver): - class ServiceType: - CHROMIUM: int - def __init__( - self, - desired_capabilities: Any | None = ..., - executable_path: Any | None = ..., - port: int = ..., - service_log_path: Any | None = ..., - service_args: Any | None = ..., - options: Any | None = ..., - ) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/phantomjs/__init__.pyi b/stubs/selenium/selenium/webdriver/phantomjs/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/phantomjs/service.pyi b/stubs/selenium/selenium/webdriver/phantomjs/service.pyi deleted file mode 100644 index bc6d763b91e8..000000000000 --- a/stubs/selenium/selenium/webdriver/phantomjs/service.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from typing import Any - -from selenium.webdriver.common import service as service - -class Service(service.Service): - service_args: Any - def __init__(self, executable_path, port: int = ..., service_args: Any | None = ..., log_path: Any | None = ...) -> None: ... - def command_line_args(self): ... - @property - def service_url(self): ... - def send_remote_shutdown_command(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/phantomjs/webdriver.pyi b/stubs/selenium/selenium/webdriver/phantomjs/webdriver.pyi deleted file mode 100644 index e57f48858580..000000000000 --- a/stubs/selenium/selenium/webdriver/phantomjs/webdriver.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver - -from .service import Service as Service - -class WebDriver(RemoteWebDriver): - service: Any - def __init__( - self, - executable_path: str = ..., - port: int = ..., - desired_capabilities=..., - service_args: Any | None = ..., - service_log_path: Any | None = ..., - ) -> None: ... - def quit(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/remote/__init__.pyi b/stubs/selenium/selenium/webdriver/remote/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/remote/command.pyi b/stubs/selenium/selenium/webdriver/remote/command.pyi deleted file mode 100644 index 18918be0622e..000000000000 --- a/stubs/selenium/selenium/webdriver/remote/command.pyi +++ /dev/null @@ -1,126 +0,0 @@ -class Command: - STATUS: str - NEW_SESSION: str - GET_ALL_SESSIONS: str - DELETE_SESSION: str - CLOSE: str - QUIT: str - GET: str - GO_BACK: str - GO_FORWARD: str - REFRESH: str - ADD_COOKIE: str - GET_COOKIE: str - GET_ALL_COOKIES: str - DELETE_COOKIE: str - DELETE_ALL_COOKIES: str - FIND_ELEMENT: str - FIND_ELEMENTS: str - FIND_CHILD_ELEMENT: str - FIND_CHILD_ELEMENTS: str - CLEAR_ELEMENT: str - CLICK_ELEMENT: str - SEND_KEYS_TO_ELEMENT: str - SEND_KEYS_TO_ACTIVE_ELEMENT: str - SUBMIT_ELEMENT: str - UPLOAD_FILE: str - GET_CURRENT_WINDOW_HANDLE: str - W3C_GET_CURRENT_WINDOW_HANDLE: str - GET_WINDOW_HANDLES: str - W3C_GET_WINDOW_HANDLES: str - GET_WINDOW_SIZE: str - W3C_GET_WINDOW_SIZE: str - W3C_GET_WINDOW_POSITION: str - GET_WINDOW_POSITION: str - SET_WINDOW_SIZE: str - W3C_SET_WINDOW_SIZE: str - SET_WINDOW_RECT: str - GET_WINDOW_RECT: str - SET_WINDOW_POSITION: str - W3C_SET_WINDOW_POSITION: str - SWITCH_TO_WINDOW: str - SWITCH_TO_FRAME: str - SWITCH_TO_PARENT_FRAME: str - GET_ACTIVE_ELEMENT: str - W3C_GET_ACTIVE_ELEMENT: str - GET_CURRENT_URL: str - GET_PAGE_SOURCE: str - GET_TITLE: str - EXECUTE_SCRIPT: str - W3C_EXECUTE_SCRIPT: str - W3C_EXECUTE_SCRIPT_ASYNC: str - GET_ELEMENT_TEXT: str - GET_ELEMENT_VALUE: str - GET_ELEMENT_TAG_NAME: str - SET_ELEMENT_SELECTED: str - IS_ELEMENT_SELECTED: str - IS_ELEMENT_ENABLED: str - IS_ELEMENT_DISPLAYED: str - GET_ELEMENT_LOCATION: str - GET_ELEMENT_LOCATION_ONCE_SCROLLED_INTO_VIEW: str - GET_ELEMENT_SIZE: str - GET_ELEMENT_RECT: str - GET_ELEMENT_ATTRIBUTE: str - GET_ELEMENT_PROPERTY: str - GET_ELEMENT_VALUE_OF_CSS_PROPERTY: str - SCREENSHOT: str - ELEMENT_SCREENSHOT: str - IMPLICIT_WAIT: str - EXECUTE_ASYNC_SCRIPT: str - SET_SCRIPT_TIMEOUT: str - SET_TIMEOUTS: str - MAXIMIZE_WINDOW: str - W3C_MAXIMIZE_WINDOW: str - GET_LOG: str - GET_AVAILABLE_LOG_TYPES: str - FULLSCREEN_WINDOW: str - MINIMIZE_WINDOW: str - DISMISS_ALERT: str - W3C_DISMISS_ALERT: str - ACCEPT_ALERT: str - W3C_ACCEPT_ALERT: str - SET_ALERT_VALUE: str - W3C_SET_ALERT_VALUE: str - GET_ALERT_TEXT: str - W3C_GET_ALERT_TEXT: str - SET_ALERT_CREDENTIALS: str - W3C_ACTIONS: str - W3C_CLEAR_ACTIONS: str - CLICK: str - DOUBLE_CLICK: str - MOUSE_DOWN: str - MOUSE_UP: str - MOVE_TO: str - SET_SCREEN_ORIENTATION: str - GET_SCREEN_ORIENTATION: str - SINGLE_TAP: str - TOUCH_DOWN: str - TOUCH_UP: str - TOUCH_MOVE: str - TOUCH_SCROLL: str - DOUBLE_TAP: str - LONG_PRESS: str - FLICK: str - EXECUTE_SQL: str - GET_LOCATION: str - SET_LOCATION: str - GET_APP_CACHE: str - GET_APP_CACHE_STATUS: str - CLEAR_APP_CACHE: str - GET_LOCAL_STORAGE_ITEM: str - REMOVE_LOCAL_STORAGE_ITEM: str - GET_LOCAL_STORAGE_KEYS: str - SET_LOCAL_STORAGE_ITEM: str - CLEAR_LOCAL_STORAGE: str - GET_LOCAL_STORAGE_SIZE: str - GET_SESSION_STORAGE_ITEM: str - REMOVE_SESSION_STORAGE_ITEM: str - GET_SESSION_STORAGE_KEYS: str - SET_SESSION_STORAGE_ITEM: str - CLEAR_SESSION_STORAGE: str - GET_SESSION_STORAGE_SIZE: str - GET_NETWORK_CONNECTION: str - SET_NETWORK_CONNECTION: str - CURRENT_CONTEXT_HANDLE: str - CONTEXT_HANDLES: str - SWITCH_TO_CONTEXT: str diff --git a/stubs/selenium/selenium/webdriver/remote/errorhandler.pyi b/stubs/selenium/selenium/webdriver/remote/errorhandler.pyi deleted file mode 100644 index 5bdaa4629387..000000000000 --- a/stubs/selenium/selenium/webdriver/remote/errorhandler.pyi +++ /dev/null @@ -1,74 +0,0 @@ -from typing import Any - -from selenium.common.exceptions import ( - ElementClickInterceptedException as ElementClickInterceptedException, - ElementNotInteractableException as ElementNotInteractableException, - ElementNotSelectableException as ElementNotSelectableException, - ElementNotVisibleException as ElementNotVisibleException, - ErrorInResponseException as ErrorInResponseException, - ImeActivationFailedException as ImeActivationFailedException, - ImeNotAvailableException as ImeNotAvailableException, - InsecureCertificateException as InsecureCertificateException, - InvalidArgumentException as InvalidArgumentException, - InvalidCookieDomainException as InvalidCookieDomainException, - InvalidCoordinatesException as InvalidCoordinatesException, - InvalidElementStateException as InvalidElementStateException, - InvalidSelectorException as InvalidSelectorException, - InvalidSessionIdException as InvalidSessionIdException, - JavascriptException as JavascriptException, - MoveTargetOutOfBoundsException as MoveTargetOutOfBoundsException, - NoAlertPresentException as NoAlertPresentException, - NoSuchCookieException as NoSuchCookieException, - NoSuchElementException as NoSuchElementException, - NoSuchFrameException as NoSuchFrameException, - NoSuchWindowException as NoSuchWindowException, - ScreenshotException as ScreenshotException, - SessionNotCreatedException as SessionNotCreatedException, - StaleElementReferenceException as StaleElementReferenceException, - TimeoutException as TimeoutException, - UnableToSetCookieException as UnableToSetCookieException, - UnexpectedAlertPresentException as UnexpectedAlertPresentException, - UnknownMethodException as UnknownMethodException, - WebDriverException as WebDriverException, -) - -class ErrorCode: - SUCCESS: int - NO_SUCH_ELEMENT: Any - NO_SUCH_FRAME: Any - UNKNOWN_COMMAND: Any - STALE_ELEMENT_REFERENCE: Any - ELEMENT_NOT_VISIBLE: Any - INVALID_ELEMENT_STATE: Any - UNKNOWN_ERROR: Any - ELEMENT_IS_NOT_SELECTABLE: Any - JAVASCRIPT_ERROR: Any - XPATH_LOOKUP_ERROR: Any - TIMEOUT: Any - NO_SUCH_WINDOW: Any - INVALID_COOKIE_DOMAIN: Any - UNABLE_TO_SET_COOKIE: Any - UNEXPECTED_ALERT_OPEN: Any - NO_ALERT_OPEN: Any - SCRIPT_TIMEOUT: Any - INVALID_ELEMENT_COORDINATES: Any - IME_NOT_AVAILABLE: Any - IME_ENGINE_ACTIVATION_FAILED: Any - INVALID_SELECTOR: Any - SESSION_NOT_CREATED: Any - MOVE_TARGET_OUT_OF_BOUNDS: Any - INVALID_XPATH_SELECTOR: Any - INVALID_XPATH_SELECTOR_RETURN_TYPER: Any - ELEMENT_NOT_INTERACTABLE: Any - INSECURE_CERTIFICATE: Any - INVALID_ARGUMENT: Any - INVALID_COORDINATES: Any - INVALID_SESSION_ID: Any - NO_SUCH_COOKIE: Any - UNABLE_TO_CAPTURE_SCREEN: Any - ELEMENT_CLICK_INTERCEPTED: Any - UNKNOWN_METHOD: Any - METHOD_NOT_ALLOWED: Any - -class ErrorHandler: - def check_response(self, response) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/remote/file_detector.pyi b/stubs/selenium/selenium/webdriver/remote/file_detector.pyi deleted file mode 100644 index cbb4739b45a7..000000000000 --- a/stubs/selenium/selenium/webdriver/remote/file_detector.pyi +++ /dev/null @@ -1,13 +0,0 @@ -import abc -from typing import Any - -class FileDetector(metaclass=abc.ABCMeta): - __metaclass__: Any - @abc.abstractmethod - def is_local_file(self, *keys): ... - -class UselessFileDetector(FileDetector): - def is_local_file(self, *keys) -> None: ... - -class LocalFileDetector(FileDetector): - def is_local_file(self, *keys): ... diff --git a/stubs/selenium/selenium/webdriver/remote/mobile.pyi b/stubs/selenium/selenium/webdriver/remote/mobile.pyi deleted file mode 100644 index 2f05913c32e4..000000000000 --- a/stubs/selenium/selenium/webdriver/remote/mobile.pyi +++ /dev/null @@ -1,28 +0,0 @@ -from typing import Any - -from .command import Command as Command - -class Mobile: - class ConnectionType: - mask: Any - def __init__(self, mask) -> None: ... - @property - def airplane_mode(self): ... - @property - def wifi(self): ... - @property - def data(self): ... - ALL_NETWORK: Any - WIFI_NETWORK: Any - DATA_NETWORK: Any - AIRPLANE_MODE: Any - def __init__(self, driver) -> None: ... - @property - def network_connection(self): ... - def set_network_connection(self, network): ... - @property - def context(self): ... - @context.setter - def context(self, new_context) -> None: ... - @property - def contexts(self): ... diff --git a/stubs/selenium/selenium/webdriver/remote/remote_connection.pyi b/stubs/selenium/selenium/webdriver/remote/remote_connection.pyi deleted file mode 100644 index 9e6d103fda24..000000000000 --- a/stubs/selenium/selenium/webdriver/remote/remote_connection.pyi +++ /dev/null @@ -1,19 +0,0 @@ -from typing import Any - -from .command import Command as Command -from .errorhandler import ErrorCode as ErrorCode - -LOGGER: Any - -class RemoteConnection: - @classmethod - def get_timeout(cls): ... - @classmethod - def set_timeout(cls, timeout) -> None: ... - @classmethod - def reset_timeout(cls) -> None: ... - @classmethod - def get_remote_connection_headers(cls, parsed_url, keep_alive: bool = ...): ... - keep_alive: Any - def __init__(self, remote_server_addr, keep_alive: bool = ..., resolve_ip: bool = ...) -> None: ... - def execute(self, command, params): ... diff --git a/stubs/selenium/selenium/webdriver/remote/switch_to.pyi b/stubs/selenium/selenium/webdriver/remote/switch_to.pyi deleted file mode 100644 index 52e8b96fc567..000000000000 --- a/stubs/selenium/selenium/webdriver/remote/switch_to.pyi +++ /dev/null @@ -1,22 +0,0 @@ -from selenium.common.exceptions import ( - NoSuchElementException as NoSuchElementException, - NoSuchFrameException as NoSuchFrameException, - NoSuchWindowException as NoSuchWindowException, -) -from selenium.webdriver.common.alert import Alert as Alert -from selenium.webdriver.common.by import By as By - -from .command import Command as Command - -basestring = str - -class SwitchTo: - def __init__(self, driver) -> None: ... - @property - def active_element(self): ... - @property - def alert(self): ... - def default_content(self) -> None: ... - def frame(self, frame_reference) -> None: ... - def parent_frame(self) -> None: ... - def window(self, window_name) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/remote/utils.pyi b/stubs/selenium/selenium/webdriver/remote/utils.pyi deleted file mode 100644 index d9cea7304605..000000000000 --- a/stubs/selenium/selenium/webdriver/remote/utils.pyi +++ /dev/null @@ -1,8 +0,0 @@ -from typing import Any - -LOGGER: Any - -def format_json(json_struct): ... -def dump_json(json_struct): ... -def load_json(s): ... -def unzip_to_temp_dir(zip_file_name): ... diff --git a/stubs/selenium/selenium/webdriver/remote/webdriver.pyi b/stubs/selenium/selenium/webdriver/remote/webdriver.pyi deleted file mode 100644 index 2f117cb0016d..000000000000 --- a/stubs/selenium/selenium/webdriver/remote/webdriver.pyi +++ /dev/null @@ -1,126 +0,0 @@ -from collections.abc import Generator -from typing import Any - -from selenium.common.exceptions import ( - InvalidArgumentException as InvalidArgumentException, - NoSuchCookieException as NoSuchCookieException, - WebDriverException as WebDriverException, -) -from selenium.webdriver.common.by import By as By -from selenium.webdriver.common.html5.application_cache import ApplicationCache as ApplicationCache - -from .command import Command as Command -from .errorhandler import ErrorHandler as ErrorHandler -from .file_detector import FileDetector as FileDetector, LocalFileDetector as LocalFileDetector -from .mobile import Mobile as Mobile -from .remote_connection import RemoteConnection as RemoteConnection -from .switch_to import SwitchTo as SwitchTo -from .webelement import WebElement as WebElement - -class WebDriver: - command_executor: Any - session_id: Any - capabilities: Any - error_handler: Any - def __init__( - self, - command_executor: str | RemoteConnection = ..., - desired_capabilities: Any | None = ..., - browser_profile: Any | None = ..., - proxy: Any | None = ..., - keep_alive: bool = ..., - file_detector: Any | None = ..., - options: Any | None = ..., - ) -> None: ... - def __enter__(self): ... - def __exit__(self, *args) -> None: ... - def file_detector_context(self, file_detector_class, *args, **kwargs) -> Generator[None, None, None]: ... - @property - def mobile(self): ... - @property - def name(self) -> str: ... - def start_client(self) -> None: ... - def stop_client(self) -> None: ... - w3c: Any - def start_session(self, capabilities, browser_profile: Any | None = ...) -> None: ... - def create_web_element(self, element_id) -> WebElement: ... - def execute(self, driver_command, params: Any | None = ...): ... - def get(self, url) -> None: ... - @property - def title(self) -> str: ... - def find_element_by_id(self, id_) -> WebElement: ... - def find_elements_by_id(self, id_) -> list[WebElement]: ... - def find_element_by_xpath(self, xpath) -> WebElement: ... - def find_elements_by_xpath(self, xpath) -> list[WebElement]: ... - def find_element_by_link_text(self, link_text) -> WebElement: ... - def find_elements_by_link_text(self, text) -> list[WebElement]: ... - def find_element_by_partial_link_text(self, link_text) -> WebElement: ... - def find_elements_by_partial_link_text(self, link_text) -> list[WebElement]: ... - def find_element_by_name(self, name) -> WebElement: ... - def find_elements_by_name(self, name) -> list[WebElement]: ... - def find_element_by_tag_name(self, name) -> WebElement: ... - def find_elements_by_tag_name(self, name) -> list[WebElement]: ... - def find_element_by_class_name(self, name) -> WebElement: ... - def find_elements_by_class_name(self, name) -> list[WebElement]: ... - def find_element_by_css_selector(self, css_selector) -> WebElement: ... - def find_elements_by_css_selector(self, css_selector) -> list[WebElement]: ... - def execute_script(self, script, *args): ... - def execute_async_script(self, script, *args): ... - @property - def current_url(self) -> str: ... - @property - def page_source(self) -> str: ... - def close(self) -> None: ... - def quit(self) -> None: ... - @property - def current_window_handle(self) -> str: ... - @property - def window_handles(self) -> list[str]: ... - def maximize_window(self) -> None: ... - def fullscreen_window(self) -> None: ... - def minimize_window(self) -> None: ... - @property - def switch_to(self) -> SwitchTo: ... - def switch_to_active_element(self): ... - def switch_to_window(self, window_name) -> None: ... - def switch_to_frame(self, frame_reference) -> None: ... - def switch_to_default_content(self) -> None: ... - def switch_to_alert(self): ... - def back(self) -> None: ... - def forward(self) -> None: ... - def refresh(self) -> None: ... - def get_cookies(self): ... - def get_cookie(self, name): ... - def delete_cookie(self, name) -> None: ... - def delete_all_cookies(self) -> None: ... - def add_cookie(self, cookie_dict) -> None: ... - def implicitly_wait(self, time_to_wait) -> None: ... - def set_script_timeout(self, time_to_wait) -> None: ... - def set_page_load_timeout(self, time_to_wait) -> None: ... - def find_element(self, by=..., value: Any | None = ...) -> WebElement: ... - def find_elements(self, by=..., value: Any | None = ...) -> list[WebElement]: ... - @property - def desired_capabilities(self): ... - def get_screenshot_as_file(self, filename) -> bool: ... - def save_screenshot(self, filename) -> bool: ... - def get_screenshot_as_png(self) -> bytes: ... - def get_screenshot_as_base64(self) -> str: ... - def set_window_size(self, width, height, windowHandle: str = ...) -> None: ... - def get_window_size(self, windowHandle: str = ...): ... - def set_window_position(self, x, y, windowHandle: str = ...): ... - def get_window_position(self, windowHandle: str = ...): ... - def get_window_rect(self): ... - def set_window_rect(self, x: Any | None = ..., y: Any | None = ..., width: Any | None = ..., height: Any | None = ...): ... - @property - def file_detector(self): ... - @file_detector.setter - def file_detector(self, detector) -> None: ... - @property - def orientation(self): ... - @orientation.setter - def orientation(self, value) -> None: ... - @property - def application_cache(self): ... - @property - def log_types(self): ... - def get_log(self, log_type): ... diff --git a/stubs/selenium/selenium/webdriver/remote/webelement.pyi b/stubs/selenium/selenium/webdriver/remote/webelement.pyi deleted file mode 100644 index 8aa4772566f6..000000000000 --- a/stubs/selenium/selenium/webdriver/remote/webelement.pyi +++ /dev/null @@ -1,64 +0,0 @@ -from typing import Any - -from selenium.common.exceptions import WebDriverException as WebDriverException -from selenium.webdriver.common.by import By as By - -from .command import Command as Command - -getAttribute_js: Any -isDisplayed_js: Any - -class WebElement: - def __init__(self, parent, id_, w3c: bool = ...) -> None: ... - @property - def tag_name(self): ... - @property - def text(self): ... - def click(self) -> None: ... - def submit(self) -> None: ... - def clear(self) -> None: ... - def get_property(self, name): ... - def get_attribute(self, name): ... - def is_selected(self): ... - def is_enabled(self): ... - def find_element_by_id(self, id_): ... - def find_elements_by_id(self, id_): ... - def find_element_by_name(self, name): ... - def find_elements_by_name(self, name): ... - def find_element_by_link_text(self, link_text): ... - def find_elements_by_link_text(self, link_text): ... - def find_element_by_partial_link_text(self, link_text): ... - def find_elements_by_partial_link_text(self, link_text): ... - def find_element_by_tag_name(self, name): ... - def find_elements_by_tag_name(self, name): ... - def find_element_by_xpath(self, xpath): ... - def find_elements_by_xpath(self, xpath): ... - def find_element_by_class_name(self, name): ... - def find_elements_by_class_name(self, name): ... - def find_element_by_css_selector(self, css_selector): ... - def find_elements_by_css_selector(self, css_selector): ... - def send_keys(self, *value) -> None: ... - def is_displayed(self): ... - @property - def location_once_scrolled_into_view(self): ... - @property - def size(self): ... - def value_of_css_property(self, property_name): ... - @property - def location(self): ... - @property - def rect(self): ... - @property - def screenshot_as_base64(self): ... - @property - def screenshot_as_png(self): ... - def screenshot(self, filename): ... - @property - def parent(self): ... - @property - def id(self): ... - def __eq__(self, element): ... - def __ne__(self, element): ... - def find_element(self, by=..., value: Any | None = ...): ... - def find_elements(self, by=..., value: Any | None = ...): ... - def __hash__(self): ... diff --git a/stubs/selenium/selenium/webdriver/safari/__init__.pyi b/stubs/selenium/selenium/webdriver/safari/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/safari/permissions.pyi b/stubs/selenium/selenium/webdriver/safari/permissions.pyi deleted file mode 100644 index dc83876e033e..000000000000 --- a/stubs/selenium/selenium/webdriver/safari/permissions.pyi +++ /dev/null @@ -1,2 +0,0 @@ -class Permission: - GET_USER_MEDIA: str diff --git a/stubs/selenium/selenium/webdriver/safari/remote_connection.pyi b/stubs/selenium/selenium/webdriver/safari/remote_connection.pyi deleted file mode 100644 index ae5623f8008a..000000000000 --- a/stubs/selenium/selenium/webdriver/safari/remote_connection.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from selenium.webdriver.remote.remote_connection import RemoteConnection as RemoteConnection - -class SafariRemoteConnection(RemoteConnection): - def __init__(self, remote_server_addr, keep_alive: bool = ...) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/safari/service.pyi b/stubs/selenium/selenium/webdriver/safari/service.pyi deleted file mode 100644 index d45b0525d48e..000000000000 --- a/stubs/selenium/selenium/webdriver/safari/service.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from typing import Any - -from selenium.webdriver.common import service as service - -class Service(service.Service): - service_args: Any - quiet: Any - def __init__(self, executable_path, port: int = ..., quiet: bool = ..., service_args: Any | None = ...) -> None: ... - def command_line_args(self): ... - @property - def service_url(self): ... diff --git a/stubs/selenium/selenium/webdriver/safari/webdriver.pyi b/stubs/selenium/selenium/webdriver/safari/webdriver.pyi deleted file mode 100644 index 3f9c07b549b6..000000000000 --- a/stubs/selenium/selenium/webdriver/safari/webdriver.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from typing import Any - -from selenium.common.exceptions import WebDriverException as WebDriverException -from selenium.webdriver.common.desired_capabilities import DesiredCapabilities as DesiredCapabilities -from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver - -from .remote_connection import SafariRemoteConnection as SafariRemoteConnection -from .service import Service as Service - -class WebDriver(RemoteWebDriver): - service: Any - def __init__( - self, - port: int = ..., - executable_path: str = ..., - reuse_service: bool = ..., - desired_capabilities=..., - quiet: bool = ..., - keep_alive: bool = ..., - service_args: Any | None = ..., - ) -> None: ... - def quit(self) -> None: ... - def set_permission(self, permission, value) -> None: ... - def get_permission(self, permission): ... - def debug(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/support/__init__.pyi b/stubs/selenium/selenium/webdriver/support/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/support/abstract_event_listener.pyi b/stubs/selenium/selenium/webdriver/support/abstract_event_listener.pyi deleted file mode 100644 index afea81634f32..000000000000 --- a/stubs/selenium/selenium/webdriver/support/abstract_event_listener.pyi +++ /dev/null @@ -1,20 +0,0 @@ -class AbstractEventListener: - def before_navigate_to(self, url, driver) -> None: ... - def after_navigate_to(self, url, driver) -> None: ... - def before_navigate_back(self, driver) -> None: ... - def after_navigate_back(self, driver) -> None: ... - def before_navigate_forward(self, driver) -> None: ... - def after_navigate_forward(self, driver) -> None: ... - def before_find(self, by, value, driver) -> None: ... - def after_find(self, by, value, driver) -> None: ... - def before_click(self, element, driver) -> None: ... - def after_click(self, element, driver) -> None: ... - def before_change_value_of(self, element, driver) -> None: ... - def after_change_value_of(self, element, driver) -> None: ... - def before_execute_script(self, script, driver) -> None: ... - def after_execute_script(self, script, driver) -> None: ... - def before_close(self, driver) -> None: ... - def after_close(self, driver) -> None: ... - def before_quit(self, driver) -> None: ... - def after_quit(self, driver) -> None: ... - def on_exception(self, exception, driver) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/support/color.pyi b/stubs/selenium/selenium/webdriver/support/color.pyi deleted file mode 100644 index 48bde30212a9..000000000000 --- a/stubs/selenium/selenium/webdriver/support/color.pyi +++ /dev/null @@ -1,31 +0,0 @@ -from typing import Any - -RGB_PATTERN: str -RGB_PCT_PATTERN: str -RGBA_PATTERN: str -RGBA_PCT_PATTERN: str -HEX_PATTERN: str -HEX3_PATTERN: str -HSL_PATTERN: str -HSLA_PATTERN: str - -class Color: - match_obj: Any - @staticmethod - def from_string(str_): ... - red: Any - green: Any - blue: Any - alpha: Any - def __init__(self, red, green, blue, alpha: int = ...) -> None: ... - @property - def rgb(self): ... - @property - def rgba(self): ... - @property - def hex(self): ... - def __eq__(self, other): ... - def __ne__(self, other): ... - def __hash__(self): ... - -Colors: Any diff --git a/stubs/selenium/selenium/webdriver/support/event_firing_webdriver.pyi b/stubs/selenium/selenium/webdriver/support/event_firing_webdriver.pyi deleted file mode 100644 index 0720d7f3bf98..000000000000 --- a/stubs/selenium/selenium/webdriver/support/event_firing_webdriver.pyi +++ /dev/null @@ -1,68 +0,0 @@ -from typing import Any - -from selenium.common.exceptions import WebDriverException as WebDriverException -from selenium.webdriver.common.by import By as By -from selenium.webdriver.remote.webdriver import WebDriver as WebDriver -from selenium.webdriver.remote.webelement import WebElement as WebElement - -from .abstract_event_listener import AbstractEventListener as AbstractEventListener - -class EventFiringWebDriver: - def __init__(self, driver, event_listener) -> None: ... - @property - def wrapped_driver(self): ... - def get(self, url) -> None: ... - def back(self) -> None: ... - def forward(self) -> None: ... - def execute_script(self, script, *args): ... - def execute_async_script(self, script, *args): ... - def close(self) -> None: ... - def quit(self) -> None: ... - def find_element(self, by=..., value: Any | None = ...): ... - def find_elements(self, by=..., value: Any | None = ...): ... - def find_element_by_id(self, id_): ... - def find_elements_by_id(self, id_): ... - def find_element_by_xpath(self, xpath): ... - def find_elements_by_xpath(self, xpath): ... - def find_element_by_link_text(self, link_text): ... - def find_elements_by_link_text(self, text): ... - def find_element_by_partial_link_text(self, link_text): ... - def find_elements_by_partial_link_text(self, link_text): ... - def find_element_by_name(self, name): ... - def find_elements_by_name(self, name): ... - def find_element_by_tag_name(self, name): ... - def find_elements_by_tag_name(self, name): ... - def find_element_by_class_name(self, name): ... - def find_elements_by_class_name(self, name): ... - def find_element_by_css_selector(self, css_selector): ... - def find_elements_by_css_selector(self, css_selector): ... - def __setattr__(self, item, value) -> None: ... - def __getattr__(self, name): ... - -class EventFiringWebElement: - def __init__(self, webelement, ef_driver) -> None: ... - @property - def wrapped_element(self): ... - def click(self) -> None: ... - def clear(self) -> None: ... - def send_keys(self, *value) -> None: ... - def find_element(self, by=..., value: Any | None = ...): ... - def find_elements(self, by=..., value: Any | None = ...): ... - def find_element_by_id(self, id_): ... - def find_elements_by_id(self, id_): ... - def find_element_by_name(self, name): ... - def find_elements_by_name(self, name): ... - def find_element_by_link_text(self, link_text): ... - def find_elements_by_link_text(self, link_text): ... - def find_element_by_partial_link_text(self, link_text): ... - def find_elements_by_partial_link_text(self, link_text): ... - def find_element_by_tag_name(self, name): ... - def find_elements_by_tag_name(self, name): ... - def find_element_by_xpath(self, xpath): ... - def find_elements_by_xpath(self, xpath): ... - def find_element_by_class_name(self, name): ... - def find_elements_by_class_name(self, name): ... - def find_element_by_css_selector(self, css_selector): ... - def find_elements_by_css_selector(self, css_selector): ... - def __setattr__(self, item, value) -> None: ... - def __getattr__(self, name): ... diff --git a/stubs/selenium/selenium/webdriver/support/events.pyi b/stubs/selenium/selenium/webdriver/support/events.pyi deleted file mode 100644 index 1e3e7dd86b37..000000000000 --- a/stubs/selenium/selenium/webdriver/support/events.pyi +++ /dev/null @@ -1,2 +0,0 @@ -from .abstract_event_listener import AbstractEventListener as AbstractEventListener -from .event_firing_webdriver import EventFiringWebDriver as EventFiringWebDriver diff --git a/stubs/selenium/selenium/webdriver/support/expected_conditions.pyi b/stubs/selenium/selenium/webdriver/support/expected_conditions.pyi deleted file mode 100644 index 642f4015f1c6..000000000000 --- a/stubs/selenium/selenium/webdriver/support/expected_conditions.pyi +++ /dev/null @@ -1,140 +0,0 @@ -from typing import Any - -from selenium.common.exceptions import ( - NoAlertPresentException as NoAlertPresentException, - NoSuchElementException as NoSuchElementException, - NoSuchFrameException as NoSuchFrameException, - StaleElementReferenceException as StaleElementReferenceException, - WebDriverException as WebDriverException, -) -from selenium.webdriver.remote.webdriver import WebElement as WebElement - -class title_is: - title: Any - def __init__(self, title) -> None: ... - def __call__(self, driver): ... - -class title_contains: - title: Any - def __init__(self, title) -> None: ... - def __call__(self, driver): ... - -class presence_of_element_located: - locator: Any - def __init__(self, locator) -> None: ... - def __call__(self, driver): ... - -class url_contains: - url: Any - def __init__(self, url) -> None: ... - def __call__(self, driver): ... - -class url_matches: - pattern: Any - def __init__(self, pattern) -> None: ... - def __call__(self, driver): ... - -class url_to_be: - url: Any - def __init__(self, url) -> None: ... - def __call__(self, driver): ... - -class url_changes: - url: Any - def __init__(self, url) -> None: ... - def __call__(self, driver): ... - -class visibility_of_element_located: - locator: Any - def __init__(self, locator) -> None: ... - def __call__(self, driver): ... - -class visibility_of: - element: Any - def __init__(self, element) -> None: ... - def __call__(self, ignored): ... - -class presence_of_all_elements_located: - locator: Any - def __init__(self, locator) -> None: ... - def __call__(self, driver): ... - -class visibility_of_any_elements_located: - locator: Any - def __init__(self, locator) -> None: ... - def __call__(self, driver): ... - -class visibility_of_all_elements_located: - locator: Any - def __init__(self, locator) -> None: ... - def __call__(self, driver): ... - -class text_to_be_present_in_element: - locator: Any - text: Any - def __init__(self, locator, text_) -> None: ... - def __call__(self, driver): ... - -class text_to_be_present_in_element_value: - locator: Any - text: Any - def __init__(self, locator, text_) -> None: ... - def __call__(self, driver): ... - -class frame_to_be_available_and_switch_to_it: - frame_locator: Any - def __init__(self, locator) -> None: ... - def __call__(self, driver): ... - -class invisibility_of_element_located: - target: Any - def __init__(self, locator) -> None: ... - def __call__(self, driver): ... - -class invisibility_of_element(invisibility_of_element_located): ... - -class element_to_be_clickable: - locator: Any - def __init__(self, locator) -> None: ... - def __call__(self, driver): ... - -class staleness_of: - element: Any - def __init__(self, element) -> None: ... - def __call__(self, ignored): ... - -class element_to_be_selected: - element: Any - def __init__(self, element) -> None: ... - def __call__(self, ignored): ... - -class element_located_to_be_selected: - locator: Any - def __init__(self, locator) -> None: ... - def __call__(self, driver): ... - -class element_selection_state_to_be: - element: Any - is_selected: Any - def __init__(self, element, is_selected) -> None: ... - def __call__(self, ignored): ... - -class element_located_selection_state_to_be: - locator: Any - is_selected: Any - def __init__(self, locator, is_selected) -> None: ... - def __call__(self, driver): ... - -class number_of_windows_to_be: - num_windows: Any - def __init__(self, num_windows) -> None: ... - def __call__(self, driver): ... - -class new_window_is_opened: - current_handles: Any - def __init__(self, current_handles) -> None: ... - def __call__(self, driver): ... - -class alert_is_present: - def __init__(self) -> None: ... - def __call__(self, driver): ... diff --git a/stubs/selenium/selenium/webdriver/support/select.pyi b/stubs/selenium/selenium/webdriver/support/select.pyi deleted file mode 100644 index 690656a3b1b7..000000000000 --- a/stubs/selenium/selenium/webdriver/support/select.pyi +++ /dev/null @@ -1,24 +0,0 @@ -from typing import Any - -from selenium.common.exceptions import ( - NoSuchElementException as NoSuchElementException, - UnexpectedTagNameException as UnexpectedTagNameException, -) -from selenium.webdriver.common.by import By as By - -class Select: - is_multiple: Any - def __init__(self, webelement) -> None: ... - @property - def options(self): ... - @property - def all_selected_options(self): ... - @property - def first_selected_option(self): ... - def select_by_value(self, value) -> None: ... - def select_by_index(self, index) -> None: ... - def select_by_visible_text(self, text) -> None: ... - def deselect_all(self) -> None: ... - def deselect_by_value(self, value) -> None: ... - def deselect_by_index(self, index) -> None: ... - def deselect_by_visible_text(self, text) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/support/ui.pyi b/stubs/selenium/selenium/webdriver/support/ui.pyi deleted file mode 100644 index 5ab0b93a1ee6..000000000000 --- a/stubs/selenium/selenium/webdriver/support/ui.pyi +++ /dev/null @@ -1,2 +0,0 @@ -from .select import Select as Select -from .wait import WebDriverWait as WebDriverWait diff --git a/stubs/selenium/selenium/webdriver/support/wait.pyi b/stubs/selenium/selenium/webdriver/support/wait.pyi deleted file mode 100644 index 51063488f970..000000000000 --- a/stubs/selenium/selenium/webdriver/support/wait.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from typing import Any - -from selenium.common.exceptions import NoSuchElementException as NoSuchElementException, TimeoutException as TimeoutException - -POLL_FREQUENCY: float -IGNORED_EXCEPTIONS: Any - -class WebDriverWait: - def __init__(self, driver, timeout, poll_frequency=..., ignored_exceptions: Any | None = ...) -> None: ... - def until(self, method, message: str = ...): ... - def until_not(self, method, message: str = ...): ... diff --git a/stubs/selenium/selenium/webdriver/webkitgtk/__init__.pyi b/stubs/selenium/selenium/webdriver/webkitgtk/__init__.pyi deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/stubs/selenium/selenium/webdriver/webkitgtk/options.pyi b/stubs/selenium/selenium/webdriver/webkitgtk/options.pyi deleted file mode 100644 index 61f298c4e935..000000000000 --- a/stubs/selenium/selenium/webdriver/webkitgtk/options.pyi +++ /dev/null @@ -1,18 +0,0 @@ -class Options: - KEY: str - def __init__(self) -> None: ... - @property - def capabilities(self): ... - def set_capability(self, name, value) -> None: ... - @property - def binary_location(self): ... - @binary_location.setter - def binary_location(self, value) -> None: ... - @property - def arguments(self): ... - def add_argument(self, argument) -> None: ... - @property - def overlay_scrollbars_enabled(self): ... - @overlay_scrollbars_enabled.setter - def overlay_scrollbars_enabled(self, value) -> None: ... - def to_capabilities(self): ... diff --git a/stubs/selenium/selenium/webdriver/webkitgtk/service.pyi b/stubs/selenium/selenium/webdriver/webkitgtk/service.pyi deleted file mode 100644 index dc2804fea4c5..000000000000 --- a/stubs/selenium/selenium/webdriver/webkitgtk/service.pyi +++ /dev/null @@ -1,8 +0,0 @@ -from typing import Any - -from selenium.webdriver.common import service as service - -class Service(service.Service): - def __init__(self, executable_path, port: int = ..., log_path: Any | None = ...) -> None: ... - def command_line_args(self): ... - def send_remote_shutdown_command(self) -> None: ... diff --git a/stubs/selenium/selenium/webdriver/webkitgtk/webdriver.pyi b/stubs/selenium/selenium/webdriver/webkitgtk/webdriver.pyi deleted file mode 100644 index 4bc5b02c8f4e..000000000000 --- a/stubs/selenium/selenium/webdriver/webkitgtk/webdriver.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from typing import Any - -from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver - -from .service import Service as Service - -class WebDriver(RemoteWebDriver): - service: Any - def __init__( - self, - executable_path: str = ..., - port: int = ..., - options: Any | None = ..., - desired_capabilities=..., - service_log_path: Any | None = ..., - keep_alive: bool = ..., - ) -> None: ... - def quit(self) -> None: ...