| 80 | |
| 81 | |
| 82 | class ClientConfig: |
| 83 | remote_server_addr = _ClientConfigDescriptor("_remote_server_addr") |
| 84 | """Gets and Sets Remote Server.""" |
| 85 | keep_alive = _ClientConfigDescriptor("_keep_alive") |
| 86 | """Gets and Sets Keep Alive value.""" |
| 87 | proxy = _ClientConfigDescriptor("_proxy") |
| 88 | """Gets and Sets the proxy used for communicating with the driver/server.""" |
| 89 | ignore_certificates = _ClientConfigDescriptor("_ignore_certificates") |
| 90 | """Gets and Sets the ignore certificate check value.""" |
| 91 | init_args_for_pool_manager = _ClientConfigDescriptor("_init_args_for_pool_manager") |
| 92 | """Gets and Sets the ignore certificate check.""" |
| 93 | timeout = _ClientConfigDescriptor("_timeout") |
| 94 | """Gets and Sets the timeout (in seconds) used for communicating with the driver/server.""" |
| 95 | ca_certs = _ClientConfigDescriptor("_ca_certs") |
| 96 | """Gets and Sets the path to bundle of CA certificates.""" |
| 97 | username = _ClientConfigDescriptor("_username") |
| 98 | """Gets and Sets the username used for basic authentication to the remote.""" |
| 99 | password = _ClientConfigDescriptor("_password") |
| 100 | """Gets and Sets the password used for basic authentication to the remote.""" |
| 101 | auth_type = _ClientConfigDescriptor("_auth_type") |
| 102 | """Gets and Sets the type of authentication to the remote server.""" |
| 103 | token = _ClientConfigDescriptor("_token") |
| 104 | """Gets and Sets the token used for authentication to the remote server.""" |
| 105 | user_agent = _ClientConfigDescriptor("_user_agent") |
| 106 | """Gets and Sets user agent to be added to the request headers.""" |
| 107 | extra_headers = _ClientConfigDescriptor("_extra_headers") |
| 108 | """Gets and Sets extra headers to be added to the request.""" |
| 109 | websocket_timeout = _ClientConfigDescriptor("_websocket_timeout") |
| 110 | """Gets and Sets the WebSocket response wait timeout (in seconds) used for communicating with the browser.""" |
| 111 | websocket_interval = _ClientConfigDescriptor("_websocket_interval") |
| 112 | """Does nothing and will be removed.""" |
| 113 | websocket_max_message_size = _ClientConfigDescriptor("_websocket_max_message_size") |
| 114 | """Gets and Sets the maximum WebSocket message size in bytes for CDP connections. |
| 115 | |
| 116 | Only applies to CDP-based connections (``driver.bidi_connection()``). When ``None`` |
| 117 | the value falls back to the ``SE_CDP_MAX_WS_MESSAGE_SIZE`` environment variable, |
| 118 | then to the built-in default of 16 MiB (``2**24``). |
| 119 | """ |
| 120 | |
| 121 | def __init__( |
| 122 | self, |
| 123 | remote_server_addr: str, |
| 124 | keep_alive: bool | None = True, |
| 125 | proxy: Proxy | None = None, |
| 126 | ignore_certificates: bool | None = False, |
| 127 | init_args_for_pool_manager: dict | None = None, |
| 128 | timeout: int | None = None, |
| 129 | ca_certs: str | None = None, |
| 130 | username: str | None = None, |
| 131 | password: str | None = None, |
| 132 | auth_type: AuthType | None = AuthType.BASIC, |
| 133 | token: str | None = None, |
| 134 | user_agent: str | None = None, |
| 135 | extra_headers: dict | None = None, |
| 136 | websocket_timeout: float | None = 30.0, |
| 137 | websocket_interval: float | None = None, |
| 138 | websocket_max_message_size: int | None = None, |
| 139 | ) -> None: |