import os,time
from selenium import webdriver

os.makedirs('image', exist_ok=True)

driver = webdriver.Chrome()
driver.get("https://morvanzhou.github.io/")
driver.find_element_by_link_text(u"赞助").click()
driver.find_element_by_link_text("About").click()
driver.find_element_by_link_text(u"教程 ▾").click()
driver.find_element_by_link_text(u"提效工具 ▾").click()
driver.find_element_by_link_text(u"Git 版本管理").click()
driver.find_element_by_link_text(u"大家说").click()

html = driver.page_source
time.sleep(10)
driver.get_screenshot_as_file("image/screenshot1.png")
driver.close()
# print(html[:200])


