Appium-Python-Client 6.0.1__py3-none-any.whl → 6.0.3__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/webdriver/appium_service.py +13 -2
- {appium_python_client-6.0.1.dist-info → appium_python_client-6.0.3.dist-info}/METADATA +1 -1
- {appium_python_client-6.0.1.dist-info → appium_python_client-6.0.3.dist-info}/RECORD +5 -5
- {appium_python_client-6.0.1.dist-info → appium_python_client-6.0.3.dist-info}/WHEEL +0 -0
- {appium_python_client-6.0.1.dist-info → appium_python_client-6.0.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -18,6 +18,7 @@ import subprocess as sp
|
|
|
18
18
|
import sys
|
|
19
19
|
import time
|
|
20
20
|
from collections.abc import Callable
|
|
21
|
+
from ipaddress import AddressValueError, IPv6Address
|
|
21
22
|
from typing import Any
|
|
22
23
|
|
|
23
24
|
from selenium.webdriver.remote.remote_connection import urllib3
|
|
@@ -184,7 +185,7 @@ class AppiumService:
|
|
|
184
185
|
try:
|
|
185
186
|
return is_service_listening(
|
|
186
187
|
_make_server_url(self._cmd),
|
|
187
|
-
timeout=STATE_CHECK_INTERVAL_MS /
|
|
188
|
+
timeout=STATE_CHECK_INTERVAL_MS / 100.0, # 5 seconds
|
|
188
189
|
custom_validator=self._assert_is_running,
|
|
189
190
|
)
|
|
190
191
|
except AppiumStartupError:
|
|
@@ -286,6 +287,9 @@ def _parse_arg_value(args: list[str], arg_names: set[str], default: str) -> str:
|
|
|
286
287
|
for idx, arg in enumerate(args):
|
|
287
288
|
if arg in arg_names and idx < len(args) - 1:
|
|
288
289
|
return args[idx + 1]
|
|
290
|
+
name, separator, value = arg.partition('=')
|
|
291
|
+
if separator and name in arg_names:
|
|
292
|
+
return value
|
|
289
293
|
return default
|
|
290
294
|
|
|
291
295
|
|
|
@@ -315,7 +319,14 @@ def _make_status_path(args: list[str]) -> str:
|
|
|
315
319
|
|
|
316
320
|
|
|
317
321
|
def _make_server_url(args: list[str]) -> str:
|
|
318
|
-
|
|
322
|
+
host = _parse_host(args)
|
|
323
|
+
try:
|
|
324
|
+
IPv6Address(host)
|
|
325
|
+
except AddressValueError:
|
|
326
|
+
pass
|
|
327
|
+
else:
|
|
328
|
+
host = f'[{host}]'
|
|
329
|
+
return f'{_parse_protocol(args)}://{host}:{_parse_port(args)}{_make_status_path(args)}'
|
|
319
330
|
|
|
320
331
|
|
|
321
332
|
if __name__ == '__main__':
|
|
@@ -272,7 +272,7 @@ appium/protocols/webdriver/can_execute_scripts.py,sha256=dMRDjreiyV3IJp7-NRUx1Tj
|
|
|
272
272
|
appium/protocols/webdriver/can_find_elements.py,sha256=sirq42kVaAnKMbwDDh4CoGIr8B0baEnJQEcJaDpTzmA,1175
|
|
273
273
|
appium/webdriver/__init__.py,sha256=oT-lIYWpqD562rbXy36HlS03pKfW48BIxqZsqt1XEm0,730
|
|
274
274
|
appium/webdriver/appium_connection.py,sha256=S-CodDwQWjT-lNwyHSsGtdb4GFHxTM9BXGoOyWdMI94,2405
|
|
275
|
-
appium/webdriver/appium_service.py,sha256=
|
|
275
|
+
appium/webdriver/appium_service.py,sha256=K8KUSC1n7z021PvLbTQq1uB2dJEqvGhmOVSjgVFHP3E,12760
|
|
276
276
|
appium/webdriver/applicationstate.py,sha256=zUPaMt4o4mdAtWP6FapYLJju_tqO6FmMcYFpbFz83dM,735
|
|
277
277
|
appium/webdriver/client_config.py,sha256=iuVcGsBF9eGNsF_gzs8b6vZWS0iI1u7actaBGBwNrqY,1631
|
|
278
278
|
appium/webdriver/clipboard_content_type.py,sha256=Tyks8xA2dqvuQGEV4iVYr-iMvB-hsQBEcu8wWBxtJ4M,661
|
|
@@ -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.
|
|
323
|
-
appium_python_client-6.0.
|
|
324
|
-
appium_python_client-6.0.
|
|
325
|
-
appium_python_client-6.0.
|
|
322
|
+
appium_python_client-6.0.3.dist-info/METADATA,sha256=j-x-VpBBrCONqs8KPhEtRB74b451Kw1Nq1JkhiEpQbQ,20932
|
|
323
|
+
appium_python_client-6.0.3.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
324
|
+
appium_python_client-6.0.3.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
|
|
325
|
+
appium_python_client-6.0.3.dist-info/RECORD,,
|
|
File without changes
|
{appium_python_client-6.0.1.dist-info → appium_python_client-6.0.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|