File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
py/selenium/webdriver/remote Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,18 @@ class RemoteConnection:
136136 """
137137
138138 browser_name = None
139+ # Keep backward compatibility for AppiumConnection - https://github.com/SeleniumHQ/selenium/issues/14694
140+ import os
141+ import socket
142+
143+ import certifi
144+
145+ _timeout = (
146+ float (os .getenv ("GLOBAL_DEFAULT_TIMEOUT" , str (socket .getdefaulttimeout ())))
147+ if os .getenv ("GLOBAL_DEFAULT_TIMEOUT" ) is not None
148+ else socket .getdefaulttimeout ()
149+ )
150+ _ca_certs = os .getenv ("REQUESTS_CA_BUNDLE" ) if "REQUESTS_CA_BUNDLE" in os .environ else certifi .where ()
139151 _client_config : ClientConfig = None
140152
141153 system = platform .system ().lower ()
@@ -296,6 +308,9 @@ def __init__(
296308 init_args_for_pool_manager = init_args_for_pool_manager ,
297309 )
298310
311+ # Keep backward compatibility for AppiumConnection - https://github.com/SeleniumHQ/selenium/issues/14694
312+ RemoteConnection ._timeout = self ._client_config .timeout
313+ RemoteConnection ._ca_certs = self ._client_config .ca_certs
299314 RemoteConnection ._client_config = self ._client_config
300315
301316 if remote_server_addr :
You can’t perform that action at this time.
0 commit comments