Skip to content

Commit

Permalink
Update browser tap to async
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Apr 24, 2024
1 parent fb7b1d1 commit 28700af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Tap on the chosen element.

</TableWithNestedRows>

### Returns

| Type | Description |
| ------------- | -------------------------------------------------------- |
| `Promise<void>` | A Promise that fulfills when the tap action is finished. |

### Example

{{< code >}}
Expand All @@ -44,7 +50,7 @@ export default async function () {

await page.goto('https://test.k6.io/browser.php');
const options = page.locator('#numbers-options');
options.tap();
await options.tap();
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ Tap the first element that matches the selector.

</TableWithNestedRows>

### Returns

| Type | Description |
| ------------- | -------------------------------------------------------- |
| `Promise<void>` | A Promise that fulfills when the tap action is finished. |

### Example

{{< code >}}
Expand All @@ -55,7 +61,7 @@ export default async function () {
const page = browser.newPage();

await page.goto('https://test.k6.io/browser.php');
page.tap('#numbers-options');
await page.tap('#numbers-options');
}
```

Expand Down

0 comments on commit 28700af

Please sign in to comment.