selenium.webdriver.remote.server#
Classes
|
Manage a Selenium Grid (Remote) Server in standalone mode. |
- class Server(host=None, port=4444, path=None, version=None, log_level='INFO', env=None, java_path=None, startup_timeout=10, args=None)[source]#
Bases:
objectManage 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:
host â Hostname or IP address to bind to (determined automatically if not specified).
port â Port to listen on (4444 if not specified).
path â Path/filename of existing server .jar file (Selenium Manager is used if not specified).
version â Version of server to download (latest version if not specified).
log_level â Logging level to control logging output (âINFOâ if not specified). Available levels: âSEVEREâ, âWARNINGâ, âINFOâ, âCONFIGâ, âFINEâ, âFINERâ, âFINESTâ.
env â Mapping that defines the environment variables for the server process.
java_path â Path to the java executable to run the server.
args â Arguments for the standalone server command. Defaults to enabling Selenium Manager and managed downloads; pass a list to override these entirely (e.g. to pin drivers with ââdriver-configurationâ).
- DEFAULT_ARGS = ('--selenium-manager', 'true', '--enable-managed-downloads', 'true')#
- property startup_timeout#
- property status_url#
- property path#
- property port#
- property version#
- property log_level#
- property env#
- property java_path#
- download_if_needed(version=None)[source]#
Download the server if it doesnât already exist.
Latest version is downloaded unless specified.