Skip to content

Commit fba8dd3

Browse files
committed
Apply review feedback
1 parent d01c406 commit fba8dd3

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

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

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

66
# evaluate(pageFunction[, arg])
77

8-
Returns the value of the `pageFunction` invocation.
8+
Executes JavaScript code in the page and returns the value of the `pageFunction` invocation.
99

1010
<TableWithNestedRows>
1111

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

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

66
# evaluateHandle(pageFunction[, arg])
77

8-
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 and returns the value of the `pageFunction` invocation as a [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/).
99

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

@@ -22,4 +22,4 @@ The only difference between `page.evaluate()` and `page.evaluateHandle()` is tha
2222

2323
| Type | Description |
2424
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
25-
| `Promise<JSHandle>` | The [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/) ) instance associated with the frame. |
25+
| `Promise<JSHandle>` | The [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/) instance associated with the frame. |

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

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

66
# evaluate(pageFunction[, arg])
77

8-
Returns the value of the `pageFunction` invocation. It passes this handle as the first argument to the `pageFunction`.
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.
99

1010
<TableWithNestedRows>
1111

1212
| Parameter | Type | Defaults | Description |
1313
| ------------ | ------------------ | -------- | -------------------------------------------- |
14-
| pageFunction | function or string | | Function to be evaluated. |
14+
| pageFunction | function or string | | Function to be evaluated in the page context. |
1515
| arg | string | `''` | Optional argument to pass to `pageFunction`. |
1616

1717
</TableWithNestedRows>

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,15 +5,15 @@ description: 'Browser module: JSHandle.evaluateHandle(pageFunction[, arg]) metho
55

66
# evaluateHandle(pageFunction[, arg])
77

8-
Returns the value of the `pageFunction` invocation as a `JSHandle`. It passes this handle as the first argument to the `pageFunction`.
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`.
99

1010
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

1414
| Parameter | Type | Defaults | Description |
1515
| ------------ | ------------------ | -------- | -------------------------------------------- |
16-
| pageFunction | function or string | | Function to be evaluated. |
16+
| pageFunction | function or string | | Function to be evaluated in the page context. |
1717
| arg | string | `''` | Optional argument to pass to `pageFunction`. |
1818

1919
</TableWithNestedRows>

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

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

66
# evaluate(pageFunction[, arg])
77

8-
Returns the value of the `pageFunction` invocation. It passes the matching element of the locator as the first argument to the `pageFunction` and arg as a second argument.
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.
99

1010
<TableWithNestedRows>
1111

1212
| Parameter | Type | Defaults | Description |
1313
| ------------ | ------------------ | -------- | -------------------------------------------- |
14-
| pageFunction | function or string | | Function to be evaluated. |
14+
| pageFunction | function or string | | Function to be evaluated in the page context. |
1515
| arg | string | `''` | Optional argument to pass to `pageFunction`. |
1616

1717
</TableWithNestedRows>

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

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

66
# evaluateHandle(pageFunction[, arg])
77

8-
Returns the value of the `pageFunction` invocation as a `JSHandle`. It passes the matching element of the locator as the first argument to the `pageFunction` and arg as a second argument.
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/).
99

1010
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

1212
<TableWithNestedRows>
1313

1414
| Parameter | Type | Defaults | Description |
1515
| ------------ | ------------------ | -------- | -------------------------------------------- |
16-
| pageFunction | function or string | | Function to be evaluated. |
16+
| pageFunction | function or string | | Function to be evaluated in the page context. |
1717
| arg | string | `''` | Optional argument to pass to `pageFunction`. |
1818

1919
</TableWithNestedRows>
@@ -22,7 +22,7 @@ The only difference between [evaluate](https://grafana.com/docs/k6/<K6_VERSION>/
2222

2323
| Type | Description |
2424
| ----------------- | --------------------------------------------------- |
25-
| Promise<JSHandle> | A `JSHandle` of the return value of `pageFunction`. |
25+
| Promise<JSHandle> | A [JSHandle]((https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/)) of the return value of `pageFunction`. |
2626

2727
### Example
2828

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

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

66
# evaluate(pageFunction[, arg])
77

8-
Returns the value of the `pageFunction` invocation.
8+
Executes JavaScript code in the page and returns the value of the `pageFunction` invocation.
99

1010
<TableWithNestedRows>
1111

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

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

66
# evaluateHandle(pageFunction[, arg])
77

8-
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 and returns the value of the `pageFunction` invocation as a [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/).
99

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

0 commit comments

Comments
 (0)