You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have all locators checked for uniqueness impicitly.
An exception are locators, that are used to create UiElementLists.
A property to enable/disable this seems reasonable
The text was updated successfully, but these errors were encountered:
Testerra already supports the element.unique() method to define that a UiElement should be unique. Otherwise an assertion error occures on the next UiElement action.
Of course, this is not usefull if you have a huge number of UiElements and want to be sure of uniquness of all elements.
We could introduce a strict mode for all checks which is handled in AbstractWebdriverCore.findWebElement(Consumer) in l.219.
A property could be tt.element.find.mode=selenium|strict
selenium (default) means that in case of non-unique locator the first appearance is used like Selenium does.
strict means the same like element.unique(), but for all UiElements (global)
I would like to have all locators checked for uniqueness impicitly.
An exception are locators, that are used to create UiElementLists.
A property to enable/disable this seems reasonable
The text was updated successfully, but these errors were encountered: