social-agent-cli 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/runner.ts +4 -5
- package/package.json +1 -1
package/ai/runner.ts
CHANGED
|
@@ -350,16 +350,15 @@ async function executeMapStep(
|
|
|
350
350
|
if (selectors.length > 0) {
|
|
351
351
|
for (const sel of selectors) {
|
|
352
352
|
try {
|
|
353
|
-
// Event listener'ı ÖNCE kur
|
|
354
353
|
const fileChooserPromise = page.waitForEvent("filechooser", { timeout: 5000 });
|
|
355
|
-
|
|
356
|
-
await page.click(sel);
|
|
357
|
-
// fileChooser'ı yakala ve dosyayı set et
|
|
354
|
+
await page.click(sel).catch(() => {});
|
|
358
355
|
const fileChooser = await fileChooserPromise;
|
|
359
356
|
await fileChooser.setFiles(filePath);
|
|
360
357
|
uploaded = true;
|
|
361
358
|
break;
|
|
362
|
-
} catch {
|
|
359
|
+
} catch {
|
|
360
|
+
// fileChooser timeout veya click hatası - sonraki selector'ı dene
|
|
361
|
+
}
|
|
363
362
|
}
|
|
364
363
|
}
|
|
365
364
|
|