Skip to content

Instantly share code, notes, and snippets.

@daybreak0804
Created January 4, 2017 14:32
import time
from selenium import webdriver
import pandas
driver = webdriver.Chrome('C:\\Anaconda2\\Lib\\site-packages\\chromedriver\\chromedriver.exe')
link_excel = pandas.read_excel('C:\\OJT_Kevin\\170102_automate_css\\links.xlsx')
for link in link_excel.ix[:,0]:
driver.get(link);
button = driver.find_element_by_id('showCorrectBtn')
button.click()
time.sleep(2)
button = driver.find_element_by_id('hideCorrectBtn')
button.click()
time.sleep(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment