Dec-12-2019, 02:05 PM
Now you see what the error is. Also, if you were runing my suggested code you would see the whole traceback, now you print just the message. Still it's better than your custom message which was misleading
try to replace
https://selenium-python.readthedocs.io/a...mmon.alert
https://selenium-python.readthedocs.io/a...h_to_alert
try to replace
driver.switch_to_alert().accept()with
driver.switch_to.alert.accept()or
Alert(driver).accept()reading
https://selenium-python.readthedocs.io/a...mmon.alert
https://selenium-python.readthedocs.io/a...h_to_alert
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs