I am scraping a webpage using Selenium webdriver in Python
The webpage I am working on, has a form. I am able to fill the form and then I click on the Submit button.
If you want to Accept or Click the popup, regardless of for what it is then
alert.accept
Where alert is object of class selenium.webdriver.common.alert.Alert(driver) and accept is method of that object
alert
selenium.webdriver.common.alert.Alert(driver)
accept
Source