chore: добавил команду подождать

This commit is contained in:
protokey committed 2026-09-10 23:59:08 +04:00
1 parent 6e76d08de3
commit 733536e83e
2 files changed
+47

No files matched your search

+8
View File
@@ -1,3 +1,5 @@
import asyncio
from playwright.async_api import Page
from engine.schemas import ActionRequest
@@ -17,6 +19,12 @@ async def fill(page: Page, act: ActionRequest) -> str | None:
await page.fill(act.selector, act.value)
@register
async def delay(page: Page, act: ActionRequest) -> str | None:
assert act.value
await asyncio.sleep(int(act.value))
@register
async def mouse_move(page: Page, act: ActionRequest) -> str | None:
assert act.selector