-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[🐛 Bug]: Firefox JS Alert is closed automatically? #14290
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
Comments
@adeherdt-r7, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Additional information : serenity-bdd/serenity-core#2470 |
Hi, @adeherdt-r7. Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue. Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough. Reply to this issue when all information is provided, thank you. |
We are closing this issue as we didn't get a reply from the original poster. If someone is having this issue, please feel free to comment and provide a concise reproducible test case that includes the page required to execute the scenario (a sample page or a public site). If you have any questions or need help, join us in the IRC/Slack channel, where the community can also assist you. |
I have the same problem but only with chrome browser. I had Selenium.WebDriver" Version="4.22.0" and Selenium.WebDriver.ChromeDriver" Version="126.0.6478.12600" in the solution of autotests. My Chromebrowser that installed on Windows had same version. But 5 days ago my Chome browser on Windows got updated to the v = 127.0.6533.73 and tests start failed with issue: OpenQA.Selenium.NoAlertPresentException : no such alert (Session info: chrome=127.0.6533.73). So, I did not change packages versions of selenium or ChromeDriver, updated only Chrome browser (not intentionally). Test steps:
When I do same steps manually, the browser alert appears. Also, I tried to update packages locally to selenium v 4.23 and driver = 127.0.6533.73. But it did not help. Also I have anothe branch with tests, where I am trying new approach. And for that tests I run in the docker and with chrome-node 126 version. And no problem at all. |
The issue seems to originate from here https://issuetracker.google.com/issues/42323796 and here w3c/webdriver#1294 (comment) where the W3C standard for user prompts wasn't applied correctly on Chromium and Firefox. This is in reference to this spec https://w3c.github.io/webdriver/#user-prompts
|
This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs. |
What happened?
Hello,
I'm working on a test suite in Ruby on Rails using Selenium, Capybara and Firefox as test browser.
At some point during the tests, the browser is supposed to click on a button, see the alert and accept it.
The problem is, this is not happening in firefox.
When I click the button manually, the alert actually shows, but when the test-framework tries it, nothing happens.
However, when I set a breakpoint on the step, where the button is clicked, I can see the alert appearing.
But as soon as the framework proceeds to the next step, the alert disappears and the step responsible for clicking it fails.
How can we reproduce the issue?
Relevant log output
Operating System
macOS Sonoma 14.5
Selenium version
selenium-webdriver (4.22.0)
What are the browser(s) and version(s) where you see this issue?
Firefox 128.0
What are the browser driver(s) and version(s) where you see this issue?
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: