Skip to content

Commit c24f3c9

Browse files
return act result in actFromObserve (#573)
1 parent 8ab4f1b commit c24f3c9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: .changeset/twenty-cooks-perform.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
return act result in actFromObserve

Diff for: lib/handlers/actHandler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class StagehandActHandler {
174174
? `${method} ${observe.description}`
175175
: observe.description;
176176
// Call act with the ObserveResult description
177-
await this.stagehandPage.act({
177+
return await this.stagehandPage.act({
178178
action: actCommand,
179179
slowDomBasedAct: true,
180180
});

0 commit comments

Comments
 (0)