Skip to content

Commit bf2b8bd

Browse files
Version and spelling update
1 parent 05dbd86 commit bf2b8bd

5 files changed

Lines changed: 7 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
<br>
44

5-
## v3.4.0
5+
## v3.3.2
6+
*Release date: 2026-03-24*
67

78
### Added
89
- `Element.source_locator` attribute that preserves the original locator before platform-specific transformations

docs/source/element_object/key_features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The `source_locator` attribute stores the original locator exactly as it was pro
5050
before any platform-specific resolution or framework-specific transformations.
5151

5252
```{note}
53-
For **static** child elements, consider using the built-in parent mechanism instead —
53+
For **static** sub-elements, consider using the built-in parent mechanism instead —
5454
`Element` objects defined as class attributes of a `Group` automatically search within
5555
the Group locator (see {doc}`Group documentation <../group_object/index>`).
5656

mops/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = '3.3.1'
1+
__version__ = '3.3.2'
22
__project_name__ = 'mops'

mops/base/element.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ class Element(DriverMixin, InternalMixin, Logging, ElementABC):
5555
and provides a unified interface for UI interactions.
5656
"""
5757

58-
#: The original locator as provided to ``__init__``, before any platform resolution
59-
#: or framework-specific transformations. Useful for building child locators from
60-
#: the original value.
6158
source_locator: Union[Locator, str]
6259

6360
_object = 'element'

tests/static_tests/integration/test_source_locator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SourceLocatorGroup(Group):
2626
def __init__(self):
2727
super().__init__(xpath_locator, name='source locator group')
2828

29-
child_element = Element(css_locator, name='child element')
29+
sub_element = Element(css_locator, name='sub element')
3030
multi_element = Element(multi_platform_locator, name='multi element')
3131

3232

@@ -75,9 +75,9 @@ def test_source_locator_preserved_for_locator_dataclass_mobile(driver, request):
7575

7676

7777
@pytest.mark.parametrize('driver', desktop_drivers, ids=desktop_ids)
78-
def test_source_locator_preserved_in_group_children(driver, request):
78+
def test_source_locator_preserved_in_sub_elements(driver, request):
7979
request.getfixturevalue(driver)
8080
group = SourceLocatorGroup()
8181
assert group.source_locator == xpath_locator
82-
assert group.child_element.source_locator == css_locator
82+
assert group.sub_element.source_locator == css_locator
8383
assert group.multi_element.source_locator is multi_platform_locator

0 commit comments

Comments
 (0)