Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
【Python】SeleniumでアラートのOKをクリックする方法
from selenium import webdriver
from selenium.webdriver.common.alert import Alert
driver = webdriver.Firefox()
driver.get("http://sample.com")
Alert(driver).accept()
driver.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment