You could also probably do this. Untested though.
fp = webdriver.FirefoxProfile() fp.set_preference("dom.disable_beforeunload", True)
Recommended Tutorials:
Python / Selenium Turning Off Alert
|
|
Messages In This Thread |
Python / Selenium Turning Off Alert - by graham23s - Aug-17-2019, 02:33 PM
RE: Python / Selenium Turning Off Alert - by Larz60+ - Aug-18-2019, 12:42 AM
RE: Python / Selenium Turning Off Alert - by graham23s - Aug-18-2019, 07:38 AM
RE: Python / Selenium Turning Off Alert - by metulburr - Aug-18-2019, 02:12 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
How to use data from an API, to create an alert? | PopFendi | 8 | 3,804 |
Apr-22-2021, 02:21 PM Last Post: PopFendi |
|
Monitor specific line of code and get alert | Olimpiarob | 0 | 1,523 |
Jul-08-2020, 10:06 AM Last Post: Olimpiarob |
|
Issue closing an Modal Alert (popup) | leviathan54 | 8 | 5,907 |
Apr-23-2019, 02:00 PM Last Post: leviathan54 |
|
Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. | AcszE | 1 | 3,627 |
Nov-03-2017, 08:41 PM Last Post: metulburr |