Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/NoSuchElementException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class NoSuchElementException : NotFoundException
/// <summary>
/// Link to the documentation for this error
/// </summary>
private static string supportUrl = baseSupportUrl + "#no-such-element-exception";
private static string supportUrl = baseSupportUrl + "#nosuchelementexception";

/// <summary>
/// Initializes a new instance of the <see cref="NoSuchElementException"/> class.
Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/common/RelativeLocatorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public void NearLocatorShouldNotFindFarElements()
{
var rect2 = driver.FindElement(RelativeBy.WithLocator(By.Id("rect4")).Near(rect));

}, Throws.TypeOf<NoSuchElementException>().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<NoSuchElementException>().With.Message.EqualTo("Unable to find element; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception"));
}

//------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/NoSuchElementException.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/common/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/error_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down