rm: 移除操作完毕后模拟移开鼠标的步骤

This commit is contained in:
foxhui
2026-01-19 03:44:06 +08:00
Unverified
parent 85be113b40
commit 33345db391
22 changed files with 35 additions and 117 deletions
+2 -2
View File
@@ -637,8 +637,8 @@ export async function uploadFilesViaChooser(page, triggerTarget, filePaths, opti
page.on('response', onResponse);
});
// 设置等待 filechooser 事件(在点击之前)
const fileChooserPromise = page.waitForEvent('filechooser');
// 设置等待 filechooser 事件(在点击之前,带超时保护
const fileChooserPromise = page.waitForEvent('filechooser', { timeout: 30000 });
// 点击触发按钮(支持单击或双击)
const clickCount = clickAction === 'dblclick' ? 2 : 1;