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
3030 /// <summary>
3131 /// Link to the documentation for this error
3232 /// </summary>
33- private static string supportUrl = baseSupportUrl + "#invalid-selector-exception " ;
33+ private static string supportUrl = baseSupportUrl + "#invalidselectorexception " ;
3434
3535 /// <summary>
3636 /// 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
3131 /// <summary>
3232 /// Link to the documentation for this error
3333 /// </summary>
34- private static string supportUrl = baseSupportUrl + "#no-such-element-exception " ;
34+ private static string supportUrl = baseSupportUrl + "#nosuchelementexception " ;
3535
3636 /// <summary>
3737 /// 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
3030 /// <summary>
3131 /// Link to the documentation for this error
3232 /// </summary>
33- private static string supportUrl = baseSupportUrl + "#stale-element-reference-exception " ;
33+ private static string supportUrl = baseSupportUrl + "#staleelementreferenceexception " ;
3434
3535 /// <summary>
3636 /// Initializes a new instance of the <see cref="StaleElementReferenceException"/> class.
Original file line number Diff line number Diff line change 2727 */
2828public class InvalidSelectorException extends WebDriverException {
2929
30- private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#invalid-selector-exception " ;
30+ private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#invalidselectorexception " ;
3131
3232 public InvalidSelectorException (String reason ) {
3333 super (reason );
Original file line number Diff line number Diff line change 2727@ NullMarked
2828public class NoSuchElementException extends NotFoundException {
2929
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 " ;
3131
3232 public NoSuchElementException (@ Nullable String reason ) {
3333 super (reason );
Original file line number Diff line number Diff line change 2727@ NullMarked
2828public class StaleElementReferenceException extends WebDriverException {
2929
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 " ;
3131
3232 public StaleElementReferenceException (@ Nullable String message ) {
3333 super (message );
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ def self.for_error(error)
3838 ERROR_URL = 'https://www.selenium.dev/documentation/webdriver/troubleshooting/errors'
3939
4040 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 " ,
4444 NoSuchDriverError : "#{ ERROR_URL } /driver_location"
4545 } . freeze
4646
Original file line number Diff line number Diff line change @@ -149,15 +149,15 @@ module WebDriver
149149 driver . navigate . to url_for ( 'xhtmlTest.html' )
150150 expect {
151151 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 / )
153153 end
154154
155155 it 'raises if invalid locator' ,
156156 exclude : { browser : %i[ safari safari_preview ] , reason : 'Safari TimeoutError' } do
157157 driver . navigate . to url_for ( 'xhtmlTest.html' )
158158 expect {
159159 driver . find_element ( xpath : '*?//-' )
160- } . to raise_error ( Error ::InvalidSelectorError , /errors#invalid-selector-exception / )
160+ } . to raise_error ( Error ::InvalidSelectorError , /errors#invalidselectorexception / )
161161 end
162162 end
163163
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ module WebDriver
4646 driver . navigate . refresh
4747
4848 expect { button . click } . to raise_exception ( Error ::StaleElementReferenceError ,
49- /errors#stale-element-reference-exception / )
49+ /errors#staleelementreferenceexception / )
5050
5151 reset_driver! ( time : 1 ) if %i[ safari safari_preview ] . include? GlobalTestEnv . browser
5252 end
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module WebDriver
2727
2828 expect {
2929 driver . find_element ( id : 'nonexistent' )
30- } . to raise_error ( WebDriver ::Error ::NoSuchElementError , /#no-such-element-exception / )
30+ } . to raise_error ( WebDriver ::Error ::NoSuchElementError , /#nosuchelementexception / )
3131 end
3232
3333 it 'has backtrace locations' do
You can’t perform that action at this time.
0 commit comments