Im getting a 'security warning' popup box in Firefox.
Im using Python and Selenium
driver.switch_to().alert().accept()
TypeError: 'SwitchTo' object is not callable
Any suggestions?
Im getting a 'security warning' popup box in Firefox.
Im using Python and Selenium
driver.switch_to().alert().accept()
TypeError: 'SwitchTo' object is not callable
Any suggestions?
Here is the correct syntax:
driver.switch_to.alert.accept()
Or:
driver.switch_to_alert().accept()
Or:
Alert(driver).accept()