selenium.webdriver.chrome.service

class selenium.webdriver.chrome.service.Service(executable_path, port=0, service_args=None, log_path=None, env=None)[source]

Object that manages the starting and stopping of the ChromeDriver

Creates a new instance of the Service

Args :
  • executable_path : Path to the ChromeDriver
  • port : Port the service is running on
  • service_args : List of args to pass to the chromedriver service
  • log_path : Path for the chromedriver service to log to
service_url[source]

Gets the url of the ChromeDriver Service

start()[source]

Starts the ChromeDriver Service.

Exceptions :
  • WebDriverException : Raised either when it can’t start the service or when it can’t connect to the service
stop()[source]

Tells the ChromeDriver to stop and cleans up the process

This Page