Skip to content

Commit 39292bb

Browse files
committed
Fix the $ and $$ pages for frame and page
They needed to be realigned and made consistent so that: 1. They both didn't have the class name in the index pages; 2. the $ and $$ pages for the page class needed to be renamed from page.$ to just $ and page.$$ to $$.
1 parent ccc126d commit 39292bb

File tree

37 files changed

+77
-89
lines changed

37 files changed

+77
-89
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Frame represents a single frame in a browser window. It can be a top-level frame
1010

1111
| Method | Description |
1212
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
13-
| [frame$(selector)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/frame-dollar) | Finds an element matching the specified `selector` within the frame. |
14-
| [frame$$(selector)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/frame-doubledollar) | Finds all elements matching the specified `selector` within the frame. |
13+
| [$(selector)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/frame-dollar) | Finds an element matching the specified `selector` within the frame. |
14+
| [$$(selector)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/frame-doubledollar) | Finds all elements matching the specified `selector` within the frame. |
1515
| [check(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/check/) | Select the input checkbox. |
1616
| [childFrames()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/childframes) | Returns an array of child frames. |
1717
| [click(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/click/) | Clicks on an element matching a `selector`. |
@@ -55,4 +55,4 @@ Frame represents a single frame in a browser window. It can be a top-level frame
5555
| [waitForLoadState(state[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/waitforloadstate/) {{< docs/bwipt id="880" >}} | Waits for the given load `state` to be reached. |
5656
| [waitForNavigation([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/waitfornavigation/) | Waits for the given navigation lifecycle event to occur and returns the main resource response. |
5757
| [waitForSelector(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/waitforselector/) | Returns when element specified by selector satisfies `state` option. |
58-
| [waitForTimeout(timeout)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/waitfortimeout) | Waits for the given `timeout` in milliseconds. |
58+
| [waitForTimeout(timeout)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/waitfortimeout) | Waits for the given `timeout` in milliseconds. |

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'page.$(selector)'
2+
title: '$(selector)'
33
slug: 'page-dollar'
44
description: 'Browser module: page.$(selector) method'
55
---
@@ -16,9 +16,9 @@ The method finds an element matching the specified selector within the page. If
1616

1717
### Returns
1818

19-
| Type | Description |
20-
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21-
| `Promise<ElementHandle \| null>` | A Promise that fulfills with the [ElementHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/) of the selector when a matching element is found or `null`. |
19+
| Type | Description |
20+
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21+
| `Promise<ElementHandle \| null>` | A Promise that fulfills with the [ElementHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/) of the selector when a matching element is found or `null`. |
2222

2323
### Example
2424

@@ -44,9 +44,7 @@ export default async function () {
4444
const page = await browser.newPage();
4545

4646
await page.goto('https://test.k6.io/browser.php');
47-
const text = await page
48-
.$('#text1')
49-
.then(text => text.type('hello world'));
47+
const text = await page.$('#text1').then((text) => text.type('hello world'));
5048
}
5149
```
5250

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
@@ -1,5 +1,5 @@
11
---
2-
title: 'page.$$(selector)'
2+
title: '$$(selector)'
33
slug: 'page-doubledollar'
44
description: 'Browser module: page.$$(selector) method'
55
---

docs/sources/k6/v0.47.x/javascript-api/k6-experimental/browser/page/dollar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'page.$(selector)'
2+
title: '$(selector)'
33
slug: 'page-dollar'
44
description: 'Browser module: page.$(selector) method'
55
---

docs/sources/k6/v0.47.x/javascript-api/k6-experimental/browser/page/doubledollar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'page.$$(selector)'
2+
title: '$$(selector)'
33
slug: 'page-doubledollar'
44
description: 'Browser module: page.$$(selector) method'
55
---

docs/sources/k6/v0.48.x/javascript-api/k6-experimental/browser/page/dollar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'page.$(selector)'
2+
title: '$(selector)'
33
slug: 'page-dollar'
44
description: 'Browser module: page.$(selector) method'
55
---

docs/sources/k6/v0.48.x/javascript-api/k6-experimental/browser/page/doubledollar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'page.$$(selector)'
2+
title: '$$(selector)'
33
slug: 'page-doubledollar'
44
description: 'Browser module: page.$$(selector) method'
55
---

docs/sources/k6/v0.49.x/javascript-api/k6-experimental/browser/page/dollar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'page.$(selector)'
2+
title: '$(selector)'
33
slug: 'page-dollar'
44
description: 'Browser module: page.$(selector) method'
55
---

docs/sources/k6/v0.49.x/javascript-api/k6-experimental/browser/page/doubledollar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'page.$$(selector)'
2+
title: '$$(selector)'
33
slug: 'page-doubledollar'
44
description: 'Browser module: page.$$(selector) method'
55
---

docs/sources/k6/v0.50.x/javascript-api/k6-experimental/browser/page/dollar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'page.$(selector)'
2+
title: '$(selector)'
33
slug: 'page-dollar'
44
description: 'Browser module: page.$(selector) method'
55
---

0 commit comments

Comments
 (0)