Skip to content
Merged
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/InvalidSelectorException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class InvalidSelectorException : WebDriverException
/// <summary>
/// Link to the documentation for this error
/// </summary>
private static string supportUrl = baseSupportUrl + "#invalid-selector-exception";
private static string supportUrl = baseSupportUrl + "#invalidselectorexception";

/// <summary>
/// Initializes a new instance of the <see cref="InvalidSelectorException"/> class.
Expand Down
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/src/webdriver/StaleElementReferenceException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class StaleElementReferenceException : WebDriverException
/// <summary>
/// Link to the documentation for this error
/// </summary>
private static string supportUrl = baseSupportUrl + "#stale-element-reference-exception";
private static string supportUrl = baseSupportUrl + "#staleelementreferenceexception";

/// <summary>
/// Initializes a new instance of the <see cref="StaleElementReferenceException"/> class.
Expand Down
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/InvalidSelectorException.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
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
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/common/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions rb/spec/integration/selenium/webdriver/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ 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',
exclude: {browser: %i[safari safari_preview], reason: 'Safari TimeoutError'} do
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

Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/element_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
Loading