Appium-Python-Client 6.1.6__py3-none-any.whl → 6.1.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,8 +74,9 @@ class Applications(CanExecuteCommands, CanExecuteScripts):
74
74
  Returns:
75
75
  Union['WebDriver', 'Applications']: Self instance
76
76
  """
77
+ ext_name = 'mobile: installApp'
77
78
  self.execute_script(
78
- 'mobile: installApp',
79
+ ext_name,
79
80
  {
80
81
  'app': app_path,
81
82
  'appPath': app_path,
@@ -216,7 +216,7 @@ def _get_remote_connection_and_client_config(
216
216
  def _get_direct_connect_value(caps: dict[str, Any], key: str) -> Any:
217
217
  for candidate in (f'{APPIUM_PREFIX}{key}', key):
218
218
  value = caps.get(candidate)
219
- if value is not None and value != '':
219
+ if value is not None and (value != '' or key == 'directConnectPath'):
220
220
  return value
221
221
  return None
222
222
 
@@ -281,7 +281,7 @@ class WebDriver(
281
281
 
282
282
  self.error_handler = MobileErrorHandler()
283
283
 
284
- effective_client_config = client_config or getattr(self.command_executor, 'client_config', None)
284
+ effective_client_config = self.command_executor.client_config
285
285
  if isinstance(effective_client_config, AppiumClientConfig) and effective_client_config.direct_connection:
286
286
  self._update_command_executor(keep_alive=effective_client_config.keep_alive)
287
287
 
@@ -339,7 +339,7 @@ class WebDriver(
339
339
 
340
340
  logger.debug('Updated request endpoint to %s', executor)
341
341
 
342
- # Override command executor.
342
+ # Keep the existing executor, including custom constructor arguments and state.
343
343
  # The client configuration given by a user, e.g. the read timeout, the proxy or
344
344
  # the authentication credentials, must be kept as-is. Only the endpoint the client
345
345
  # talks to changes, thus a copy of the current configuration is reused instead of
@@ -347,11 +347,13 @@ class WebDriver(
347
347
  client_config = copy.copy(self.command_executor.client_config)
348
348
  client_config.remote_server_addr = executor
349
349
  client_config.keep_alive = keep_alive
350
- if isinstance(self.command_executor, AppiumConnection):
351
- self.command_executor = type(self.command_executor)(client_config=client_config)
352
- else:
353
- self.command_executor = RemoteConnection(client_config=client_config)
354
- self._add_commands()
350
+ if hasattr(self.command_executor, '_conn'):
351
+ self.command_executor._conn.clear()
352
+ self.command_executor._client_config = client_config
353
+ # Proxy selection (including no_proxy) can change with the endpoint.
354
+ self.command_executor._proxy_url = client_config.get_proxy_url()
355
+ if keep_alive:
356
+ self.command_executor._conn = self.command_executor._get_connection_manager()
355
357
 
356
358
  # https://github.com/SeleniumHQ/selenium/blob/06fdf2966df6bca47c0ae45e8201cd30db9b9a49/py/selenium/webdriver/remote/webdriver.py#L277
357
359
  # noinspection PyAttributeOutsideInit
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: Appium-Python-Client
3
- Version: 6.1.6
3
+ Version: 6.1.7
4
4
  Summary: Python client for Appium
5
5
  Project-URL: Homepage, https://appium.io/
6
6
  Project-URL: Repository, https://github.com/appium/python-client
@@ -282,13 +282,13 @@ appium/webdriver/errorhandler.py,sha256=_aT6Qo64ARGch7evG2Uku4-l8wkDaM1R2o06PWXx
282
282
  appium/webdriver/locator_converter.py,sha256=uUdJsX1o0E8x-StcJvO5gFFJbcRzhOmySfgPqJ0UaU4,999
283
283
  appium/webdriver/mobilecommand.py,sha256=B_okscraJMPrN4hSyetSNddkOZ0PyTzsQvBdYHHQqvM,3162
284
284
  appium/webdriver/switch_to.py,sha256=px12JwzTXngGWJiOfKXKaIc_QOoB1144Dv2U19jebSo,1386
285
- appium/webdriver/webdriver.py,sha256=TOU7WYEyXSYJWwraIC4_L3-W79Paen9GGrWYYWtJrIA,19936
285
+ appium/webdriver/webdriver.py,sha256=nPjth2bMg6lhCEy4GvOkBoUfk-IOzRSghXp7peVTf7Y,20126
286
286
  appium/webdriver/webelement.py,sha256=P7ev_K9DwmMJ8oS6u4TpLi7R5xFcsSE8dmu2ICfrvJA,4472
287
287
  appium/webdriver/common/__init__.py,sha256=4MapoJ3p5LiP0AsHMgL2xoPTIFno4dcH1GSoxaZzv4w,623
288
288
  appium/webdriver/common/appiumby.py,sha256=cO3RpM41ht9kPzgLFvKwBLhVv832WjOsnuP0vEqvAeY,1896
289
289
  appium/webdriver/extensions/__init__.py,sha256=wSUl6yC2TJNla7xbHXkCfn9J1LpQs9UIx8oOs6V8kZA,567
290
290
  appium/webdriver/extensions/action_helpers.py,sha256=yK_SDJCl-PeepC3C-zXJnfCLkcFwRz3NB_SH4JicFTw,9388
291
- appium/webdriver/extensions/applications.py,sha256=KnRD9-JilgYtBuy8dik2iGI5GeS2RPQws2BSdKL9HDo,6575
291
+ appium/webdriver/extensions/applications.py,sha256=Y-ewfdtgQ4CIRX4x_h7NLnjcn_qGVeXm3QCpHhBpPm4,6603
292
292
  appium/webdriver/extensions/clipboard.py,sha256=G0qvK5I5DP87IR8A5ICMC-_mtEPktSCOPKif-RZwX2M,3470
293
293
  appium/webdriver/extensions/context.py,sha256=Ldhyld4n_JRu9YhgnIOtF-qZQYsXlYrjdYHStcIV2jA,1994
294
294
  appium/webdriver/extensions/device_time.py,sha256=CRponsom_3wAEFuxVa6_zUa7BoFkmGCSIeWzCrPTV1g,2009
@@ -319,7 +319,7 @@ appium/webdriver/extensions/flutter_integration/__init__.py,sha256=wSUl6yC2TJNla
319
319
  appium/webdriver/extensions/flutter_integration/flutter_commands.py,sha256=1bAczDwqr40Rrbln321cIVG83ghar7-27aerRAKbfMs,12306
320
320
  appium/webdriver/extensions/flutter_integration/flutter_finder.py,sha256=fq3ORd4-PGUurJn0xLUMfqg7P9sE-Syv353brgcyGfM,2039
321
321
  appium/webdriver/extensions/flutter_integration/scroll_directions.py,sha256=y1BCEbWHJ86ivj5quhln10uwV9fWsA6nsdQ18j1Ua3E,123
322
- appium_python_client-6.1.6.dist-info/METADATA,sha256=C3lWw-UC-gCA02DZjO60AgEb-4vyeQIuoU2DSDhT_rU,22201
323
- appium_python_client-6.1.6.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
324
- appium_python_client-6.1.6.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
325
- appium_python_client-6.1.6.dist-info/RECORD,,
322
+ appium_python_client-6.1.7.dist-info/METADATA,sha256=t5n0h_VPrM2YqQ61zWv9eYnPuYO-tzMAa4bVi1XpHXg,22201
323
+ appium_python_client-6.1.7.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
324
+ appium_python_client-6.1.7.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
325
+ appium_python_client-6.1.7.dist-info/RECORD,,