selenium.webdriver.chrome.remote_connection#
Classes
|
- class ChromeRemoteConnection(remote_server_addr, keep_alive=True, ignore_proxy=False, client_config=None)[source]#
Bases:
ChromiumRemoteConnection- Parameters:
remote_server_addr (str)
keep_alive (bool)
ignore_proxy (bool)
client_config (ClientConfig | None)
- browser_name: str | None = 'chrome'#
- add_command(name, method, url)#
Register a new command.
- certifi = <module 'certifi' from '/home/runner/.bazel/sandbox/processwrapper-sandbox/54/execroot/_main/bazel-out/local_linux_gnu-opt-exec/bin/py/sphinx-build.runfiles/rules_python++pip+py_dev_requirements_310_certifi/site-packages/certifi/__init__.py'>#
- property client_config#
- close()#
Clean up resources when finished with the remote_connection.
- execute(command, params)#
Send a command to the remote server.
Any path substitutions required for the URL mapped to the command should be included in the command parameters.
- Parameters:
command – A string specifying the command to execute.
params – A dictionary of named parameters to send with the command as its JSON payload.
- extra_commands: dict[str, str] = {}#
- extra_headers = None#
- classmethod get_certificate_bundle_path()#
Returns paths of the .pem encoded certificate to verify connection to command executor.
- Returns:
Paths of the .pem encoded certificate to verify connection to command executor. Defaults to certifi.where() or REQUESTS_CA_BUNDLE env variable if set.
- get_command(name)#
Retrieve a command if it exists.
- Parameters:
name (str)
- classmethod get_remote_connection_headers(parsed_url, keep_alive=False)#
Get headers for remote request.
- Parameters:
parsed_url – The parsed url
keep_alive – Is this a keep-alive connection (default: False)
- classmethod get_timeout()#
Returns timeout value in seconds for all http requests made to the Remote Connection.
- Returns:
Timeout value in seconds for all http requests made to the Remote Connection
- os = <module 'os' from '/home/runner/.bazel/execroot/_main/external/rules_python++python+python_3_10_19_x86_64-unknown-linux-gnu/lib/python3.10/os.py'>#
- classmethod reset_timeout()#
Reset the http request timeout to socket._GLOBAL_DEFAULT_TIMEOUT.
- classmethod set_certificate_bundle_path(path)#
Set the path to the certificate bundle for verifying command executor connection.
Can also be set to None to disable certificate validation.
- Parameters:
path – path of a .pem encoded certificate chain.
- classmethod set_timeout(timeout)#
Override the default timeout.
- Parameters:
timeout – timeout value for http requests in seconds
- socket = <module 'socket' from '/home/runner/.bazel/execroot/_main/external/rules_python++python+python_3_10_19_x86_64-unknown-linux-gnu/lib/python3.10/socket.py'>#
- system = 'linux'#
- user_agent = 'selenium/4.47.0 (python linux)'#