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
{{ message }}
Repository navigation
[Feature] .locator should also take in Locator type #19642
so chaining elements such as .byRole, .filter, .locator
.locator should take in an actual Locator as to work better with page object model as opposed to just string
it comes in handy when chaining to find elements in a table, or in dropdown that might have icons next to each name, and that icon you've set as an Locator in your POM file.
Activity
dgozman commentedon Mar 23, 2023
Chaining locators is now possible with
Locator.locator()method. Check out this guide.gselsidi commentedon Mar 23, 2023
Dmitry Gozman (@dgozman) thanks for this! I looked at the guide didn’t see any examples or is it not updated yet?
If so can you provide an example.
dgozman commentedon Mar 23, 2023
The second snippet in the guide has an example of locator chaining: