diff --git a/py/selenium/common/exceptions.py b/py/selenium/common/exceptions.py index 6f10146b779d4..8382d22d8033e 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}#no-such-element-exception" + with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#nosuchelementexception" 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}#stale-element-reference-exception" + with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#staleelementreferenceexception" 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}#invalid-selector-exception" + with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#invalidselectorexception" super().__init__(with_support, screen, stacktrace)