-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Alert on browser close prevents browser from closing #1225
Comments
@zonie600 Try to accept alert with: |
@pisarenco92 Nope, no luck. Here's what my test looks like. @RunWith(SerenityParameterizedRunner.class)
} |
I did find this issue the other day. This seems to be the problem I'm dealing with. mozilla/geckodriver#1151 |
Our application pops up an "Are you sure?" type of alert when the browser closes while there is unsaved work. The issue I'm having is, when a test fails and the browser tries to close, the alert pops up and prevents the browser from closing. The alert can't be accepted because the webdriver has already been closed. Therefore, the browser just sits there blocking all other tests from executing. (We're in the process of getting Selenium Grid up and running, but this will still block one of the available slots.)
Let me ask generically first if there is an obvious solution that I'm missing. I've tried putting in code to accept the alert as the last step in the test, and in the @after and the @afterclass, to no avail. I also have these properties set:
serenity.restart.browser.for.each = scenario
serenity.restart.browser.frequency = 1
If more information is needed, I can post a code sample.
The text was updated successfully, but these errors were encountered: