Service(executable_path, port, host, …) Object that manages the starting and stopping of the IEDriver.
class str = None, port: int = 0, host: Optional[str, None] = None, service_args: Optional[List[str], None] = None, log_level: Optional[str, None] = None, log_output: Union[int, str, IO[Any]] = None, **kwargs)[source]

Object that manages the starting and stopping of the IEDriver.

Creates a new instance of the Service.

  • executable_path : Path to the IEDriver
  • port : Port the service is running on
  • host : IP address the service port is bound
  • log_level : Level of logging of service, may be “FATAL”, “ERROR”, “WARN”, “INFO”, “DEBUG”, “TRACE”. Default is “FATAL”.
  • log_output: (Optional) int representation of STDOUT/DEVNULL, any IO instance or String path to file. Default is “stdout”.
assert_process_still_running() → None[source]

Check if the underlying process is still running.

command_line_args() → List[str][source]

A List of program arguments (excluding the executable).

is_connectable() → bool[source]

Establishes a socket connection to determine if the service running on the port is accessible.

send_remote_shutdown_command() → None[source]

Dispatch an HTTP request to the shutdown endpoint for the service in an attempt to stop it.


Gets the url of the Service.

start() → None[source]

Starts the Service.

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

Stops the service.