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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -