File tree Expand file tree Collapse file tree 10 files changed +13
-13
lines changed
java/src/org/openqa/selenium
lib/selenium/webdriver/common
spec/integration/selenium/webdriver Expand file tree Collapse file tree 10 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class InvalidSelectorException : WebDriverException
30
30
/// <summary>
31
31
/// Link to the documentation for this error
32
32
/// </summary>
33
- private static string supportUrl = baseSupportUrl + "#invalid-selector-exception " ;
33
+ private static string supportUrl = baseSupportUrl + "#invalidselectorexception " ;
34
34
35
35
/// <summary>
36
36
/// Initializes a new instance of the <see cref="InvalidSelectorException"/> class.
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public class NoSuchElementException : NotFoundException
31
31
/// <summary>
32
32
/// Link to the documentation for this error
33
33
/// </summary>
34
- private static string supportUrl = baseSupportUrl + "#no-such-element-exception " ;
34
+ private static string supportUrl = baseSupportUrl + "#nosuchelementexception " ;
35
35
36
36
/// <summary>
37
37
/// Initializes a new instance of the <see cref="NoSuchElementException"/> class.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class StaleElementReferenceException : WebDriverException
30
30
/// <summary>
31
31
/// Link to the documentation for this error
32
32
/// </summary>
33
- private static string supportUrl = baseSupportUrl + "#stale-element-reference-exception " ;
33
+ private static string supportUrl = baseSupportUrl + "#staleelementreferenceexception " ;
34
34
35
35
/// <summary>
36
36
/// Initializes a new instance of the <see cref="StaleElementReferenceException"/> class.
Original file line number Diff line number Diff line change 27
27
*/
28
28
public class InvalidSelectorException extends WebDriverException {
29
29
30
- private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#invalid-selector-exception " ;
30
+ private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#invalidselectorexception " ;
31
31
32
32
public InvalidSelectorException (String reason ) {
33
33
super (reason );
Original file line number Diff line number Diff line change 27
27
@ NullMarked
28
28
public class NoSuchElementException extends NotFoundException {
29
29
30
- private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#no-such-element-exception " ;
30
+ private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#nosuchelementexception " ;
31
31
32
32
public NoSuchElementException (@ Nullable String reason ) {
33
33
super (reason );
Original file line number Diff line number Diff line change 27
27
@ NullMarked
28
28
public class StaleElementReferenceException extends WebDriverException {
29
29
30
- private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#stale-element-reference-exception " ;
30
+ private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#staleelementreferenceexception " ;
31
31
32
32
public StaleElementReferenceException (@ Nullable String message ) {
33
33
super (message );
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ def self.for_error(error)
38
38
ERROR_URL = 'https://www.selenium.dev/documentation/webdriver/troubleshooting/errors'
39
39
40
40
URLS = {
41
- NoSuchElementError : "#{ ERROR_URL } #no-such-element-exception " ,
42
- StaleElementReferenceError : "#{ ERROR_URL } #stale-element-reference-exception " ,
43
- InvalidSelectorError : "#{ ERROR_URL } #invalid-selector-exception " ,
41
+ NoSuchElementError : "#{ ERROR_URL } #nosuchelementexception " ,
42
+ StaleElementReferenceError : "#{ ERROR_URL } #staleelementreferenceexception " ,
43
+ InvalidSelectorError : "#{ ERROR_URL } #invalidselectorexception " ,
44
44
NoSuchDriverError : "#{ ERROR_URL } /driver_location"
45
45
} . freeze
46
46
Original file line number Diff line number Diff line change @@ -149,15 +149,15 @@ module WebDriver
149
149
driver . navigate . to url_for ( 'xhtmlTest.html' )
150
150
expect {
151
151
driver . find_element ( id : 'not-there' )
152
- } . to raise_error ( Error ::NoSuchElementError , /errors#no-such-element-exception / )
152
+ } . to raise_error ( Error ::NoSuchElementError , /errors#nosuchelementexception / )
153
153
end
154
154
155
155
it 'raises if invalid locator' ,
156
156
exclude : { browser : %i[ safari safari_preview ] , reason : 'Safari TimeoutError' } do
157
157
driver . navigate . to url_for ( 'xhtmlTest.html' )
158
158
expect {
159
159
driver . find_element ( xpath : '*?//-' )
160
- } . to raise_error ( Error ::InvalidSelectorError , /errors#invalid-selector-exception / )
160
+ } . to raise_error ( Error ::InvalidSelectorError , /errors#invalidselectorexception / )
161
161
end
162
162
end
163
163
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ module WebDriver
46
46
driver . navigate . refresh
47
47
48
48
expect { button . click } . to raise_exception ( Error ::StaleElementReferenceError ,
49
- /errors#stale-element-reference-exception / )
49
+ /errors#staleelementreferenceexception / )
50
50
51
51
reset_driver! ( time : 1 ) if %i[ safari safari_preview ] . include? GlobalTestEnv . browser
52
52
end
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module WebDriver
27
27
28
28
expect {
29
29
driver . find_element ( id : 'nonexistent' )
30
- } . to raise_error ( WebDriver ::Error ::NoSuchElementError , /#no-such-element-exception / )
30
+ } . to raise_error ( WebDriver ::Error ::NoSuchElementError , /#nosuchelementexception / )
31
31
end
32
32
33
33
it 'has backtrace locations' do
You can’t perform that action at this time.
0 commit comments