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.
2 parents 84e8515 + a425ec5 commit 08ecda0Copy full SHA for 08ecda0
stagehand/src/server.ts
@@ -92,6 +92,7 @@ export async function ensureStagehand() {
92
93
// Try to perform a simple operation to check if the session is still valid
94
try {
95
+ await stagehand.init();
96
await stagehand.page.evaluate(() => document.title);
97
return stagehand;
98
} catch (error) {
0 commit comments