mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:10:58 +00:00
fix: finish browser click timeout recovery (#63524)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user