Created
February 15, 2016 14:02
-
-
Save kurozumi/2e4409788c97d2402066 to your computer and use it in GitHub Desktop.
【Python】SeleniumでアラートのOKをクリックする方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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