@browserbasehq/stagehand
Advanced tools
Comparing version 1.10.0 to 1.10.1-alpha-a2878d0acaf393b37763fb0c07b1a24043f7eb8d
@@ -92,5 +92,4 @@ import { LogLine } from "../../types/log"; | ||
const evalResult = await this.stagehand.page.evaluate(async () => { | ||
const result = await window.processAllOfDom(); | ||
return result; | ||
const evalResult = await this.stagehand.page.evaluate(() => { | ||
return window.processAllOfDom().then((result) => result); | ||
}); | ||
@@ -97,0 +96,0 @@ |
{ | ||
"name": "@browserbasehq/stagehand", | ||
"version": "1.10.0", | ||
"version": "1.10.1-alpha-a2878d0acaf393b37763fb0c07b1a24043f7eb8d", | ||
"description": "An AI web browsing framework focused on simplicity and extensibility.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -52,5 +52,8 @@ <div id="toc" align="center"> | ||
// Stagehand AI: Act on the page | ||
await page.act("click on the 'Quickstart'"); | ||
// Stagehand AI: Extract data from the page | ||
const { description } = await page.extract({ | ||
instruction: "Extract the description of the page", | ||
instruction: "extract the description of the page", | ||
schema: z.object({ | ||
@@ -60,5 +63,2 @@ description: z.string(), | ||
}); | ||
// Stagehand AI: Act on the page | ||
await page.act({ action: "click on the 'Quickstart'" }); | ||
``` | ||
@@ -65,0 +65,0 @@ |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
600720
15744
1