import os
from selenium import webdriver
def simulate_chromedriver():
chromedriver = "C:\Python27" #path
os.environ["webdriver.chrome.driver"] = chromedriver
driver = webdriver.Chrome(chromedriver)
driver.get("http://www.baidu.com")
driver.quit()
simulate_chromedriver()
robotframework中自定义chromedriver的关键字
最新推荐文章于 2024-03-04 14:45:20 发布