Skip to content

Commit 3782054

Browse files
authored
added actOptions to the input of observe->act (#535)
* added actOptions to the input of observe->act * changeset * removed newtab * moved prompts to the right place
1 parent f0c162a commit 3782054

File tree

6 files changed

+106
-1618
lines changed

6 files changed

+106
-1618
lines changed

Diff for: .changeset/curly-tomatoes-laugh.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
Adding backwards compatibility to new act->observe pipeline by accepting actOptions

Diff for: evals/tasks/peeler_complex.ts

+2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export const peeler_complex: EvalFunction = async ({
1616

1717
try {
1818
await stagehand.page.goto(`https://chefstoys.com/`, { timeout: 60000 });
19+
await stagehand.page.waitForLoadState("networkidle");
1920

21+
await stagehand.page.act("find the button to close the popup");
2022
await stagehand.page.act({
2123
action: "search for %search_query%",
2224
variables: {

0 commit comments

Comments
 (0)