Appium-Python-Client 6.1.4__py3-none-any.whl → 6.1.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.
- appium/protocols/webdriver/can_find_elements.py +4 -11
- appium/webdriver/common/appiumby.py +19 -20
- appium/webdriver/extensions/flutter_integration/flutter_finder.py +5 -7
- appium/webdriver/switch_to.py +10 -0
- appium/webdriver/webdriver.py +6 -5
- appium/webdriver/webelement.py +2 -3
- {appium_python_client-6.1.4.dist-info → appium_python_client-6.1.5.dist-info}/METADATA +1 -1
- {appium_python_client-6.1.4.dist-info → appium_python_client-6.1.5.dist-info}/RECORD +10 -10
- {appium_python_client-6.1.4.dist-info → appium_python_client-6.1.5.dist-info}/WHEEL +0 -0
- {appium_python_client-6.1.4.dist-info → appium_python_client-6.1.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
from typing import TYPE_CHECKING, Protocol, runtime_checkable
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
from selenium.webdriver.common.by import By
|
|
17
|
+
from selenium.webdriver.common.by import By
|
|
19
18
|
|
|
19
|
+
if TYPE_CHECKING:
|
|
20
20
|
from appium.webdriver.webelement import WebElement
|
|
21
21
|
|
|
22
22
|
|
|
@@ -29,13 +29,6 @@ class CanFindElements(Protocol):
|
|
|
29
29
|
- find_elements(by, value): Find multiple elements
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
|
-
|
|
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': ...
|
|
32
|
+
def find_element(self, by: str | By = By.ID, value: str | dict | None = None) -> 'WebElement': ...
|
|
40
33
|
|
|
41
|
-
|
|
34
|
+
def find_elements(self, by: str | By = By.ID, value: str | dict | None = None) -> list['WebElement']: ...
|
|
@@ -16,26 +16,6 @@ from typing import Literal
|
|
|
16
16
|
|
|
17
17
|
from selenium.webdriver.common.by import By
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
class AppiumBy(By):
|
|
21
|
-
IOS_PREDICATE = '-ios predicate string'
|
|
22
|
-
IOS_CLASS_CHAIN = '-ios class chain'
|
|
23
|
-
ANDROID_UIAUTOMATOR = '-android uiautomator'
|
|
24
|
-
ANDROID_VIEWTAG = '-android viewtag'
|
|
25
|
-
ANDROID_DATA_MATCHER = '-android datamatcher'
|
|
26
|
-
ANDROID_VIEW_MATCHER = '-android viewmatcher'
|
|
27
|
-
ACCESSIBILITY_ID = 'accessibility id'
|
|
28
|
-
IMAGE = '-image'
|
|
29
|
-
CUSTOM = '-custom'
|
|
30
|
-
|
|
31
|
-
# For Flutter integration usage https://github.com/AppiumTestDistribution/appium-flutter-integration-driver/tree/main
|
|
32
|
-
FLUTTER_INTEGRATION_SEMANTICS_LABEL = '-flutter semantics label'
|
|
33
|
-
FLUTTER_INTEGRATION_TYPE = '-flutter type'
|
|
34
|
-
FLUTTER_INTEGRATION_KEY = '-flutter key'
|
|
35
|
-
FLUTTER_INTEGRATION_TEXT = '-flutter text'
|
|
36
|
-
FLUTTER_INTEGRATION_TEXT_CONTAINING = '-flutter text containing'
|
|
37
|
-
|
|
38
|
-
|
|
39
19
|
ByType = Literal[
|
|
40
20
|
'-ios predicate string',
|
|
41
21
|
'-ios class chain',
|
|
@@ -52,3 +32,22 @@ ByType = Literal[
|
|
|
52
32
|
'-flutter text',
|
|
53
33
|
'-flutter text containing',
|
|
54
34
|
]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AppiumBy(By):
|
|
38
|
+
IOS_PREDICATE: ByType = '-ios predicate string'
|
|
39
|
+
IOS_CLASS_CHAIN: ByType = '-ios class chain'
|
|
40
|
+
ANDROID_UIAUTOMATOR: ByType = '-android uiautomator'
|
|
41
|
+
ANDROID_VIEWTAG: ByType = '-android viewtag'
|
|
42
|
+
ANDROID_DATA_MATCHER: ByType = '-android datamatcher'
|
|
43
|
+
ANDROID_VIEW_MATCHER: ByType = '-android viewmatcher'
|
|
44
|
+
ACCESSIBILITY_ID: ByType = 'accessibility id'
|
|
45
|
+
IMAGE: ByType = '-image'
|
|
46
|
+
CUSTOM: ByType = '-custom'
|
|
47
|
+
|
|
48
|
+
# For Flutter integration usage https://github.com/AppiumTestDistribution/appium-flutter-integration-driver/tree/main
|
|
49
|
+
FLUTTER_INTEGRATION_SEMANTICS_LABEL: ByType = '-flutter semantics label'
|
|
50
|
+
FLUTTER_INTEGRATION_TYPE: ByType = '-flutter type'
|
|
51
|
+
FLUTTER_INTEGRATION_KEY: ByType = '-flutter key'
|
|
52
|
+
FLUTTER_INTEGRATION_TEXT: ByType = '-flutter text'
|
|
53
|
+
FLUTTER_INTEGRATION_TEXT_CONTAINING: ByType = '-flutter text containing'
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import cast
|
|
19
|
-
|
|
20
18
|
from selenium.webdriver.common.by import ByType as SeleniumByType
|
|
21
19
|
|
|
22
20
|
from appium.webdriver.common.appiumby import AppiumBy
|
|
@@ -30,23 +28,23 @@ class FlutterFinder:
|
|
|
30
28
|
|
|
31
29
|
@staticmethod
|
|
32
30
|
def by_key(value: str) -> 'FlutterFinder':
|
|
33
|
-
return FlutterFinder(
|
|
31
|
+
return FlutterFinder(AppiumBy.FLUTTER_INTEGRATION_KEY, value)
|
|
34
32
|
|
|
35
33
|
@staticmethod
|
|
36
34
|
def by_text(value: str) -> 'FlutterFinder':
|
|
37
|
-
return FlutterFinder(
|
|
35
|
+
return FlutterFinder(AppiumBy.FLUTTER_INTEGRATION_TEXT, value)
|
|
38
36
|
|
|
39
37
|
@staticmethod
|
|
40
38
|
def by_semantics_label(value: str) -> 'FlutterFinder':
|
|
41
|
-
return FlutterFinder(
|
|
39
|
+
return FlutterFinder(AppiumBy.FLUTTER_INTEGRATION_SEMANTICS_LABEL, value)
|
|
42
40
|
|
|
43
41
|
@staticmethod
|
|
44
42
|
def by_type(value: str) -> 'FlutterFinder':
|
|
45
|
-
return FlutterFinder(
|
|
43
|
+
return FlutterFinder(AppiumBy.FLUTTER_INTEGRATION_TYPE, value)
|
|
46
44
|
|
|
47
45
|
@staticmethod
|
|
48
46
|
def by_text_containing(value: str) -> 'FlutterFinder':
|
|
49
|
-
return FlutterFinder(
|
|
47
|
+
return FlutterFinder(AppiumBy.FLUTTER_INTEGRATION_TEXT_CONTAINING, value)
|
|
50
48
|
|
|
51
49
|
def to_dict(self) -> dict:
|
|
52
50
|
return {'using': self.using, 'value': self.value}
|
appium/webdriver/switch_to.py
CHANGED
|
@@ -13,13 +13,23 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
from typing import TYPE_CHECKING
|
|
17
|
+
|
|
16
18
|
from selenium.webdriver.remote.switch_to import SwitchTo
|
|
17
19
|
from typing_extensions import Self
|
|
18
20
|
|
|
19
21
|
from .mobilecommand import MobileCommand
|
|
20
22
|
|
|
23
|
+
if TYPE_CHECKING:
|
|
24
|
+
from .webelement import WebElement as MobileWebElement
|
|
25
|
+
|
|
21
26
|
|
|
22
27
|
class MobileSwitchTo(SwitchTo):
|
|
28
|
+
if TYPE_CHECKING:
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def active_element(self) -> MobileWebElement: ...
|
|
32
|
+
|
|
23
33
|
def context(self, context_name: str | None) -> Self:
|
|
24
34
|
"""Sets the context for the current session.
|
|
25
35
|
Passing `None` is equal to switching to native context.
|
appium/webdriver/webdriver.py
CHANGED
|
@@ -66,6 +66,7 @@ from .webelement import WebElement as MobileWebElement
|
|
|
66
66
|
|
|
67
67
|
if TYPE_CHECKING:
|
|
68
68
|
from selenium.webdriver.common.by import By
|
|
69
|
+
from selenium.webdriver.support.relative_locator import RelativeBy
|
|
69
70
|
|
|
70
71
|
|
|
71
72
|
class ExtensionBase:
|
|
@@ -291,11 +292,11 @@ class WebDriver(
|
|
|
291
292
|
|
|
292
293
|
if TYPE_CHECKING:
|
|
293
294
|
|
|
294
|
-
def find_element(self, by: str = By.ID, value: str | dict | None = None) -> 'MobileWebElement':
|
|
295
|
-
...
|
|
295
|
+
def find_element(self, by: str | By | RelativeBy = By.ID, value: str | dict | None = None) -> 'MobileWebElement': ...
|
|
296
296
|
|
|
297
|
-
def find_elements(
|
|
298
|
-
|
|
297
|
+
def find_elements( # type: ignore[override]
|
|
298
|
+
self, by: str | By | RelativeBy = By.ID, value: str | dict | None = None
|
|
299
|
+
) -> list['MobileWebElement']: ...
|
|
299
300
|
|
|
300
301
|
def delete_extensions(self) -> None:
|
|
301
302
|
"""Delete extensions added in the class with 'setattr'"""
|
|
@@ -336,7 +337,7 @@ class WebDriver(
|
|
|
336
337
|
client_config = copy.copy(self.command_executor.client_config)
|
|
337
338
|
client_config.remote_server_addr = executor
|
|
338
339
|
client_config.keep_alive = keep_alive
|
|
339
|
-
if isinstance(self.command_executor, AppiumConnection):
|
|
340
|
+
if isinstance(self.command_executor, AppiumConnection):
|
|
340
341
|
self.command_executor = AppiumConnection(client_config=client_config)
|
|
341
342
|
else:
|
|
342
343
|
self.command_executor = RemoteConnection(client_config=client_config)
|
appium/webdriver/webelement.py
CHANGED
|
@@ -32,10 +32,9 @@ class WebElement(SeleniumWebElement):
|
|
|
32
32
|
|
|
33
33
|
if TYPE_CHECKING:
|
|
34
34
|
|
|
35
|
-
def find_element(self, by: str = By.ID, value: str | dict | None = None) -> Self:
|
|
36
|
-
...
|
|
35
|
+
def find_element(self, by: str | By = By.ID, value: str | dict | None = None) -> Self: ...
|
|
37
36
|
|
|
38
|
-
def find_elements(self, by: str = By.ID, value: str | dict | None = None) -> list[Self]: # type: ignore[override]
|
|
37
|
+
def find_elements(self, by: str | By = By.ID, value: str | dict | None = None) -> list[Self]: # type: ignore[override]
|
|
39
38
|
...
|
|
40
39
|
|
|
41
40
|
def get_attribute(self, name: str) -> str | dict | None: # type: ignore[override]
|
|
@@ -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=
|
|
272
|
+
appium/protocols/webdriver/can_find_elements.py,sha256=_RwOaFcNzTOP0RDW-ejJXANxfSDU8p9SKXqm3eSXa3I,1246
|
|
273
273
|
appium/webdriver/__init__.py,sha256=oT-lIYWpqD562rbXy36HlS03pKfW48BIxqZsqt1XEm0,730
|
|
274
274
|
appium/webdriver/appium_connection.py,sha256=qh6LowDI9_6gwPxy50LGD96YTqKwa0ODGM1RUGOSpks,2580
|
|
275
275
|
appium/webdriver/appium_service.py,sha256=kpb_AkoA_6jAupLFgVRJ7QP-98U8NAxbkw5qGmqqMQM,13003
|
|
@@ -281,11 +281,11 @@ appium/webdriver/connectiontype.py,sha256=ZDiibECp-bdFkWy2_PRrJboi0bf-QQDWNsnpra
|
|
|
281
281
|
appium/webdriver/errorhandler.py,sha256=_aT6Qo64ARGch7evG2Uku4-l8wkDaM1R2o06PWXxwr8,5640
|
|
282
282
|
appium/webdriver/locator_converter.py,sha256=uUdJsX1o0E8x-StcJvO5gFFJbcRzhOmySfgPqJ0UaU4,999
|
|
283
283
|
appium/webdriver/mobilecommand.py,sha256=B_okscraJMPrN4hSyetSNddkOZ0PyTzsQvBdYHHQqvM,3162
|
|
284
|
-
appium/webdriver/switch_to.py,sha256=
|
|
285
|
-
appium/webdriver/webdriver.py,sha256=
|
|
286
|
-
appium/webdriver/webelement.py,sha256=
|
|
284
|
+
appium/webdriver/switch_to.py,sha256=px12JwzTXngGWJiOfKXKaIc_QOoB1144Dv2U19jebSo,1386
|
|
285
|
+
appium/webdriver/webdriver.py,sha256=nCvoilLFtAwa2fkd4lTSXF8iTSu-kyqvv0iVaimJ3dg,19391
|
|
286
|
+
appium/webdriver/webelement.py,sha256=P7ev_K9DwmMJ8oS6u4TpLi7R5xFcsSE8dmu2ICfrvJA,4472
|
|
287
287
|
appium/webdriver/common/__init__.py,sha256=4MapoJ3p5LiP0AsHMgL2xoPTIFno4dcH1GSoxaZzv4w,623
|
|
288
|
-
appium/webdriver/common/appiumby.py,sha256=
|
|
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
291
|
appium/webdriver/extensions/applications.py,sha256=KnRD9-JilgYtBuy8dik2iGI5GeS2RPQws2BSdKL9HDo,6575
|
|
@@ -317,9 +317,9 @@ appium/webdriver/extensions/android/sms.py,sha256=ZXvZ0DpA_X5iojNDlh91O8tYJUmNb2
|
|
|
317
317
|
appium/webdriver/extensions/android/system_bars.py,sha256=1vCIwg5UGpY1GfCoXFPL9nfSVjafAGVsTonBMrmIwaw,1530
|
|
318
318
|
appium/webdriver/extensions/flutter_integration/__init__.py,sha256=wSUl6yC2TJNla7xbHXkCfn9J1LpQs9UIx8oOs6V8kZA,567
|
|
319
319
|
appium/webdriver/extensions/flutter_integration/flutter_commands.py,sha256=1bAczDwqr40Rrbln321cIVG83ghar7-27aerRAKbfMs,12306
|
|
320
|
-
appium/webdriver/extensions/flutter_integration/flutter_finder.py,sha256=
|
|
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.
|
|
323
|
-
appium_python_client-6.1.
|
|
324
|
-
appium_python_client-6.1.
|
|
325
|
-
appium_python_client-6.1.
|
|
322
|
+
appium_python_client-6.1.5.dist-info/METADATA,sha256=C_0pvNsjg5rDdkjsLqlKI2Wf9Q0M2tumihizQrADM-c,22042
|
|
323
|
+
appium_python_client-6.1.5.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
324
|
+
appium_python_client-6.1.5.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
|
|
325
|
+
appium_python_client-6.1.5.dist-info/RECORD,,
|
|
File without changes
|
{appium_python_client-6.1.4.dist-info → appium_python_client-6.1.5.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|