Skip to content

Commit

Permalink
docs: alert box
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Feb 14, 2024
1 parent b8d352c commit ccfe687
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jsdoc/tutorials/04-Interact-with-the-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,10 @@ Using the [set commands](Set.html) you can set values to HTML elements.

## Select
You can use the [select command](Select.html) for selecting an option in a drop-down field.

## Alert boxes
If you need to click on an alert box, the best way is to use Selenium directly. Here's an example on how to accept an alert box.

```javascript
await context.selenium.driver.switchTo().alert().accept();
```

0 comments on commit ccfe687

Please sign in to comment.