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/test/common/RelativeLocatorTest.cs b/dotnet/test/common/RelativeLocatorTest.cs index 4effd89183c4b..8ab42ad93e37c 100644 --- a/dotnet/test/common/RelativeLocatorTest.cs +++ b/dotnet/test/common/RelativeLocatorTest.cs @@ -224,7 +224,7 @@ public void NearLocatorShouldNotFindFarElements() { var rect2 = driver.FindElement(RelativeBy.WithLocator(By.Id("rect4")).Near(rect)); - }, Throws.TypeOf().With.Message.EqualTo("Unable to find element; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception")); + }, Throws.TypeOf().With.Message.EqualTo("Unable to find element; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception")); } //------------------------------------------------------------------ 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/rb/lib/selenium/webdriver/common/error.rb b/rb/lib/selenium/webdriver/common/error.rb index ed452cb7377df..f43484a13cd25 100644 --- a/rb/lib/selenium/webdriver/common/error.rb +++ b/rb/lib/selenium/webdriver/common/error.rb @@ -38,7 +38,7 @@ def self.for_error(error) ERROR_URL = 'https://www.selenium.dev/documentation/webdriver/troubleshooting/errors' URLS = { - NoSuchElementError: "#{ERROR_URL}#no-such-element-exception", + NoSuchElementError: "#{ERROR_URL}#nosuchelementexception", StaleElementReferenceError: "#{ERROR_URL}#stale-element-reference-exception", InvalidSelectorError: "#{ERROR_URL}#invalid-selector-exception", NoSuchDriverError: "#{ERROR_URL}/driver_location" diff --git a/rb/spec/integration/selenium/webdriver/driver_spec.rb b/rb/spec/integration/selenium/webdriver/driver_spec.rb index c1071814ab168..52de802d09433 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', 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