mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
rm: 移除操作完毕后模拟移开鼠标的步骤
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user