Skip to content

Commit

Permalink
patch for type builds
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelg719 committed Jan 21, 2025
1 parent e64522b commit 25591bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/handlers/observeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ export class StagehandObserveHandler {
await this.stagehandPage.startDomDebug();
await this.stagehandPage.enableCDP("DOM");

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);
});

// For each element in the selector map, get its backendNodeId
Expand Down

0 comments on commit 25591bb

Please sign in to comment.