Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
use single press instead of press sequentially (#3310)
LawyZheng149856a31d7f
diff --git a/skyvern/webeye/actions/handler_utils.py b/skyvern/webeye/actions/handler_utils.pyindex 7d2501b78..e7bb569f1 100644--- a/skyvern/webeye/actions/handler_utils.py+++ b/skyvern/webeye/actions/handler_utils.py@@ -31,7 +31,8 @@ async def input_sequentially(locator: Locator, text: str, timeout: float = settiawait locator.fill(text[: length - TEXT_PRESS_MAX_LENGTH], timeout=timeout)text = text[length - TEXT_PRESS_MAX_LENGTH :]- await locator.press_sequentially(text, delay=TEXT_INPUT_DELAY, timeout=timeout)+ for char in text:+ await locator.press(char, delay=TEXT_INPUT_DELAY, timeout=timeout)async def keypress(page: Page, keys: list[str], hold: bool = False, duration: float = 0) -> None:diff --git a/skyvern/webeye/utils/dom.py b/skyvern/webeye/utils/dom.pyindex a34fbfb0a..a1c1cc7f5 100644--- a/skyvern/webeye/utils/dom.py+++ b/skyvern/webeye/utils/dom.py@@ -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: