webDriver API——第10部分Chrome WebDriver

class selenium.webdriver.chrome.webdriver.WebDriver(executable_path='chromedriver'port=0chrome_options=Noneservice_args=Nonedesired_capabilities=Noneservice_log_path=None)

Bases: selenium.webdriver.remote.webdriver.WebDriver

Controls the ChromeDriver and allows you to drive the browser.

You will need to download the ChromeDriver executable fromhttp://chromedriver.storage.googleapis.com/index.html

create_options()
quit()

Closes the browser and shuts down the ChromeDriver executable that is started when starting the ChromeDriver

posted on 2015-04-29 22:23  帅胡  阅读(810)  评论(0编辑  收藏  举报

导航