Appium-Python-Client 5.2.4__py3-none-any.whl → 5.2.5__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.
@@ -55,6 +55,9 @@ class AppiumOptions(
55
55
  'setWindowRect',
56
56
  'timeouts',
57
57
  'unhandledPromptBehavior',
58
+ 'strictFileInteractability', # WebDriver spec v2 https://www.w3.org/TR/webdriver2/
59
+ 'userAgent', # WebDriver spec v2 https://www.w3.org/TR/webdriver2/
60
+ 'webSocketUrl', # WebDriver BiDi
58
61
  ]
59
62
  )
60
63
  _OSS_W3C_CONVERSION = {
@@ -72,6 +72,7 @@ from .wda.keychain_password_option import KeychainPasswordOption
72
72
  from .wda.keychain_path_option import KeychainPathOption
73
73
  from .wda.max_typing_frequency_option import MaxTypingFrequencyOption
74
74
  from .wda.mjpeg_server_port_option import MjpegServerPortOption
75
+ from .wda.prebuilt_wda_path_option import PrebuiltWdaPathOption
75
76
  from .wda.process_arguments_option import ProcessArgumentsOption
76
77
  from .wda.result_bundle_path_option import ResultBundlePathOption
77
78
  from .wda.screenshot_quality_option import ScreenshotQualityOption
@@ -83,6 +84,7 @@ from .wda.updated_wda_bundle_id_option import UpdatedWdaBundleIdOption
83
84
  from .wda.use_native_caching_strategy_option import UseNativeCachingStrategyOption
84
85
  from .wda.use_new_wda_option import UseNewWdaOption
85
86
  from .wda.use_prebuilt_wda_option import UsePrebuiltWdaOption
87
+ from .wda.use_preinstalled_wda_option import UsePreinstalledWdaOption
86
88
  from .wda.use_simple_build_test_option import UseSimpleBuildTestOption
87
89
  from .wda.use_xctestrun_file_option import UseXctestrunFileOption
88
90
  from .wda.wait_for_idle_timeout_option import WaitForIdleTimeoutOption
@@ -171,6 +173,7 @@ class XCUITestOptions(
171
173
  KeychainPathOption,
172
174
  MaxTypingFrequencyOption,
173
175
  MjpegServerPortOption,
176
+ PrebuiltWdaPathOption,
174
177
  ProcessArgumentsOption,
175
178
  ResultBundlePathOption,
176
179
  ScreenshotQualityOption,
@@ -182,6 +185,7 @@ class XCUITestOptions(
182
185
  UseNativeCachingStrategyOption,
183
186
  UseNewWdaOption,
184
187
  UsePrebuiltWdaOption,
188
+ UsePreinstalledWdaOption,
185
189
  UseSimpleBuildTestOption,
186
190
  UseXctestrunFileOption,
187
191
  WaitForIdleTimeoutOption,
@@ -0,0 +1,39 @@
1
+ # Licensed to the Software Freedom Conservancy (SFC) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The SFC licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14
+ # either express or implied. See the License for the specific
15
+ # language governing permissions and limitations
16
+ # under the License.
17
+
18
+ from typing import Optional
19
+
20
+ from appium.options.common.supports_capabilities import SupportsCapabilities
21
+
22
+ PREBUILT_WDA_PATH = 'prebuiltWDAPath'
23
+
24
+
25
+ class PrebuiltWdaPathOption(SupportsCapabilities):
26
+ @property
27
+ def prebuilt_wda_path(self) -> Optional[str]:
28
+ """
29
+ The path to the prebuilt WebDriverAgent.
30
+ """
31
+ return self.get_capability(PREBUILT_WDA_PATH)
32
+
33
+ @prebuilt_wda_path.setter
34
+ def prebuilt_wda_path(self, value: str) -> None:
35
+ """
36
+ The path to the prebuilt WebDriverAgent. This should be the path to the
37
+ WebDriverAgent.xcarchive file or the WebDriverAgent.app bundle.
38
+ """
39
+ self.set_capability(PREBUILT_WDA_PATH, value)
@@ -0,0 +1,40 @@
1
+ # Licensed to the Software Freedom Conservancy (SFC) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The SFC licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14
+ # either express or implied. See the License for the specific
15
+ # language governing permissions and limitations
16
+ # under the License.
17
+
18
+ from typing import Optional
19
+
20
+ from appium.options.common.supports_capabilities import SupportsCapabilities
21
+
22
+ USE_PREINSTALLED_WDA = 'usePreinstalledWDA'
23
+
24
+
25
+ class UsePreinstalledWdaOption(SupportsCapabilities):
26
+ @property
27
+ def use_preinstalled_wda(self) -> Optional[bool]:
28
+ """
29
+ Whether to use a preinstalled WebDriverAgent.
30
+ """
31
+ return self.get_capability(USE_PREINSTALLED_WDA)
32
+
33
+ @use_preinstalled_wda.setter
34
+ def use_preinstalled_wda(self, value: bool) -> None:
35
+ """
36
+ Whether to use a preinstalled WebDriverAgent. If true, Appium will not
37
+ build and install the WebDriverAgent, but will use an existing one.
38
+ Defaults to false.
39
+ """
40
+ self.set_capability(USE_PREINSTALLED_WDA, value)
@@ -126,8 +126,8 @@ class ScreenRecord(CanExecuteCommands):
126
126
  The default value is the device's native display resolution (if supported),
127
127
  1280x720 if not. For best results, use a size supported by your device's
128
128
  Advanced Video Coding (AVC) encoder.
129
- bitRate (int): [Android] The video bit rate for the video, in megabits per second.
130
- The default value is 4. You can increase the bit rate to improve video quality,
129
+ bitRate (int): [Android] The video bit rate for the video, in bits per second.
130
+ The default value is 4000000 (4 Mbit/s). You can increase the bit rate to improve video quality,
131
131
  but doing so results in larger movie files.
132
132
  bugReport (str): [Android] Makes the recorder to display an additional information on the video overlay,
133
133
  such as a timestamp, that is helpful in videos captured to illustrate bugs.
@@ -400,7 +400,7 @@ class WebDriver(
400
400
  return MobileSwitchTo(self)
401
401
 
402
402
  # MJSONWP for Selenium v4
403
- @property
403
+ @property # type: ignore[override]
404
404
  def orientation(self) -> str:
405
405
  """
406
406
  Gets the current orientation of the device
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Appium-Python-Client
3
- Version: 5.2.4
3
+ Version: 5.2.5
4
4
  Summary: Python client for Appium
5
5
  Project-URL: Homepage, http://appium.io/
6
6
  Project-URL: Repository, https://github.com/appium/python-client
@@ -106,7 +106,7 @@ appium/options/common/__init__.py,sha256=PqIAgqjK_YKhKjTWykAt3_q04QvIg9Dkf6XTzrq
106
106
  appium/options/common/app_option.py,sha256=8gAGkkAAPJWDHDeimNqJWlvkUAPI0Ty8rkmQKDBCpW0,1395
107
107
  appium/options/common/auto_web_view_option.py,sha256=wQaoFQIq_h7WMHUDkRm2eUwN1u1k2tJ0nGoDbgDxMO8,1484
108
108
  appium/options/common/automation_name_option.py,sha256=iaoKoFhTJCcMG2i9rKB5NbnCE4WzI7GuhXs6DAof9Qg,1393
109
- appium/options/common/base.py,sha256=CNKU31NfLAFiZenjeDm8HM4l665vKhSOVsIZuB7hbi8,4262
109
+ appium/options/common/base.py,sha256=fJUUOHMFhIVUfqtazixFMsIhK3ElY2uvh1exQ9IlHIE,4484
110
110
  appium/options/common/browser_name_option.py,sha256=PwLfab2iQNZ_UWLUAP58RMyzxXgu3oXvAr2WUiG3Gzo,1339
111
111
  appium/options/common/bundle_id_option.py,sha256=VbUgNLAK4YfeqP7cXJvqx0AnEJbT3scpn1tR1WZx4RY,1356
112
112
  appium/options/common/clear_system_files_option.py,sha256=86hQhZaJBgMXUIpnRXUrkTkGP6h3VQk9I7Wrfs2lQfs,1447
@@ -155,7 +155,7 @@ appium/options/ios/safari/platform_version_option.py,sha256=HL8ZWRgYhoeuMv-veFHf
155
155
  appium/options/ios/safari/use_simulator_option.py,sha256=9zsatkg_OGIyoAL8DB2MZNbuUz19xowTtmtfFxaXJvY,1621
156
156
  appium/options/ios/safari/webkit_webrtc_option.py,sha256=SOhB8Y5GCTuKrQVBiJe2wqfd-bV1fbVsWk_esLjHoFQ,2325
157
157
  appium/options/ios/xcuitest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
158
- appium/options/ios/xcuitest/base.py,sha256=Yoe54yCMOUNMFXR2Ior3bkv_zlvMBCD1sIlAvMr-bAA,11145
158
+ appium/options/ios/xcuitest/base.py,sha256=Y12NU1WgW7gmyKrATlyGre0u8RUbJ-53xuwINO-P5W0,11336
159
159
  appium/options/ios/xcuitest/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
160
160
  appium/options/ios/xcuitest/app/app_install_strategy_option.py,sha256=kF6t6wysyZUoZ3nrqxvf_RLXyu1lWnyFMuHs0euo1oE,1985
161
161
  appium/options/ios/xcuitest/app/app_push_timeout_option.py,sha256=fJUkWFMQ0tcpdKMx_UmcdB-boTCwAmVojPxM0eQ5spo,1655
@@ -199,6 +199,7 @@ appium/options/ios/xcuitest/wda/keychain_password_option.py,sha256=i5DHp1Pjbs64B
199
199
  appium/options/ios/xcuitest/wda/keychain_path_option.py,sha256=A2ziMRO05jtMgBxWeC7z4YxoFeJyevNUw6zNjrj55aI,1382
200
200
  appium/options/ios/xcuitest/wda/max_typing_frequency_option.py,sha256=_ZlVn7ks6BE1eUcPAcgoL5_5Xy7FFIBH3jhx2NNrzRQ,1556
201
201
  appium/options/ios/xcuitest/wda/mjpeg_server_port_option.py,sha256=-UJCNMsTA00ycbZnhi7M1Hisl6CGRg5BArhnU3CjIYc,1692
202
+ appium/options/ios/xcuitest/wda/prebuilt_wda_path_option.py,sha256=3vsKNay_n9ZS8F8tpwEAfRKxx-azhn6nVUSyy29jHmU,1491
202
203
  appium/options/ios/xcuitest/wda/process_arguments_option.py,sha256=VzmQcSgZg7hleQM-soBLmLMA4lFo-Sg476crsbH3PuU,1870
203
204
  appium/options/ios/xcuitest/wda/result_bundle_path_option.py,sha256=yAhEp-4zjZLmxfxE-_Noc8rmuZFv0DEvF9fMIFXoZpc,1702
204
205
  appium/options/ios/xcuitest/wda/screenshot_quality_option.py,sha256=8RpBYsLE9QoBku67MCpO4GmKI46WnlYYKugOaM_xMug,1641
@@ -210,6 +211,7 @@ appium/options/ios/xcuitest/wda/updated_wda_bundle_id_option.py,sha256=w04upM5Uc
210
211
  appium/options/ios/xcuitest/wda/use_native_caching_strategy_option.py,sha256=89p-85RMQxZynvcenMN9oVk-u99x-ega7W2XPqMqgBo,1715
211
212
  appium/options/ios/xcuitest/wda/use_new_wda_option.py,sha256=6LQVd7Huk9txt6uDb8r5adgeVpxypheUMuRftlsoJgM,2403
212
213
  appium/options/ios/xcuitest/wda/use_prebuilt_wda_option.py,sha256=tWxHiaVmEpUhY8Sn-ZdB_zYgFb3sjw-62Rz0g_0Idbs,1503
214
+ appium/options/ios/xcuitest/wda/use_preinstalled_wda_option.py,sha256=fHrTLWndUl21W8K6_zFQFzoAnQSfLazj1GIkjR3pTgE,1552
213
215
  appium/options/ios/xcuitest/wda/use_simple_build_test_option.py,sha256=rQ_C1epQbbZ9rPOnQFiw9PDivFahvM0-Eo5Hwav7ofY,1635
214
216
  appium/options/ios/xcuitest/wda/use_xctestrun_file_option.py,sha256=N1-IKI9eyK4ulnx8gpX_5zUJPm5hZECvykAI4LTKYFg,2497
215
217
  appium/options/ios/xcuitest/wda/wait_for_idle_timeout_option.py,sha256=Syr0WNSNvtmdrwZ02Y__oKUa_c7RxifLRRJlceHlH5Q,2074
@@ -281,7 +283,7 @@ appium/webdriver/errorhandler.py,sha256=1ZAqOf0fLZou3UkuE0sUzsIdUPm3hRU2PdxZCP6-
281
283
  appium/webdriver/locator_converter.py,sha256=dMuYbnsm5X8IOCA-A_tEJtukLoBXK2YKG-bEBUBsoDQ,1024
282
284
  appium/webdriver/mobilecommand.py,sha256=WUWAGTFFO11-Y5w6N-sQvsTkH8giDn8R8yrEUi8poh4,3347
283
285
  appium/webdriver/switch_to.py,sha256=72NDbY-O8oQgAfEVC3ck3K5xE9Qo4hr8x4OWiK5lvjY,1205
284
- appium/webdriver/webdriver.py,sha256=Dv2chT_4ueD1rDXd0Q6cc0ZSOQWn_00Id9RtmJphzS8,19059
286
+ appium/webdriver/webdriver.py,sha256=gjzlFwIjtUGLSSqnj9tXgf0_MDE5n6jIYSHKmbVcNv0,19085
285
287
  appium/webdriver/webelement.py,sha256=DLbRAuEU3qCZi8V70WXYoj7Sy-UqH9fPSXowPSkgTmY,4438
286
288
  appium/webdriver/common/__init__.py,sha256=4MapoJ3p5LiP0AsHMgL2xoPTIFno4dcH1GSoxaZzv4w,623
287
289
  appium/webdriver/common/appiumby.py,sha256=1sFzgJht8v9pO0fG-uK1jgbb8zMJwfBy3LJH15OPqq8,1785
@@ -300,7 +302,7 @@ appium/webdriver/extensions/location.py,sha256=1IJbYlTuiQ2yi4O6btEq4uRbmRswnTeEF
300
302
  appium/webdriver/extensions/log_event.py,sha256=XG4wCgF2BbIiqrmv5QD9waoXsz-Apq_r1NUSXvcj-XE,2472
301
303
  appium/webdriver/extensions/logs.py,sha256=p7ePkkNEQ6I9YWpY3u73v1X2l3Og8wmkGLafL8wMHyQ,1840
302
304
  appium/webdriver/extensions/remote_fs.py,sha256=qr88Uvy2xa2cJPoo0Jw0miSlfc1fv4IndyQFmfNmLv8,4634
303
- appium/webdriver/extensions/screen_record.py,sha256=zFzd6lF4IHjuGe03OSaY9ZoFQu3Kk2-fTNUGvDBWNNc,12986
305
+ appium/webdriver/extensions/screen_record.py,sha256=1wcxn8HwdGi9VPfrKtBD24Kys-JViktZtk45wpNfSDs,12999
304
306
  appium/webdriver/extensions/session.py,sha256=W2kAuUuzrIhDdIKj07ZaiaL1FZ8BBbTEQkKVL7b1pnA,1438
305
307
  appium/webdriver/extensions/settings.py,sha256=3Y9RQwvOLYizf1p4KKaHbnSVgeQAfZGIinmRRG4-f2s,1927
306
308
  appium/webdriver/extensions/android/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -318,7 +320,7 @@ appium/webdriver/extensions/flutter_integration/__init__.py,sha256=wSUl6yC2TJNla
318
320
  appium/webdriver/extensions/flutter_integration/flutter_commands.py,sha256=zKWaVM-Vaqz-FxItSeYI7YXvld5DPrKhrXyrYPbRbFw,12125
319
321
  appium/webdriver/extensions/flutter_integration/flutter_finder.py,sha256=P4rQpiye73aRBq5VOSt1vBD7rTDHrEv0052B1u81_YY,2184
320
322
  appium/webdriver/extensions/flutter_integration/scroll_directions.py,sha256=CkOv7k21SMe-h2-EYSZ6MBKBGTRC1csQ-tuowHgMn0E,85
321
- appium_python_client-5.2.4.dist-info/METADATA,sha256=BkHvYE6O-V30zeiEZtNxiPlcoJnGUiHmCtlUnc6CjAs,20823
322
- appium_python_client-5.2.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
323
- appium_python_client-5.2.4.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
324
- appium_python_client-5.2.4.dist-info/RECORD,,
323
+ appium_python_client-5.2.5.dist-info/METADATA,sha256=oBxP8pArVCnr0qKnnUMATo1Mms75DIcPzyYyvIGkPag,20823
324
+ appium_python_client-5.2.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
325
+ appium_python_client-5.2.5.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
326
+ appium_python_client-5.2.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any