From 2586e66ce91bd6cabba189ae40f0aebd4b8a742b Mon Sep 17 00:00:00 2001 From: Corey Goldberg <1113081+cgoldberg@users.noreply.github.com> Date: Thu, 5 Jun 2025 11:10:17 -0400 Subject: [PATCH] Revert "[py] Update urls to the correct troubleshooting links (#15862)" This reverts commit 2d2cb13ddeb906fcda1628236a434718cf8b3179. --- py/selenium/common/exceptions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/selenium/common/exceptions.py b/py/selenium/common/exceptions.py index 8382d22d8033e..6f10146b779d4 100644 --- a/py/selenium/common/exceptions.py +++ b/py/selenium/common/exceptions.py @@ -75,7 +75,7 @@ class NoSuchElementException(WebDriverException): def __init__( self, msg: Optional[str] = None, screen: Optional[str] = None, stacktrace: Optional[Sequence[str]] = None ) -> None: - with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#nosuchelementexception" + with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#no-such-element-exception" super().__init__(with_support, screen, stacktrace) @@ -114,7 +114,7 @@ class StaleElementReferenceException(WebDriverException): def __init__( self, msg: Optional[str] = None, screen: Optional[str] = None, stacktrace: Optional[Sequence[str]] = None ) -> None: - with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#staleelementreferenceexception" + with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#stale-element-reference-exception" super().__init__(with_support, screen, stacktrace) @@ -213,7 +213,7 @@ class InvalidSelectorException(WebDriverException): def __init__( self, msg: Optional[str] = None, screen: Optional[str] = None, stacktrace: Optional[Sequence[str]] = None ) -> None: - with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#invalidselectorexception" + with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#invalid-selector-exception" super().__init__(with_support, screen, stacktrace)