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 e64522b commit a2878d0Copy full SHA for a2878d0
.changeset/poor-numbers-bake.md
@@ -0,0 +1,5 @@
1
+---
2
+"@browserbasehq/stagehand": patch
3
4
+
5
+Fixing a build type error for async functions being called inside evaulate for observeHandler.
lib/handlers/observeHandler.ts
@@ -89,9 +89,8 @@ export class StagehandObserveHandler {
89
await this.stagehandPage.startDomDebug();
90
await this.stagehandPage.enableCDP("DOM");
91
92
- const evalResult = await this.stagehand.page.evaluate(async () => {
93
- const result = await window.processAllOfDom();
94
- return result;
+ const evalResult = await this.stagehand.page.evaluate(() => {
+ return window.processAllOfDom().then((result) => result);
95
});
96
97
// For each element in the selector map, get its backendNodeId
0 commit comments