selenium.webdriver.chrome.webdriver¶
Classes
WebDriver ([executable_path, port, …]) |
Controls the ChromeDriver and allows you to drive the browser. |
-
class
selenium.webdriver.chrome.webdriver.
WebDriver
(executable_path='chromedriver', port=0, options: selenium.webdriver.chrome.options.Options = None, service_args=None, desired_capabilities=None, service_log_path=None, chrome_options=None, service: selenium.webdriver.chrome.service.Service = None, keep_alive=None)[source]¶ Controls the ChromeDriver and allows you to drive the browser.
You will need to download the ChromeDriver executable from http://chromedriver.storage.googleapis.com/index.html
Creates a new instance of the chrome driver. Starts the service and then creates new instance of chrome driver.
Args: - executable_path - Deprecated: path to the executable. If the default is used it assumes the executable is in the $PATH
- port - Deprecated: port you would like the service to run, if left as 0, a free port will be found.
- options - this takes an instance of ChromeOptions
- service - Service object for handling the browser driver if you need to pass extra details
- service_args - Deprecated: List of args to pass to the driver service
- desired_capabilities - Deprecated: Dictionary object with non-browser specific capabilities only, such as “proxy” or “loggingPref”.
- service_log_path - Deprecated: Where to log information from the driver.
- keep_alive - Deprecated: Whether to configure ChromeRemoteConnection to use HTTP keep-alive.