Skip to content

Commit 2d2cb13

Browse files
authored
[py] Update urls to the correct troubleshooting links (#15862)
1 parent f5382c9 commit 2d2cb13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/selenium/common/exceptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class NoSuchElementException(WebDriverException):
7575
def __init__(
7676
self, msg: Optional[str] = None, screen: Optional[str] = None, stacktrace: Optional[Sequence[str]] = None
7777
) -> None:
78-
with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#no-such-element-exception"
78+
with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#nosuchelementexception"
7979

8080
super().__init__(with_support, screen, stacktrace)
8181

@@ -114,7 +114,7 @@ class StaleElementReferenceException(WebDriverException):
114114
def __init__(
115115
self, msg: Optional[str] = None, screen: Optional[str] = None, stacktrace: Optional[Sequence[str]] = None
116116
) -> None:
117-
with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#stale-element-reference-exception"
117+
with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#staleelementreferenceexception"
118118

119119
super().__init__(with_support, screen, stacktrace)
120120

@@ -213,7 +213,7 @@ class InvalidSelectorException(WebDriverException):
213213
def __init__(
214214
self, msg: Optional[str] = None, screen: Optional[str] = None, stacktrace: Optional[Sequence[str]] = None
215215
) -> None:
216-
with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#invalid-selector-exception"
216+
with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#invalidselectorexception"
217217

218218
super().__init__(with_support, screen, stacktrace)
219219

0 commit comments

Comments
 (0)