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 ab5e2c5 commit f199c52Copy full SHA for f199c52
lib/index.ts
@@ -865,6 +865,29 @@ export class Stagehand {
865
level: 1,
866
});
867
868
+ if (retries < 2) {
869
+ return this._act({
870
+ action,
871
+ steps,
872
+ modelName,
873
+ useVision,
874
+ verifierUseVision,
875
+ retries: retries + 1,
876
+ chunksSeen,
877
+ });
878
+ }
879
880
+ } else if (method === "press") {
881
+ try {
882
+ const key = args[0];
883
+ await this.page.keyboard.press(key);
884
+ } catch (e) {
885
+ this.log({
886
+ category: "action",
887
+ message: `Error pressing key (Retries ${retries}): ${e.message}\nTrace: ${e.stack}`,
888
+ level: 1,
889
890
+
891
if (retries < 2) {
892
return this._act({
893
action,
0 commit comments