mops 3.3.0__tar.gz → 3.3.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 (54) hide show
  1. {mops-3.3.0 → mops-3.3.2}/PKG-INFO +1 -1
  2. {mops-3.3.0 → mops-3.3.2}/mops/__init__.py +1 -1
  3. {mops-3.3.0 → mops-3.3.2}/mops/base/element.py +3 -0
  4. {mops-3.3.0 → mops-3.3.2}/mops/utils/internal_utils.py +5 -8
  5. {mops-3.3.0 → mops-3.3.2}/mops.egg-info/PKG-INFO +1 -1
  6. {mops-3.3.0 → mops-3.3.2}/README.md +0 -0
  7. {mops-3.3.0 → mops-3.3.2}/mops/abstraction/driver_wrapper_abc.py +0 -0
  8. {mops-3.3.0 → mops-3.3.2}/mops/abstraction/element_abc.py +0 -0
  9. {mops-3.3.0 → mops-3.3.2}/mops/abstraction/mixin_abc.py +0 -0
  10. {mops-3.3.0 → mops-3.3.2}/mops/abstraction/page_abc.py +0 -0
  11. {mops-3.3.0 → mops-3.3.2}/mops/base/driver_wrapper.py +0 -0
  12. {mops-3.3.0 → mops-3.3.2}/mops/base/group.py +0 -0
  13. {mops-3.3.0 → mops-3.3.2}/mops/base/page.py +0 -0
  14. {mops-3.3.0 → mops-3.3.2}/mops/exceptions.py +0 -0
  15. {mops-3.3.0 → mops-3.3.2}/mops/js_scripts.py +0 -0
  16. {mops-3.3.0 → mops-3.3.2}/mops/keyboard_keys.py +0 -0
  17. {mops-3.3.0 → mops-3.3.2}/mops/mixins/capabilities.py +0 -0
  18. {mops-3.3.0 → mops-3.3.2}/mops/mixins/driver_mixin.py +0 -0
  19. {mops-3.3.0 → mops-3.3.2}/mops/mixins/internal_mixin.py +0 -0
  20. {mops-3.3.0 → mops-3.3.2}/mops/mixins/native_context.py +0 -0
  21. {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/box.py +0 -0
  22. {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/driver.py +0 -0
  23. {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/location.py +0 -0
  24. {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/locator.py +0 -0
  25. {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/locator_type.py +0 -0
  26. {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/scrolls.py +0 -0
  27. {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/size.py +0 -0
  28. {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/visual_comaprison_mixin.py +0 -0
  29. {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/wait_result.py +0 -0
  30. {mops-3.3.0 → mops-3.3.2}/mops/playwright/play_driver.py +0 -0
  31. {mops-3.3.0 → mops-3.3.2}/mops/playwright/play_element.py +0 -0
  32. {mops-3.3.0 → mops-3.3.2}/mops/playwright/play_page.py +0 -0
  33. {mops-3.3.0 → mops-3.3.2}/mops/selenium/core/core_driver.py +0 -0
  34. {mops-3.3.0 → mops-3.3.2}/mops/selenium/core/core_element.py +0 -0
  35. {mops-3.3.0 → mops-3.3.2}/mops/selenium/core/core_page.py +0 -0
  36. {mops-3.3.0 → mops-3.3.2}/mops/selenium/driver/mobile_driver.py +0 -0
  37. {mops-3.3.0 → mops-3.3.2}/mops/selenium/driver/web_driver.py +0 -0
  38. {mops-3.3.0 → mops-3.3.2}/mops/selenium/elements/mobile_element.py +0 -0
  39. {mops-3.3.0 → mops-3.3.2}/mops/selenium/elements/web_element.py +0 -0
  40. {mops-3.3.0 → mops-3.3.2}/mops/selenium/pages/mobile_page.py +0 -0
  41. {mops-3.3.0 → mops-3.3.2}/mops/selenium/pages/web_page.py +0 -0
  42. {mops-3.3.0 → mops-3.3.2}/mops/selenium/sel_utils.py +0 -0
  43. {mops-3.3.0 → mops-3.3.2}/mops/shared_utils.py +0 -0
  44. {mops-3.3.0 → mops-3.3.2}/mops/utils/decorators.py +0 -0
  45. {mops-3.3.0 → mops-3.3.2}/mops/utils/logs.py +0 -0
  46. {mops-3.3.0 → mops-3.3.2}/mops/utils/previous_object_driver.py +0 -0
  47. {mops-3.3.0 → mops-3.3.2}/mops/utils/selector_synchronizer.py +0 -0
  48. {mops-3.3.0 → mops-3.3.2}/mops/visual_comparison.py +0 -0
  49. {mops-3.3.0 → mops-3.3.2}/mops.egg-info/SOURCES.txt +0 -0
  50. {mops-3.3.0 → mops-3.3.2}/mops.egg-info/dependency_links.txt +0 -0
  51. {mops-3.3.0 → mops-3.3.2}/mops.egg-info/requires.txt +0 -0
  52. {mops-3.3.0 → mops-3.3.2}/mops.egg-info/top_level.txt +0 -0
  53. {mops-3.3.0 → mops-3.3.2}/pyproject.toml +0 -0
  54. {mops-3.3.0 → mops-3.3.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mops
3
- Version: 3.3.0
3
+ Version: 3.3.2
4
4
  Summary: Wrapper of Selenium, Appium and Playwright with single API
5
5
  Author-email: Podolian Vladimir <vladimir.podolyan64@gmail.com>
6
6
  License: MIT
@@ -1,2 +1,2 @@
1
- __version__ = '3.3.0'
1
+ __version__ = '3.3.2'
2
2
  __project_name__ = 'mops'
@@ -55,6 +55,8 @@ class Element(DriverMixin, InternalMixin, Logging, ElementABC):
55
55
  and provides a unified interface for UI interactions.
56
56
  """
57
57
 
58
+ source_locator: Union[Locator, str]
59
+
58
60
  _object = 'element'
59
61
  _base_cls: Type[PlayElement, MobileElement, WebElement]
60
62
  driver_wrapper: DriverWrapper
@@ -115,6 +117,7 @@ class Element(DriverMixin, InternalMixin, Logging, ElementABC):
115
117
  raise ValueError(error)
116
118
 
117
119
  self.locator = locator
120
+ self.source_locator = locator
118
121
  self.name = name if name else locator
119
122
  self.parent = parent
120
123
  self.wait = wait
@@ -6,10 +6,10 @@ from copy import copy
6
6
  from functools import lru_cache
7
7
  from typing import Any, Union, Callable
8
8
 
9
- from mops.mixins.objects.size import Size
10
- from selenium.common.exceptions import StaleElementReferenceException as SeleniumStaleElementReferenceException
9
+ from selenium.common.exceptions import WebDriverException as SeleniumWebDriverException
11
10
 
12
- from mops.exceptions import NoSuchElementException, InvalidSelectorException, TimeoutException, NoSuchParentException
11
+ from mops.exceptions import DriverWrapperException as MopsDriverWrapperException
12
+ from mops.mixins.objects.size import Size
13
13
 
14
14
  WAIT_METHODS_DELAY = 0.1
15
15
  WAIT_UNIT = 1
@@ -38,11 +38,8 @@ def safe_call(func: Callable, *args, **kwargs) -> Union[Any, None]:
38
38
  :return: None or function return
39
39
  """
40
40
  exceptions = (
41
- NoSuchElementException,
42
- InvalidSelectorException,
43
- TimeoutException,
44
- NoSuchParentException,
45
- SeleniumStaleElementReferenceException,
41
+ MopsDriverWrapperException,
42
+ SeleniumWebDriverException,
46
43
  )
47
44
 
48
45
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mops
3
- Version: 3.3.0
3
+ Version: 3.3.2
4
4
  Summary: Wrapper of Selenium, Appium and Playwright with single API
5
5
  Author-email: Podolian Vladimir <vladimir.podolyan64@gmail.com>
6
6
  License: MIT
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
File without changes
File without changes