Appium-Python-Client 6.0.6__py3-none-any.whl → 6.0.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.
@@ -314,11 +314,10 @@ class WebDriver(
314
314
 
315
315
  if not self.caps:
316
316
  raise ValueError('Driver capabilities must be defined')
317
- if not {direct_protocol, direct_host, direct_port, direct_path}.issubset(set(self.caps)):
318
- message = 'Direct connect capabilities from server were:\n'
319
- for key in [direct_protocol, direct_host, direct_port, direct_path]:
320
- message += f"{key}: '{self.caps.get(key, '')}' "
321
- logger.debug(message)
317
+ keys = (direct_protocol, direct_host, direct_port, direct_path)
318
+ if not set(keys).issubset(self.caps):
319
+ details = ' '.join(f"{key}: '{self.caps.get(key, '')}'" for key in keys)
320
+ logger.debug(f'Direct connect capabilities from server were:\n{details} ')
322
321
  return
323
322
 
324
323
  protocol = self.caps[direct_protocol]
@@ -459,7 +458,7 @@ class WebDriver(
459
458
  """
460
459
  allowed_values = ['LANDSCAPE', 'PORTRAIT']
461
460
  if value.upper() in allowed_values:
462
- self.execute(Command.SET_SCREEN_ORIENTATION, {'orientation': value})
461
+ self.execute(Command.SET_SCREEN_ORIENTATION, {'orientation': value.upper()})
463
462
  else:
464
463
  raise WebDriverException("You can only set the orientation to 'LANDSCAPE' and 'PORTRAIT'")
465
464
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: Appium-Python-Client
3
- Version: 6.0.6
3
+ Version: 6.0.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,7 +282,7 @@ 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=kom9MHNOdZuEG0ALDuaw27NHvtsRDnl-sy_XNAd-Rl4,1174
285
- appium/webdriver/webdriver.py,sha256=qu8WOrlOd0lrU_VwdkDZgUWaz5lmcLCKdOsEl85yp0U,19366
285
+ appium/webdriver/webdriver.py,sha256=hrtnGonxC9heAgd1Kf1B25IlFOW9N9gKcEC9VLX0rCs,19314
286
286
  appium/webdriver/webelement.py,sha256=U3B2clH3lXHN_cPahNEAIsIaFWJwvrizWYTpQjnSay4,4417
287
287
  appium/webdriver/common/__init__.py,sha256=4MapoJ3p5LiP0AsHMgL2xoPTIFno4dcH1GSoxaZzv4w,623
288
288
  appium/webdriver/common/appiumby.py,sha256=1sFzgJht8v9pO0fG-uK1jgbb8zMJwfBy3LJH15OPqq8,1785
@@ -319,7 +319,7 @@ appium/webdriver/extensions/flutter_integration/__init__.py,sha256=wSUl6yC2TJNla
319
319
  appium/webdriver/extensions/flutter_integration/flutter_commands.py,sha256=FwNqIykRyMAU8-344GTlceBOxLbS-bA9bfGX4iJpHxw,11985
320
320
  appium/webdriver/extensions/flutter_integration/flutter_finder.py,sha256=HH9vGAouJuHzp29Jam_lQGrh67PDq6MxU5Ifewf7C5w,2164
321
321
  appium/webdriver/extensions/flutter_integration/scroll_directions.py,sha256=CkOv7k21SMe-h2-EYSZ6MBKBGTRC1csQ-tuowHgMn0E,85
322
- appium_python_client-6.0.6.dist-info/METADATA,sha256=b7C6Y0I6b__Kv1ASU2g_qrsSdtpdobarLhOAMpVQ2fE,21194
323
- appium_python_client-6.0.6.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
324
- appium_python_client-6.0.6.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
325
- appium_python_client-6.0.6.dist-info/RECORD,,
322
+ appium_python_client-6.0.7.dist-info/METADATA,sha256=KjhRvFWdmfmYfic5_Tujn131PvmJ9Cg3gBVeuP4cSgA,21194
323
+ appium_python_client-6.0.7.dist-info/WHEEL,sha256=THafob7ofN-NsuMN7Mg4qZyHaQI7KkD-QlcQatYhXPo,87
324
+ appium_python_client-6.0.7.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
325
+ appium_python_client-6.0.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.32.0
2
+ Generator: hatchling 1.32.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any