diff --git a/dotnet/src/webdriver/InvalidSelectorException.cs b/dotnet/src/webdriver/InvalidSelectorException.cs index fcf2753f3ab8b..84774425b02ec 100644 --- a/dotnet/src/webdriver/InvalidSelectorException.cs +++ b/dotnet/src/webdriver/InvalidSelectorException.cs @@ -30,7 +30,7 @@ public class InvalidSelectorException : WebDriverException /// /// Link to the documentation for this error /// - private static string supportUrl = baseSupportUrl + "#invalid-selector-exception"; + private static string supportUrl = baseSupportUrl + "#invalidselectorexception"; /// /// Initializes a new instance of the class. diff --git a/dotnet/src/webdriver/NoSuchElementException.cs b/dotnet/src/webdriver/NoSuchElementException.cs index b90a62e7cea53..ec7c1fd487dd3 100644 --- a/dotnet/src/webdriver/NoSuchElementException.cs +++ b/dotnet/src/webdriver/NoSuchElementException.cs @@ -31,7 +31,7 @@ public class NoSuchElementException : NotFoundException /// /// Link to the documentation for this error /// - private static string supportUrl = baseSupportUrl + "#no-such-element-exception"; + private static string supportUrl = baseSupportUrl + "#nosuchelementexception"; /// /// Initializes a new instance of the class. diff --git a/dotnet/src/webdriver/StaleElementReferenceException.cs b/dotnet/src/webdriver/StaleElementReferenceException.cs index 2cf7a4dd717a7..6cf78911fee72 100644 --- a/dotnet/src/webdriver/StaleElementReferenceException.cs +++ b/dotnet/src/webdriver/StaleElementReferenceException.cs @@ -30,7 +30,7 @@ public class StaleElementReferenceException : WebDriverException /// /// Link to the documentation for this error /// - private static string supportUrl = baseSupportUrl + "#stale-element-reference-exception"; + private static string supportUrl = baseSupportUrl + "#staleelementreferenceexception"; /// /// Initializes a new instance of the class. diff --git a/java/src/org/openqa/selenium/InvalidSelectorException.java b/java/src/org/openqa/selenium/InvalidSelectorException.java index 75ef229a502b5..fe08d8caa488e 100644 --- a/java/src/org/openqa/selenium/InvalidSelectorException.java +++ b/java/src/org/openqa/selenium/InvalidSelectorException.java @@ -27,7 +27,7 @@ */ public class InvalidSelectorException extends WebDriverException { - private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#invalid-selector-exception"; + private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#invalidselectorexception"; public InvalidSelectorException(String reason) { super(reason); diff --git a/java/src/org/openqa/selenium/NoSuchElementException.java b/java/src/org/openqa/selenium/NoSuchElementException.java index 0ec0c01558883..be34be0ee8015 100644 --- a/java/src/org/openqa/selenium/NoSuchElementException.java +++ b/java/src/org/openqa/selenium/NoSuchElementException.java @@ -27,7 +27,7 @@ @NullMarked public class NoSuchElementException extends NotFoundException { - private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#no-such-element-exception"; + private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#nosuchelementexception"; public NoSuchElementException(@Nullable String reason) { super(reason); diff --git a/java/src/org/openqa/selenium/StaleElementReferenceException.java b/java/src/org/openqa/selenium/StaleElementReferenceException.java index 547293c7cf1a4..fae3efa8c3bfa 100644 --- a/java/src/org/openqa/selenium/StaleElementReferenceException.java +++ b/java/src/org/openqa/selenium/StaleElementReferenceException.java @@ -27,7 +27,7 @@ @NullMarked public class StaleElementReferenceException extends WebDriverException { - private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#stale-element-reference-exception"; + private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#staleelementreferenceexception"; public StaleElementReferenceException(@Nullable String message) { super(message); diff --git a/rb/lib/selenium/webdriver/common/error.rb b/rb/lib/selenium/webdriver/common/error.rb index ed452cb7377df..91a684a51268f 100644 --- a/rb/lib/selenium/webdriver/common/error.rb +++ b/rb/lib/selenium/webdriver/common/error.rb @@ -38,9 +38,9 @@ def self.for_error(error) ERROR_URL = 'https://www.selenium.dev/documentation/webdriver/troubleshooting/errors' URLS = { - NoSuchElementError: "#{ERROR_URL}#no-such-element-exception", - StaleElementReferenceError: "#{ERROR_URL}#stale-element-reference-exception", - InvalidSelectorError: "#{ERROR_URL}#invalid-selector-exception", + NoSuchElementError: "#{ERROR_URL}#nosuchelementexception", + StaleElementReferenceError: "#{ERROR_URL}#staleelementreferenceexception", + InvalidSelectorError: "#{ERROR_URL}#invalidselectorexception", NoSuchDriverError: "#{ERROR_URL}/driver_location" }.freeze diff --git a/rb/spec/integration/selenium/webdriver/driver_spec.rb b/rb/spec/integration/selenium/webdriver/driver_spec.rb index c1071814ab168..90594ea4888b4 100644 --- a/rb/spec/integration/selenium/webdriver/driver_spec.rb +++ b/rb/spec/integration/selenium/webdriver/driver_spec.rb @@ -149,7 +149,7 @@ module WebDriver driver.navigate.to url_for('xhtmlTest.html') expect { driver.find_element(id: 'not-there') - }.to raise_error(Error::NoSuchElementError, /errors#no-such-element-exception/) + }.to raise_error(Error::NoSuchElementError, /errors#nosuchelementexception/) end it 'raises if invalid locator', @@ -157,7 +157,7 @@ module WebDriver driver.navigate.to url_for('xhtmlTest.html') expect { driver.find_element(xpath: '*?//-') - }.to raise_error(Error::InvalidSelectorError, /errors#invalid-selector-exception/) + }.to raise_error(Error::InvalidSelectorError, /errors#invalidselectorexception/) end end diff --git a/rb/spec/integration/selenium/webdriver/element_spec.rb b/rb/spec/integration/selenium/webdriver/element_spec.rb index d5985d64dcf0d..3884ca724d9d7 100644 --- a/rb/spec/integration/selenium/webdriver/element_spec.rb +++ b/rb/spec/integration/selenium/webdriver/element_spec.rb @@ -46,7 +46,7 @@ module WebDriver driver.navigate.refresh expect { button.click }.to raise_exception(Error::StaleElementReferenceError, - /errors#stale-element-reference-exception/) + /errors#staleelementreferenceexception/) reset_driver!(time: 1) if %i[safari safari_preview].include? GlobalTestEnv.browser end diff --git a/rb/spec/integration/selenium/webdriver/error_spec.rb b/rb/spec/integration/selenium/webdriver/error_spec.rb index 7a72860c0340c..9be66c1289300 100644 --- a/rb/spec/integration/selenium/webdriver/error_spec.rb +++ b/rb/spec/integration/selenium/webdriver/error_spec.rb @@ -27,7 +27,7 @@ module WebDriver expect { driver.find_element(id: 'nonexistent') - }.to raise_error(WebDriver::Error::NoSuchElementError, /#no-such-element-exception/) + }.to raise_error(WebDriver::Error::NoSuchElementError, /#nosuchelementexception/) end it 'has backtrace locations' do