-
Notifications
You must be signed in to change notification settings - Fork 1.4k
set unhandledPromptBehavior capability using local browser #1825
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Welcome! I talked a bit about that in this earlier ticket: #600 (comment) |
Thank you for the work around, that did allow me to interact with the alert. |
hi |
@Id1n Use self.accept_alert() for that. |
I have tried both methods |
@Id1n Do a regular |
I have the need to set the
unhandledPromptBehavior
capability to ignored when using a local browser instance. This appears to have been a change in how the weddrivers handle this specific capability in the past year, but I am not sure when. Before, I was able to do the below, and the alert would stay open between the click (which, in my case, presents a confirm alert) andself.wait_for_and_accept_alert()
. See snippet below:I have tried using the
--cap_file
option, but looking atbrowser_launcher.py
that only applies to remote instances, not local. I was able to force it by adding the capability in_set_chrome_options
and_set_firefox_options
.seleniumbase: 4.13.18
selenium: 4.8.2
Fedora Linux 37
chromedriver: 111.0.5563.64
Chrome: 111.0.5563.146
geckodriver: 0.32.2
Firefox: 111.0.1 (602aa16c20d4 2023-02-08 00:09 +0000)
The text was updated successfully, but these errors were encountered: