selenium.webdriver.wpewebkit.service¶
Classes
|
Service class that is responsible for the starting and stopping of WPEWebDriver. |
- class selenium.webdriver.wpewebkit.service.Service(executable_path: str | None = None, port: int = 0, log_output: int | str | IO[Any] | None = None, service_args: Sequence[str] | None = None, env: Mapping[str, str] | None = None, **kwargs)[source]¶
Service class that is responsible for the starting and stopping of WPEWebDriver.
- Args:
- executable_path: (Optional) Install path of the WPEWebDriver executable, defaults to the first WPEWebDriver
in $PATH.
port: (Optional) Port for the service to run on, defaults to 0 where the operating system will decide. service_args: (Optional) Sequence of args to be passed to the subprocess when launching the executable. log_output: (Optional) int representation of STDOUT/DEVNULL, any IO instance or String path to file. env: (Optional) Mapping of environment variables for the new process, defaults to os.environ.
- is_connectable() bool[source]¶
Check if the service is ready via the W3C WebDriver /status endpoint.
This makes an HTTP request to the /status endpoint and verifies if it is ready to accept new sessions.
- Returns:
True if the service is ready to accept new sessions, False otherwise.
- property path: str¶
- send_remote_shutdown_command() None[source]¶
Dispatch an HTTP request to the shutdown endpoint to stop the service.
- property service_args: Sequence[str]¶
Returns the sequence of service arguments.
- property service_url: str¶
Gets the url of the Service.