fix: finish browser click timeout recovery (#63524)

This commit is contained in:
Peter Steinberger
2026-04-22 03:05:40 +01:00
parent cd82b94333
commit e92079be6b
2 changed files with 4 additions and 3 deletions

View File

@@ -554,11 +554,11 @@ export async function clickViaPlaywright(opts: {
ACT_MAX_CLICK_DELAY_MS,
);
if (delayMs > 0) {
await awaitEvalWithAbort(locator.hover({ timeout }), abortPromise);
await awaitActionWithAbort(locator.hover({ timeout }), abortPromise);
await new Promise((resolve) => setTimeout(resolve, delayMs));
}
if (opts.doubleClick) {
await awaitEvalWithAbort(
await awaitActionWithAbort(
locator.dblclick({
timeout,
button: opts.button,
@@ -568,7 +568,7 @@ export async function clickViaPlaywright(opts: {
);
return;
}
await awaitEvalWithAbort(
await awaitActionWithAbort(
locator.click({
timeout,
button: opts.button,