Skip to content

Commit c630373

Browse files
changeset (#656)
1 parent 944bbbf commit c630373

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: .changeset/strong-hornets-crash.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
parse out % signs from variables in act

Diff for: lib/handlers/actHandler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export class StagehandActHandler {
245245
if (actionOrOptions.variables) {
246246
Object.keys(actionOrOptions.variables).forEach((key) => {
247247
element.arguments = element.arguments.map((arg) =>
248-
arg.replace(key, actionOrOptions.variables![key]),
248+
arg.replace(`%${key}%`, actionOrOptions.variables![key]),
249249
);
250250
});
251251
}

0 commit comments

Comments
 (0)