Skip to content

Instantly share code, notes, and snippets.

J0hmy J0hmy

  • Beijing China
View GitHub Profile
View gist:d9385c8d4d81c6b7adfd3fc57c09cd0c
#coding = utf-8
from selenium import webdriver
fp = webdriver.FirefoxProfile('C:/Users/XXX/AppData/Roaming/Mozilla/Firefox/Profiles/i4g2sert.default')
driver = webdriver.Firefox(fp)
# 或 driver = webdriver.Firefox()
driver.get("https://www.bing.com")
print "hello"
driver.close()
You can’t perform that action at this time.