WebDriver([executable_path, port, …]) Controls the Microsoft Edge driver and allows you to drive the browser.
class selenium.webdriver.edge.webdriver.WebDriver(executable_path='msedgedriver', port=0, options: selenium.webdriver.edge.options.Options = <selenium.webdriver.edge.options.Options object>, service_args=None, capabilities=None, service_log_path=None, service: selenium.webdriver.edge.service.Service = None, keep_alive=False, verbose=False)[source]

Controls the Microsoft Edge driver and allows you to drive the browser.

You will need to download the MSEdgeDriver (Chromium) executable from edge/tools/webdriver/

Creates a new instance of the edge driver. Starts the service and then creates new instance of edge driver.

  • 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 EdgeOptions
  • service_args - Deprecated: List of args to pass to the driver service
  • 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.
  • service - Service object for handling the browser driver if you need to pass extra details
  • keep_alive - Whether to configure EdgeRemoteConnection to use HTTP keep-alive.
  • verbose - whether to set verbose logging in the service.
create_options() → selenium.webdriver.edge.options.Options[source]