use single press instead of press sequentially (#3310)

This commit is contained in:
LawyZheng
2025-08-28 14:33:34 +08:00
committed by GitHub
parent 49670505e3
commit 149856a31d
2 changed files with 4 additions and 2 deletions

View File

@@ -572,7 +572,8 @@ class SkyvernElement:
await self.get_locator().press(key=key, timeout=timeout)
async def press_fill(self, text: str, timeout: float = settings.BROWSER_ACTION_TIMEOUT_MS) -> None:
await self.get_locator().press_sequentially(text, delay=TEXT_INPUT_DELAY, timeout=timeout)
for char in text:
await self.get_locator().press(char, delay=TEXT_INPUT_DELAY, timeout=timeout)
async def input(self, text: str, timeout: float = settings.BROWSER_ACTION_TIMEOUT_MS) -> None:
if self.get_tag_name().lower() not in COMMON_INPUT_TAGS: