Skip to content

Commit

Permalink
Update docs/sources/next/javascript-api/k6-browser/page/doubledollar.md
Browse files Browse the repository at this point in the history
Co-authored-by: İnanç Gümüş <[email protected]>
  • Loading branch information
ankur22 and inancgumus authored Oct 8, 2024
1 parent 4031cad commit efe48f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: 'Browser module: page.$$(selector) method'

When possible, use locator-based [`page.locator(selector)`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/locator/) instead.

However, working with `locator`s might not be possible when trying to select an element from a list or table if it's difficult to find a stable and unique way to identify the element.
However, using `locator`s may not always work when selecting an element from a list or table, especially if there isn't a reliable way to consistently identify a single element (e.g., due to changing or similar attributes). In such cases, $$ remains useful.

{{< /admonition >}}

Expand Down

0 comments on commit efe48f8

Please sign in to comment.