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

原文地址:https://www.cnblogs.com/hushaojun/p/4467605.html