fix: hopefully shell now parity with old

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-26 07:23:48 +02:00
parent 3556ab45b3
commit fd1b8e7bd4
10 changed files with 1079 additions and 33 deletions

View File

@@ -72,6 +72,15 @@ for await (const line of rl) {
continue;
}
if (message.command === "native_menu_action") {
await page.evaluate((action) => {
window.dispatchEvent(new CustomEvent("bds:native-menu-action", { detail: { action } }));
}, message.action);
await page.waitForTimeout(50);
console.log(JSON.stringify({ ref, status: "ok", result: "ok" }));
continue;
}
if (message.command === "drag") {
const locator = page.locator(message.selector);
const box = await locator.boundingBox();