From aedb26b06b5c7a923f532de290809a0ce5633bd7 Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Wed, 5 Jun 2024 19:27:48 -0700 Subject: [PATCH] update text input logic to make things faster (#425) --- skyvern/webeye/actions/handler.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index bd55d74e..aadca52f 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -245,10 +245,7 @@ async def handle_input_text_action( text = get_actual_value_of_parameter_if_secret(task, action.text) # 3 times the time it takes to type the text so it has time to finish typing total_timeout = max(len(text) * TEXT_INPUT_DELAY * 3, SettingsManager.get_settings().BROWSER_ACTION_TIMEOUT_MS) - delay = TEXT_INPUT_DELAY - if total_timeout > 15000: - delay = 0 - await locator.press_sequentially(text, delay=delay, timeout=total_timeout) + await locator.press_sequentially(text, timeout=total_timeout) return [ActionSuccess()]