-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Firefox when clicking on a non-working link (for example, https://example), Selenide displays an error: #2725
Comments
I guess the problem is that Selenide underhood can retry failed clicks with WebDriverException: Reached error page. Obviously, on a broken page, there is no #link, and you receive the wrong last error |
Solution - dont retry |
asolntsev
added a commit
that referenced
this issue
Apr 25, 2024
... when user clicks a link with invalid URL, and Firefox throws an error like "Reached error page: about:neterror?e=dnsNotFound..."
asolntsev
added a commit
that referenced
this issue
Apr 25, 2024
asolntsev
added a commit
that referenced
this issue
Apr 25, 2024
... when user clicks a link with invalid URL, and Firefox throws an error like "Reached error page: about:neterror?e=dnsNotFound..."
asolntsev
added a commit
that referenced
this issue
Apr 25, 2024
asolntsev
added a commit
that referenced
this issue
Apr 25, 2024
... when user clicks a link with invalid URL, and Firefox throws an error like "Reached error page: about:neterror?e=dnsNotFound..."
asolntsev
added a commit
that referenced
this issue
Apr 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Firefox when clicking on a non-working link (for example, https://example), Selenide displays an error:
Stacktrace https://pastebin.com/0FEnA98C
But in Selenium, when performing similar actions, another error is displayed:
In Chrome and Safari these tests are green.
My question is where is the correct error: in Selenide or Selenium? It looks like there is a more accurate error in Selenium.
And maybe in Chrome and Safari the test should fail, because according to the standard W3C, following a link should also be checked and the response status should be returned?
Minimum code to reproduce:
HTML:
Versions:
Originally posted by @prafair in #2724
The text was updated successfully, but these errors were encountered: