Skip to content

Commit

Permalink
[plugin-web-app] Deprecate elementName locator type (#5289)
Browse files Browse the repository at this point in the history
  • Loading branch information
avinBar authored Aug 12, 2024
1 parent 2a0f4db commit c1daf2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/modules/plugins/partials/plugin-web-app-locators.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,18 @@ and moves handling of spaces up to user
|input element with @type="checkbox" and text value
|checkboxName(allow)

|`elementName`
a|`elementName`
[WARNING]
====
This locator type is deprecated and will be removed in VIVIDUS 0.7.0. Use `name` locator type instead.
====
|any attribute or text value
|elementName(OK)

|`name`
|Locate elements where any attribute or text value matches the specified search value.
|name(OK)

|`shadowCssSelector`
|chain of css selectors, separated by `;`, where first value - selector for upper shadow host, last value - target element selector
|shadowCssSelector(.upperHost; #innerHost1; #innerHost2; .targetValue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public By buildBy(String value)
FIELD_TEXT("Field text", FieldTextFilter.class),
FIELD_TEXT_PART("Field text part", FieldTextPartFilter.class),
DROP_DOWN_TEXT("Drop down text", DropDownTextFilter.class),
@Deprecated(since = "0.6.14", forRemoval = true)
ELEMENT_NAME("Element name", ElementNameSearch.class),
NAME("Name", ElementNameSearch.class),
PARTIAL_LINK_TEXT("Partial link text", ByLocatorSearch.class)
Expand Down

0 comments on commit c1daf2f

Please sign in to comment.