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

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.