Appium-Python-Client 6.0.8__py3-none-any.whl → 6.0.9__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.
@@ -15,6 +15,8 @@
15
15
  from typing import TYPE_CHECKING, Protocol, runtime_checkable
16
16
 
17
17
  if TYPE_CHECKING:
18
+ from selenium.webdriver.common.by import By
19
+
18
20
  from appium.webdriver.webelement import WebElement
19
21
 
20
22
 
@@ -27,6 +29,13 @@ class CanFindElements(Protocol):
27
29
  - find_elements(by, value): Find multiple elements
28
30
  """
29
31
 
30
- def find_element(self, by: str, value: str | dict | None = None) -> 'WebElement': ...
32
+ if TYPE_CHECKING:
33
+
34
+ def find_element(self, by: str = By.ID, value: str | dict | None = None) -> 'WebElement': ...
35
+
36
+ def find_elements(self, by: str = By.ID, value: str | dict | None = None) -> list['WebElement']: ...
37
+ else:
38
+
39
+ def find_element(self, by: str = 'id', value: str | dict | None = None) -> 'WebElement': ...
31
40
 
32
- def find_elements(self, by: str, value: str | dict | None = None) -> list['WebElement']: ...
41
+ def find_elements(self, by: str = 'id', value: str | dict | None = None) -> list['WebElement']: ...
@@ -22,6 +22,9 @@ from typing_extensions import Self
22
22
 
23
23
  from .mobilecommand import MobileCommand as Command
24
24
 
25
+ if TYPE_CHECKING:
26
+ from selenium.webdriver.common.by import By
27
+
25
28
 
26
29
  class WebElement(SeleniumWebElement):
27
30
  _execute: Callable
@@ -29,10 +32,10 @@ class WebElement(SeleniumWebElement):
29
32
 
30
33
  if TYPE_CHECKING:
31
34
 
32
- def find_element(self, by: str, value: str | dict | None = None) -> Self: # type: ignore[override]
35
+ def find_element(self, by: str = By.ID, value: str | dict | None = None) -> Self: # type: ignore[override]
33
36
  ...
34
37
 
35
- def find_elements(self, by: str, value: str | dict | None = None) -> list[Self]: # type: ignore[override]
38
+ def find_elements(self, by: str = By.ID, value: str | dict | None = None) -> list[Self]: # type: ignore[override]
36
39
  ...
37
40
 
38
41
  def get_attribute(self, name: str) -> str | dict | None: # type: ignore[override]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: Appium-Python-Client
3
- Version: 6.0.8
3
+ Version: 6.0.9
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
@@ -269,7 +269,7 @@ appium/protocols/__init__.py,sha256=wSUl6yC2TJNla7xbHXkCfn9J1LpQs9UIx8oOs6V8kZA,
269
269
  appium/protocols/webdriver/__init__.py,sha256=wSUl6yC2TJNla7xbHXkCfn9J1LpQs9UIx8oOs6V8kZA,567
270
270
  appium/protocols/webdriver/can_execute_commands.py,sha256=l6Wq-yL-hzCek9djetnrfp8VX62Fw9o4hNcisBDUEWE,832
271
271
  appium/protocols/webdriver/can_execute_scripts.py,sha256=dMRDjreiyV3IJp7-NRUx1TjouOu34mLUa9N6qZPq3b0,962
272
- appium/protocols/webdriver/can_find_elements.py,sha256=sirq42kVaAnKMbwDDh4CoGIr8B0baEnJQEcJaDpTzmA,1175
272
+ appium/protocols/webdriver/can_find_elements.py,sha256=glM-Qpe-_KyLhZmojl6aa82B3xhEzRpJPyVQHhtOP8Q,1492
273
273
  appium/webdriver/__init__.py,sha256=oT-lIYWpqD562rbXy36HlS03pKfW48BIxqZsqt1XEm0,730
274
274
  appium/webdriver/appium_connection.py,sha256=S-CodDwQWjT-lNwyHSsGtdb4GFHxTM9BXGoOyWdMI94,2405
275
275
  appium/webdriver/appium_service.py,sha256=K8KUSC1n7z021PvLbTQq1uB2dJEqvGhmOVSjgVFHP3E,12760
@@ -283,7 +283,7 @@ appium/webdriver/locator_converter.py,sha256=uUdJsX1o0E8x-StcJvO5gFFJbcRzhOmySfg
283
283
  appium/webdriver/mobilecommand.py,sha256=B_okscraJMPrN4hSyetSNddkOZ0PyTzsQvBdYHHQqvM,3162
284
284
  appium/webdriver/switch_to.py,sha256=kom9MHNOdZuEG0ALDuaw27NHvtsRDnl-sy_XNAd-Rl4,1174
285
285
  appium/webdriver/webdriver.py,sha256=G0bx_EwubHhMl-Pe11TXeMDHuaHGS-quGuLD3FlqLnU,19316
286
- appium/webdriver/webelement.py,sha256=U3B2clH3lXHN_cPahNEAIsIaFWJwvrizWYTpQjnSay4,4417
286
+ appium/webdriver/webelement.py,sha256=ewBkxaZiJtmhRoKjQk317WjewansQ6tpm3JePSv1pQ4,4500
287
287
  appium/webdriver/common/__init__.py,sha256=4MapoJ3p5LiP0AsHMgL2xoPTIFno4dcH1GSoxaZzv4w,623
288
288
  appium/webdriver/common/appiumby.py,sha256=1sFzgJht8v9pO0fG-uK1jgbb8zMJwfBy3LJH15OPqq8,1785
289
289
  appium/webdriver/extensions/__init__.py,sha256=wSUl6yC2TJNla7xbHXkCfn9J1LpQs9UIx8oOs6V8kZA,567
@@ -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.8.dist-info/METADATA,sha256=C_fosgonJczmFzQG0ZAks7xREgj_9Y6ugPVuFGqmWbg,21273
323
- appium_python_client-6.0.8.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
324
- appium_python_client-6.0.8.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
325
- appium_python_client-6.0.8.dist-info/RECORD,,
322
+ appium_python_client-6.0.9.dist-info/METADATA,sha256=-Y9wXzWnnFe7u53RvoVbGLQHY5T0KwZoycG8fjBb6fI,21273
323
+ appium_python_client-6.0.9.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
324
+ appium_python_client-6.0.9.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
325
+ appium_python_client-6.0.9.dist-info/RECORD,,