selenium.webdriver.remote.serverΒΆ

Classes

Server([host, port, path, version, ...])

Manage a Selenium Grid (Remote) Server in standalone mode.

class selenium.webdriver.remote.server.Server(host=None, port=4444, path=None, version=None, log_level='INFO', env=None)[source]ΒΆ

Manage a Selenium Grid (Remote) Server in standalone mode.

This class contains functionality for downloading the server and starting/stopping it.

For more information on Selenium Grid, see:

Parameters:ΒΆ

hoststr

Hostname or IP address to bind to (determined automatically if not specified)

portint or str

Port to listen on (4444 if not specified)

pathstr

Path/filename of existing server .jar file (Selenium Manager is used if not specified)

versionstr

Version of server to download (latest version if not specified)

log_levelstr

Logging level to control logging output (β€œINFO” if not specified) Available levels: β€œSEVERE”, β€œWARNING”, β€œINFO”, β€œCONFIG”, β€œFINE”, β€œFINER”, β€œFINEST”

env: collections.abc.Mapping

Mapping that defines the environment variables for the server process

property status_urlΒΆ
property pathΒΆ
property portΒΆ
property versionΒΆ
property log_levelΒΆ
property envΒΆ
download_if_needed(version=None)[source]ΒΆ

Download the server if it doesn’t already exist.

Latest version is downloaded unless specified.

start()[source]ΒΆ

Start the server.

Selenium Manager will detect the server location and download it if necessary, unless an existing server path was specified.

stop()[source]ΒΆ

Stop the server.