Feat : import session into auto firefox
All checks were successful
release / build (push) Successful in 27s
release / verify-windows (push) Successful in 1m15s

This commit is contained in:
jeanotx32
2026-08-12 03:45:35 +02:00
parent ae8ae6b91d
commit 8fef1aacb0
7 changed files with 258 additions and 1 deletions

View File

@@ -335,6 +335,15 @@ async function runAction(action: AgentAction, params: Record<string, unknown>):
return openPage(requireUrl(params));
case 'browser.close':
return driver()?.quit() ?? closeWindow(watcher.snapshotSettings.fullscreen.windowMatch, report);
case 'browser.importSession': {
const bidi = driver();
if (!bidi) {
throw new Error(
"L'import de session exige le mode de pilotage « WebDriver BiDi » sur cet agent",
);
}
return bidi.importSession();
}
case 'capture.start':
return startCapture(params);
case 'capture.stop':