Skip to content

Commit bd92176

Browse files
Apply suggestions from code review
Co-authored-by: Heitor Tashiro Sergent <heitortsergent@gmail.com>
1 parent fba8dd3 commit bd92176

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

docs/sources/k6/next/javascript-api/k6-browser/jshandle/evaluate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: 'Browser module: JSHandle.evaluate(pageFunction[, arg]) method'
55

66
# evaluate(pageFunction[, arg])
77

8-
Executes JavaScript code in the page, passing this handle as the first argument to the `pageFunction` and arg as following argument(s). It returns the value of the `pageFunction` invocation.
8+
Executes JavaScript code in the page, passing this handle as the first argument to the `pageFunction` and `arg` as the following arguments. It returns the value of the `pageFunction` invocation.
99

1010
<TableWithNestedRows>
1111

docs/sources/k6/next/javascript-api/k6-browser/jshandle/evaluatehandle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description: 'Browser module: JSHandle.evaluateHandle(pageFunction[, arg]) metho
55

66
# evaluateHandle(pageFunction[, arg])
77

8-
Executes JavaScript code in the page, passing this handle as the first argument to the `pageFunction` and arg as following argument(s). It returns the value of the `pageFunction` invocation as a `JSHandle`.
8+
Executes JavaScript code in the page, passing this handle as the first argument to the `pageFunction` and `arg` as the following arguments. It returns the value of the `pageFunction` invocation as a `JSHandle`.
99

10-
The only difference between [evaluate](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/evaluate/) and `evaluateHandle` is that `evaluateHandle` returns [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/).
10+
The only difference between [`evaluate`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/evaluate/) and `evaluateHandle` is that `evaluateHandle` returns [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/).
1111

1212
<TableWithNestedRows>
1313

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ description: 'Browser module: locator.evaluate(pageFunction[, arg]) method'
55

66
# evaluate(pageFunction[, arg])
77

8-
Executes JavaScript code in the page, passing the matching element of the locator as the first argument to the `pageFunction` and arg as following argument(s). It returns the value of the `pageFunction` invocation.
8+
Executes JavaScript code in the page, passing the matching element of the locator as the first argument to the `pageFunction` and `arg` as the following arguments. It returns the value of the `pageFunction` invocation.
99

10-
<TableWithNestedRows>
1110

1211
| Parameter | Type | Defaults | Description |
1312
| ------------ | ------------------ | -------- | -------------------------------------------- |
1413
| pageFunction | function or string | | Function to be evaluated in the page context. |
1514
| arg | string | `''` | Optional argument to pass to `pageFunction`. |
1615

17-
</TableWithNestedRows>
1816

1917
### Returns
2018

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@ description: 'Browser module: locator.evaluateHandle(pageFunction[, arg]) method
55

66
# evaluateHandle(pageFunction[, arg])
77

8-
Executes JavaScript code in the page, passing the matching element of the locator as the first argument to the `pageFunction` and arg as following argument(s). It returns the value of the `pageFunction` invocation as a [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/).
8+
Executes JavaScript code in the page, passing the matching element of the locator as the first argument to the `pageFunction` and `arg` as the following arguments. It returns the value of the `pageFunction` invocation as a [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/).
99

10-
The only difference between [evaluate](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/evaluate/) and `evaluateHandle` is that `evaluateHandle` returns [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/).
10+
The only difference between [`evaluate`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/evaluate/) and `evaluateHandle` is that `evaluateHandle` returns [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/).
1111

12-
<TableWithNestedRows>
1312

1413
| Parameter | Type | Defaults | Description |
1514
| ------------ | ------------------ | -------- | -------------------------------------------- |
1615
| pageFunction | function or string | | Function to be evaluated in the page context. |
1716
| arg | string | `''` | Optional argument to pass to `pageFunction`. |
1817

19-
</TableWithNestedRows>
2018

2119
### Returns
2220

0 commit comments

Comments
 (0)