File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,11 @@ def _get_remote_connection_and_client_config(
188188 return (command_executor , None )
189189
190190 # command_executor is str
191- if client_config is None :
192- # Do not keep None to avoid warnings in Selenium
193- # which can prevent with ClientConfig instance usage.
194- client_config = AppiumClientConfig (remote_server_addr = command_executor )
195- return (AppiumConnection (client_config = client_config ), client_config )
191+
192+ # Do not keep None to avoid warnings in Selenium
193+ # which can prevent with ClientConfig instance usage.
194+ new_client_config = AppiumClientConfig (remote_server_addr = command_executor ) if client_config is None else client_config
195+ return (AppiumConnection (client_config = new_client_config ), new_client_config )
196196
197197
198198class WebDriver (
You can’t perform that action at this time.
0 commit comments