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.
- {mops-3.3.0 → mops-3.3.2}/PKG-INFO +1 -1
- {mops-3.3.0 → mops-3.3.2}/mops/__init__.py +1 -1
- {mops-3.3.0 → mops-3.3.2}/mops/base/element.py +3 -0
- {mops-3.3.0 → mops-3.3.2}/mops/utils/internal_utils.py +5 -8
- {mops-3.3.0 → mops-3.3.2}/mops.egg-info/PKG-INFO +1 -1
- {mops-3.3.0 → mops-3.3.2}/README.md +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/abstraction/driver_wrapper_abc.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/abstraction/element_abc.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/abstraction/mixin_abc.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/abstraction/page_abc.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/base/driver_wrapper.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/base/group.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/base/page.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/exceptions.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/js_scripts.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/keyboard_keys.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/capabilities.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/driver_mixin.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/internal_mixin.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/native_context.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/box.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/driver.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/location.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/locator.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/locator_type.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/scrolls.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/size.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/visual_comaprison_mixin.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/mixins/objects/wait_result.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/playwright/play_driver.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/playwright/play_element.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/playwright/play_page.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/core/core_driver.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/core/core_element.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/core/core_page.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/driver/mobile_driver.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/driver/web_driver.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/elements/mobile_element.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/elements/web_element.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/pages/mobile_page.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/pages/web_page.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/selenium/sel_utils.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/shared_utils.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/utils/decorators.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/utils/logs.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/utils/previous_object_driver.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/utils/selector_synchronizer.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops/visual_comparison.py +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops.egg-info/SOURCES.txt +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops.egg-info/dependency_links.txt +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops.egg-info/requires.txt +0 -0
- {mops-3.3.0 → mops-3.3.2}/mops.egg-info/top_level.txt +0 -0
- {mops-3.3.0 → mops-3.3.2}/pyproject.toml +0 -0
- {mops-3.3.0 → mops-3.3.2}/setup.cfg +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = '3.3.
|
|
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
|
|
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
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
TimeoutException,
|
|
44
|
-
NoSuchParentException,
|
|
45
|
-
SeleniumStaleElementReferenceException,
|
|
41
|
+
MopsDriverWrapperException,
|
|
42
|
+
SeleniumWebDriverException,
|
|
46
43
|
)
|
|
47
44
|
|
|
48
45
|
try:
|
|
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
|
|
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
|