Skip to content

Commit 234734c

Browse files
committed
Explain locator.filter without opts
1 parent 44cb790 commit 234734c

File tree

1 file changed

+5
-5
lines changed
  • docs/sources/k6/next/javascript-api/k6-browser/locator

1 file changed

+5
-5
lines changed

docs/sources/k6/next/javascript-api/k6-browser/locator/filter.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ Returns a new [Locator](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/
99

1010
<TableWithNestedRows>
1111

12-
| Parameter | Type | Default | Description |
13-
| ------------------- | ------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
14-
| options | object | `null` | |
15-
| options.hasText | string or RegExp | `null` | Matches only elements that contain the specified text. String or regular expression. Optional. |
16-
| options.hasNotText | string or RegExp | `null` | Matches only elements that do not contain the specified text. String or regular expression. Optional. |
12+
| Parameter | Type | Default | Description |
13+
| ------------------ | ---------------- | ------- | ----------------------------------------------------------------------------------------------------- |
14+
| options | object | `null` | If not provided, the method behaves like a no-op and returns a locator identical to the original one. |
15+
| options.hasText | string or RegExp | `null` | Matches only elements that contain the specified text. String or regular expression. Optional. |
16+
| options.hasNotText | string or RegExp | `null` | Matches only elements that do not contain the specified text. String or regular expression. Optional. |
1717

1818
</TableWithNestedRows>
1919

0 commit comments

Comments
 (0)