python selenium disable os pop-ups -
i trying automate file downloading process selenium in python. until succeeded in writing code realize it. there little problem pretty disturbing: each time launch program in firefox (i use webdriver.firefox()), there os pop-up asks me allow website use 'microsoft office' , blocks whole program. since os problem, cannot interact using selenium...i tried driver.switch_to_alert() method didn't work.
do know how fix it?
thank much!!
try: webdriverwait(driver, 40).until(ec.alert_is_present(), 'timed out waiting pa creation ' + 'confirmation popup appear.') alert = driver.switch_to.alert() alert.accept()
Comments
Post a Comment