You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running await page.observe({ instruction: "find search element" }), it sometimes results in the following error.
trace: "TypeError: Cannot read properties of undefined (reading 'replace')
at trimTrailingTextNode (./node_modules/@browserbasehq/stagehand/dist/index.js:2330:16)
at StagehandObserveHandler.<anonymous> (./node_modules/@browserbasehq/stagehand/dist/index.js:3328:32)
at Generator.next (<anonymous>)
at ./node_modules/@browserbasehq/stagehand/dist/index.js:79:61
at new Promise (<anonymous>)
at __async (./node_modules/@browserbasehq/stagehand/dist/index.js:63:10)
at ./node_modules/@browserbasehq/stagehand/dist/index.js:3313:55
at Array.map (<anonymous>)
at StagehandObserveHandler.<anonymous> (./node_modules/@browserbasehq/stagehand/dist/index.js:3313:38)
at Generator.next (<anonymous>)"
I'm trying to replicate this behavior, but it seems to be inherently flaky.