Skip to content

Commit

Permalink
make the press_sequentially timeout 3x of the estimation time (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored May 24, 2024
1 parent b976f13 commit 5d1dac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/webeye/actions/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ async def handle_input_text_action(
await locator.clear()
text = get_actual_value_of_parameter_if_secret(task, action.text)
# 1.5 times the time it takes to type the text so it has time to finish typing
total_timeout = max(len(text) * TEXT_INPUT_DELAY * 1.5, SettingsManager.get_settings().BROWSER_ACTION_TIMEOUT_MS)
total_timeout = max(len(text) * TEXT_INPUT_DELAY * 3, SettingsManager.get_settings().BROWSER_ACTION_TIMEOUT_MS)
await locator.press_sequentially(text, delay=TEXT_INPUT_DELAY, timeout=total_timeout)
return [ActionSuccess()]

Expand Down

0 comments on commit 5d1dac0

Please sign in to comment.