Skip to content

Commit 1b7ced5

Browse files
committed
Document QueryAll DOM order behavior
1 parent 11c022e commit 1b7ced5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/sources/k6/next/javascript-api/k6-browser/elementhandle/queryall.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: 'Browser module: elementHandle.$$ method'
55

66
# $$(selector)
77

8-
Queries the elements for the given selector in the [ElementHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle)'s subtree.
8+
Queries the elements for the given selector in the [ElementHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle)'s subtree. The results are returned in DOM order.
99

1010

1111
| Parameter | Type | Default | Description |

docs/sources/k6/next/javascript-api/k6-browser/frame/doubledollar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Use locator-based [`frame.locator(selector)`](https://grafana.com/docs/k6/<K6_VE
1212

1313
{{< /admonition >}}
1414

15-
The method finds all elements matching the specified selector within the page. If no elements match the selector, the return value resolves to `[]`.
15+
The method finds all elements matching the specified selector within the page. If no elements match the selector, the return value resolves to `[]`. The results are returned in DOM order.
1616

1717
### Returns
1818

docs/sources/k6/next/javascript-api/k6-browser/page/doubledollar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ However, using `locator`s may not always work when selecting an element from a l
1414

1515
{{< /admonition >}}
1616

17-
The method finds all elements matching the specified selector within the page. If no elements match the selector, the return value resolves to `[]`. This is particularly useful when you want to retrieve a list of elements, and iterate through them to find the one that you need for your test case.
17+
The method finds all elements matching the specified selector within the page. If no elements match the selector, the return value resolves to `[]`. The results are returned in DOM order. This is particularly useful when you want to retrieve a list of elements, and iterate through them to find the one that you need for your test case.
1818

1919
### Returns
2020

0 commit comments

Comments
 (0)