-
Notifications
You must be signed in to change notification settings - Fork 344
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
Taiko timeouts when popup is triggered after closing tab #2313
Comments
This is mentioned in the docs Under
Happy to re-open this issue if it this still happens after modifying the script to
|
Thank you for your reply. I think my issue description was a bit too simplified. Let me explain the use case a bit more in detail. Some background information. We are using gauge to run taiko. When running in gauge, the code doesn't time out, mostly the code completes successfully. It just throws lots of these unhandled popup errors in the logs. But every now and then the run gets stuck and timeouts. Having hundreds of these unconfirmed popup handler error messages in gauge logs could have something to do with the occasional timeout. To simplify the issue report, when running the same directly in Taiko, it times out. The code example is about boxes. A great deal of our tests is follows the logic: We create a box, we do one or more tests on it, and at the end we delete the box. We would like to build the tests like this:
We cannot have this structure if there is a test that contains a popup. Throws the unhandled popup error
(Ref code snippet Problem case 1) As you presented, we could include the confirm handler for deletion in advance. In our use case it would mean that step("Create box") would include creation and deletion popup handlers
(Ref code snippet Problem case 2) Back to the original snippet. If I copied your answer and added a new "test" that triggers a popup after the closeTab, then the problem occurs. The tricky thing is that it doesnt happen every time. I ran the snippet below 10 times, of which it failed 6 times
Code references:
Problem case 1:
Problem case 2:
|
Thanks for spending time to explain this issue and specify the code samples. Re-opening it |
Describe the bug
Throws an error "There is no handler registered..." when confirm/prompt is triggered after a new tab is closed.
Happens only in headless mode.
To Reproduce
Logs
Expected behavior
Should not throw an error
Versions:
The text was updated successfully, but these errors were encountered: