Promium 3.8.0__tar.gz → 3.8.2__tar.gz

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.
Files changed (64) hide show
  1. {promium-3.8.0 → promium-3.8.2}/PKG-INFO +1 -1
  2. {promium-3.8.0 → promium-3.8.2}/Promium.egg-info/PKG-INFO +1 -1
  3. {promium-3.8.0 → promium-3.8.2}/promium/common.py +15 -13
  4. {promium-3.8.0 → promium-3.8.2}/setup.py +1 -1
  5. {promium-3.8.0 → promium-3.8.2}/LICENSE +0 -0
  6. {promium-3.8.0 → promium-3.8.2}/Promium.egg-info/SOURCES.txt +0 -0
  7. {promium-3.8.0 → promium-3.8.2}/Promium.egg-info/dependency_links.txt +0 -0
  8. {promium-3.8.0 → promium-3.8.2}/Promium.egg-info/entry_points.txt +0 -0
  9. {promium-3.8.0 → promium-3.8.2}/Promium.egg-info/requires.txt +0 -0
  10. {promium-3.8.0 → promium-3.8.2}/Promium.egg-info/top_level.txt +0 -0
  11. {promium-3.8.0 → promium-3.8.2}/README.rst +0 -0
  12. {promium-3.8.0 → promium-3.8.2}/doc/__init__.py +0 -0
  13. {promium-3.8.0 → promium-3.8.2}/doc/conf.py +0 -0
  14. {promium-3.8.0 → promium-3.8.2}/promium/__init__.py +0 -0
  15. {promium-3.8.0 → promium-3.8.2}/promium/_diag.py +0 -0
  16. {promium-3.8.0 → promium-3.8.2}/promium/assertions.py +0 -0
  17. {promium-3.8.0 → promium-3.8.2}/promium/base.py +0 -0
  18. {promium-3.8.0 → promium-3.8.2}/promium/browsers.py +0 -0
  19. {promium-3.8.0 → promium-3.8.2}/promium/device_config.py +0 -0
  20. {promium-3.8.0 → promium-3.8.2}/promium/elements/__init__.py +0 -0
  21. {promium-3.8.0 → promium-3.8.2}/promium/elements/checkbox.py +0 -0
  22. {promium-3.8.0 → promium-3.8.2}/promium/elements/drop_downs.py +0 -0
  23. {promium-3.8.0 → promium-3.8.2}/promium/elements/frame.py +0 -0
  24. {promium-3.8.0 → promium-3.8.2}/promium/elements/input_field.py +0 -0
  25. {promium-3.8.0 → promium-3.8.2}/promium/elements/link.py +0 -0
  26. {promium-3.8.0 → promium-3.8.2}/promium/elements/multiselect_listbox.py +0 -0
  27. {promium-3.8.0 → promium-3.8.2}/promium/elements/radio_button.py +0 -0
  28. {promium-3.8.0 → promium-3.8.2}/promium/elements/textarea_field.py +0 -0
  29. {promium-3.8.0 → promium-3.8.2}/promium/elements/upload_button.py +0 -0
  30. {promium-3.8.0 → promium-3.8.2}/promium/exceptions.py +0 -0
  31. {promium-3.8.0 → promium-3.8.2}/promium/expected_conditions.py +0 -0
  32. {promium-3.8.0 → promium-3.8.2}/promium/helpers.py +0 -0
  33. {promium-3.8.0 → promium-3.8.2}/promium/logger.py +0 -0
  34. {promium-3.8.0 → promium-3.8.2}/promium/plugin.py +0 -0
  35. {promium-3.8.0 → promium-3.8.2}/promium/support/__init__.py +0 -0
  36. {promium-3.8.0 → promium-3.8.2}/promium/support/settings.py +0 -0
  37. {promium-3.8.0 → promium-3.8.2}/promium/test_case.py +0 -0
  38. {promium-3.8.0 → promium-3.8.2}/promium/waits.py +0 -0
  39. {promium-3.8.0 → promium-3.8.2}/pyproject.toml +0 -0
  40. {promium-3.8.0 → promium-3.8.2}/setup.cfg +0 -0
  41. {promium-3.8.0 → promium-3.8.2}/tests/__init__.py +0 -0
  42. {promium-3.8.0 → promium-3.8.2}/tests/config.py +0 -0
  43. {promium-3.8.0 → promium-3.8.2}/tests/conftest.py +0 -0
  44. {promium-3.8.0 → promium-3.8.2}/tests/pages/__init__.py +0 -0
  45. {promium-3.8.0 → promium-3.8.2}/tests/pages/catalog_404_page.py +0 -0
  46. {promium-3.8.0 → promium-3.8.2}/tests/pages/catalog_gallery_page.py +0 -0
  47. {promium-3.8.0 → promium-3.8.2}/tests/settings/__init__.py +0 -0
  48. {promium-3.8.0 → promium-3.8.2}/tests/settings/test_base.py +0 -0
  49. {promium-3.8.0 → promium-3.8.2}/tests/settings/test_chrome.py +0 -0
  50. {promium-3.8.0 → promium-3.8.2}/tests/settings/test_edge.py +0 -0
  51. {promium-3.8.0 → promium-3.8.2}/tests/settings/test_firefox.py +0 -0
  52. {promium-3.8.0 → promium-3.8.2}/tests/settings/test_ie.py +0 -0
  53. {promium-3.8.0 → promium-3.8.2}/tests/settings/test_opera.py +0 -0
  54. {promium-3.8.0 → promium-3.8.2}/tests/test_catalog_404.py +0 -0
  55. {promium-3.8.0 → promium-3.8.2}/tests/test_catalog_gallery.py +0 -0
  56. {promium-3.8.0 → promium-3.8.2}/tests/test_enviroment.py +0 -0
  57. {promium-3.8.0 → promium-3.8.2}/tests/test_exceptions.py +0 -0
  58. {promium-3.8.0 → promium-3.8.2}/tests/test_expected_conditions.py +0 -0
  59. {promium-3.8.0 → promium-3.8.2}/tests/test_helpers.py +0 -0
  60. {promium-3.8.0 → promium-3.8.2}/tests/test_requests.py +0 -0
  61. {promium-3.8.0 → promium-3.8.2}/tests/test_soft_asserts.py +0 -0
  62. {promium-3.8.0 → promium-3.8.2}/tests/test_test_cases.py +0 -0
  63. {promium-3.8.0 → promium-3.8.2}/tests/test_waits.py +0 -0
  64. {promium-3.8.0 → promium-3.8.2}/tests/urls.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Promium
3
- Version: 3.8.0
3
+ Version: 3.8.2
4
4
  Summary: Selenium wrapper for testing Web UI
5
5
  Author: Denis Korytkin, Nataliia Guieva, Roman Zaporozhets, Vladimir Kritov, Oleh Dykusha
6
6
  Project-URL: Home page, https://none
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Promium
3
- Version: 3.8.0
3
+ Version: 3.8.2
4
4
  Summary: Selenium wrapper for testing Web UI
5
5
  Author: Denis Korytkin, Nataliia Guieva, Roman Zaporozhets, Vladimir Kritov, Oleh Dykusha
6
6
  Project-URL: Home page, https://none
@@ -335,11 +335,11 @@ def find_network_log(
335
335
  msg = performance_log.get("message", "")
336
336
  if request_mask in msg:
337
337
  json_log = json.loads(msg)["message"]
338
- requestId = json_log["params"]["requestId"]
339
- if requestId not in found_requests:
340
- found_requests[requestId] = {}
341
- method = json_log["method"]
342
- found_requests[requestId][method] = json_log
338
+ if requestId := json_log["params"].get("requestId"):
339
+ if requestId not in found_requests:
340
+ found_requests[requestId] = {}
341
+ method = json_log["method"]
342
+ found_requests[requestId][method] = json_log
343
343
  return found_requests
344
344
 
345
345
  xhr_log: dict = {}
@@ -354,7 +354,7 @@ def find_network_log(
354
354
  timeout -= 1
355
355
 
356
356
  result_all_logs: list[dict[str, Any]] = []
357
- for request_id in xhr_log:
357
+ for request_id in xhr_log: # noqa: PLC0206
358
358
  request_key = "Network.requestWillBeSent"
359
359
  response_key = "Network.responseReceived"
360
360
 
@@ -374,16 +374,18 @@ def find_network_log(
374
374
  "url": response.get("url"),
375
375
  "status": response.get("status"),
376
376
  "statusText": response.get("statusText"),
377
+ "type": xhr_log[request_id][response_key]["params"].get("type"),
377
378
  }
378
379
  except Exception:
379
-
380
- url = [
381
- x["params"]["url"]
382
- for x in xhr_log[request_id].values()
383
- if x["params"].get("url")
384
- ][0]
380
+ url = rtype = None
381
+ for item in xhr_log[request_id].values():
382
+ url = item["params"].get("url") or item["params"].get(
383
+ "request", {}
384
+ ).get("url")
385
+ rtype = item["params"].get("type")
385
386
  response_data = {
386
- "url": url,
387
+ "url": url if url else "Not found url",
388
+ "type": rtype if rtype else "Not found type",
387
389
  }
388
390
  log.info(f"[XHR Logs]: find by mask: '{find_mask}'")
389
391
 
@@ -19,7 +19,7 @@ LONG_DESCRIPTION = Path("README.rst").read_text(encoding="utf-8")
19
19
 
20
20
  setup(
21
21
  name="Promium",
22
- version="3.8.0",
22
+ version="3.8.2",
23
23
  install_requires=REQUIREMENTS,
24
24
  author=(
25
25
  "Denis Korytkin, Nataliia Guieva, "
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes