Hey everyone,
I’m trying to figure out how to use custom locators. It seems to work for locating elements, but if I use a keyword such as Wait Until Page Contains Element
, it fails immediately without waiting for the requested timeout.
My custom locator is:
Get Element By Data-TestID
[Arguments] ${browser} ${locator} ${tag} ${constraints}
${e} Get WebElement //*[@data-testid="${locator}"]
[Return] ${e}
And I’m using it like this:
Test Setup Add Location Strategy data-testid Get Element By Data-TestID