[py] Selenium Manager prevents these error messages
diff --git a/py/selenium/webdriver/chrome/service.py b/py/selenium/webdriver/chrome/service.py index 6d0a06d..fc012cc 100644 --- a/py/selenium/webdriver/chrome/service.py +++ b/py/selenium/webdriver/chrome/service.py
@@ -50,6 +50,5 @@ log_path=log_path, log_output=log_output, env=env, - start_error_message="Please see https://chromedriver.chromium.org/home", **kwargs, )
diff --git a/py/selenium/webdriver/chromium/service.py b/py/selenium/webdriver/chromium/service.py index 39f020f..68727f7 100644 --- a/py/selenium/webdriver/chromium/service.py +++ b/py/selenium/webdriver/chromium/service.py
@@ -43,7 +43,6 @@ log_path: typing.Optional[str] = None, log_output: SubprocessStdAlias = None, env: typing.Optional[typing.Mapping[str, str]] = None, - start_error_message: typing.Optional[str] = None, **kwargs, ) -> None: self.service_args = service_args or [] @@ -65,7 +64,6 @@ port=port, env=env, log_output=self.log_output, - start_error_message=start_error_message, **kwargs, )
diff --git a/py/selenium/webdriver/common/service.py b/py/selenium/webdriver/common/service.py index 022711b..25a65bd 100644 --- a/py/selenium/webdriver/common/service.py +++ b/py/selenium/webdriver/common/service.py
@@ -55,7 +55,6 @@ log_file: SubprocessStdAlias = None, log_output: SubprocessStdAlias = None, env: typing.Optional[typing.Mapping[typing.Any, typing.Any]] = None, - start_error_message: typing.Optional[str] = None, **kwargs, ) -> None: if isinstance(log_output, str): @@ -73,7 +72,6 @@ self._path = executable self.port = port or utils.free_port() - self.start_error_message = start_error_message or "" # Default value for every python subprocess: subprocess.Popen(..., creationflags=0) self.popen_kw = kwargs.pop("popen_kw", {}) self.creation_flags = self.popen_kw.pop("creation_flags", 0) @@ -219,16 +217,8 @@ except TypeError: raise except OSError as err: - if err.errno == errno.ENOENT: - raise WebDriverException( - f"'{os.path.basename(self._path)}' executable needs to be in PATH. {self.start_error_message}" - ) if err.errno == errno.EACCES: raise WebDriverException( f"'{os.path.basename(self._path)}' executable may have wrong permissions. {self.start_error_message}" ) raise - except Exception as e: - raise WebDriverException( - f"The executable {os.path.basename(self._path)} needs to be available in the path. {self.start_error_message}\n{str(e)}" - )
diff --git a/py/selenium/webdriver/edge/service.py b/py/selenium/webdriver/edge/service.py index 79b18bc..4764101 100644 --- a/py/selenium/webdriver/edge/service.py +++ b/py/selenium/webdriver/edge/service.py
@@ -64,6 +64,5 @@ log_path=log_path, log_output=log_output, env=env, - start_error_message="Please download from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/", **kwargs, )
diff --git a/py/selenium/webdriver/firefox/service.py b/py/selenium/webdriver/firefox/service.py index bb4e6da..068d778 100644 --- a/py/selenium/webdriver/firefox/service.py +++ b/py/selenium/webdriver/firefox/service.py
@@ -65,7 +65,6 @@ port=port, log_output=log_output, env=env, - start_error_message="Please download the binary from https://github.com/mozilla/geckodriver/releases", **kwargs, )
diff --git a/py/selenium/webdriver/ie/service.py b/py/selenium/webdriver/ie/service.py index 79fa5ed..21dff09 100644 --- a/py/selenium/webdriver/ie/service.py +++ b/py/selenium/webdriver/ie/service.py
@@ -62,7 +62,6 @@ executable_path, port=port, log_output=log_output, - start_error_message="Please download the binary from https://www.selenium.dev/downloads/ and read up at https://www.selenium.dev/documentation/ie_driver_server/", **kwargs, )
diff --git a/py/selenium/webdriver/remote/command.py b/py/selenium/webdriver/remote/command.py index 01e2d1d..79c1e4a 100644 --- a/py/selenium/webdriver/remote/command.py +++ b/py/selenium/webdriver/remote/command.py
@@ -23,7 +23,7 @@ used to marshal commands through a service that implements WebDriver's remote wire protocol: - https://www.selenium.dev/documentation/legacy/json_wire_protocol/ + https://w3c.github.io/webdriver/ """ # Keep in sync with org.openqa.selenium.remote.DriverCommand
diff --git a/py/selenium/webdriver/safari/service.py b/py/selenium/webdriver/safari/service.py index d5ffbfc..9ff6179 100644 --- a/py/selenium/webdriver/safari/service.py +++ b/py/selenium/webdriver/safari/service.py
@@ -55,7 +55,6 @@ executable=executable_path, port=port, env=env, - start_error_message=f"Using Safari built-in binary from {DEFAULT_EXECUTABLE_PATH}", **kwargs, )