Search code examples
pythonseleniumalert

how can i chrome popup confirmation in python selenium?


i use python and i want click "ok" button in Chrome selenium.

Chrome Popup

how can i click "ok" in selenium?


Solution

  • Accepting alert with Selenium in Python can be done with this:

    driver.switch_to.alert.accept()