Skip to content

Commit 5e73df4

Browse files
authored
[dotnet][java][rb] Fix links to exception documentation on website (#16305)
1 parent b562a93 commit 5e73df4

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

dotnet/src/webdriver/InvalidSelectorException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

dotnet/src/webdriver/NoSuchElementException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

dotnet/src/webdriver/StaleElementReferenceException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

java/src/org/openqa/selenium/InvalidSelectorException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
public 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);

java/src/org/openqa/selenium/NoSuchElementException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@NullMarked
2828
public 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);

java/src/org/openqa/selenium/StaleElementReferenceException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@NullMarked
2828
public 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);

rb/lib/selenium/webdriver/common/error.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

rb/spec/integration/selenium/webdriver/driver_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

rb/spec/integration/selenium/webdriver/element_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

rb/spec/integration/selenium/webdriver/error_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)