Skip to content

Commit e64522b

Browse files
authored
Update README to reflect new syntax (#420)
1 parent 3d107ba commit e64522b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ Here's a sample of what you can do with Stagehand:
4949
// Keep your existing Playwright code unchanged
5050
await page.goto("https://docs.stagehand.dev");
5151

52+
// Stagehand AI: Act on the page
53+
await page.act("click on the 'Quickstart'");
54+
5255
// Stagehand AI: Extract data from the page
5356
const { description } = await page.extract({
54-
instruction: "Extract the description of the page",
57+
instruction: "extract the description of the page",
5558
schema: z.object({
5659
description: z.string(),
5760
}),
5861
});
59-
60-
// Stagehand AI: Act on the page
61-
await page.act({ action: "click on the 'Quickstart'" });
6262
```
6363

6464
## Why?

0 commit comments

Comments
 (0)