We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d107ba commit e64522bCopy full SHA for e64522b
README.md
@@ -49,16 +49,16 @@ Here's a sample of what you can do with Stagehand:
49
// Keep your existing Playwright code unchanged
50
await page.goto("https://docs.stagehand.dev");
51
52
+// Stagehand AI: Act on the page
53
+await page.act("click on the 'Quickstart'");
54
+
55
// Stagehand AI: Extract data from the page
56
const { description } = await page.extract({
- instruction: "Extract the description of the page",
57
+ instruction: "extract the description of the page",
58
schema: z.object({
59
description: z.string(),
60
}),
61
});
-
-// Stagehand AI: Act on the page
-await page.act({ action: "click on the 'Quickstart'" });
62
```
63
64
## Why?
0 commit comments