File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,6 @@ export async function generateXPathsForElement(
111
111
] ) ;
112
112
113
113
// This should return in order from most accurate on current page to most cachable.
114
- // Do not change the order if you are not sure what you are doing.
115
- // Contact Navid if you need help understanding it.
116
114
return [ standardXPath , ...( idBasedXPath ? [ idBasedXPath ] : [ ] ) , complexXPath ] ;
117
115
}
118
116
Original file line number Diff line number Diff line change @@ -688,26 +688,7 @@ export class Stagehand {
688
688
( log ) => log . id !== logObj . id ,
689
689
) ;
690
690
} )
691
- . catch ( ( ) => {
692
- // NAVIDTODO: Rerun the log call on the new page
693
- // This is expected to happen when the user is changing pages
694
- // console.error("Logging Error:", e);
695
- // this.log({
696
- // category: "browserbase",
697
- // message: "error logging to browserbase",
698
- // level: 1,
699
- // auxiliary: {
700
- // trace: {
701
- // value: e.stack,
702
- // type: "string",
703
- // },
704
- // message: {
705
- // value: e.message,
706
- // type: "string",
707
- // },
708
- // },
709
- // });
710
- } ) ;
691
+ . catch ( ( ) => { } ) ;
711
692
}
712
693
}
713
694
You can’t perform that action at this time.
0 commit comments