Skip to content

Commit

Permalink
docs: document how to debug functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucgagan committed Nov 14, 2023
1 parent 75cc7c2 commit 56b8369
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ At minimum, the `auto` function requires a _plain text prompt_ and an _argument_
auto("<your prompt>", { page, test });
```
### Debug
You may pass a `debug` attribute as the third parameter to the `auto` function. This will print the prompt and the commands executed by OpenAI.
```ts
await auto("get the header text", { page, test }, { debug: true });
```
## Supported Browsers
Every browser that Playwright supports.
Expand Down

0 comments on commit 56b8369

Please sign in to comment.