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
The method finds all elements matching the selector and creates a new [Locator](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/) that matches all of them. This method can be used to further refine the locator by chaining additional selectors.
8
+
Creates and returns a new locator chained/relative to the current locator. Locators resolve to the element when the action takes place, which means locators can span over navigations where the underlying dom changes.
9
9
10
10
This allows you to define locators relative to a parent locator, enabling more precise element targeting by creating nested locators.
| selector | string |`''`| A selector to use when resolving DOM element. |
17
+
| options | object |`null`||
18
+
| options.hasText | string or RegExp |`null`| Matches only elements that contain the specified text. String or regular expression. Optional. |
19
+
| options.hasNotText | string or RegExp |`null`| Matches only elements that do not contain the specified text. String or regular expression. Optional. |
0 commit comments