Better feedback (exception message) when skyvern can't input text to an element (#445)

Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
Kerem Yilmaz
2024-06-07 11:28:19 -07:00
committed by GitHub
parent 0dcd99805f
commit 042e34d261
2 changed files with 41 additions and 4 deletions

View File

@@ -277,3 +277,8 @@ class StepUnableToExecuteError(SkyvernException):
class UnsupportedActionType(SkyvernException):
def __init__(self, action_type: str):
super().__init__(f"Unsupport action type: {action_type}")
class InvalidElementForTextInput(SkyvernException):
def __init__(self, element_id: str, tag_name: str):
super().__init__(f"The {tag_name} element with id={element_id} doesn't support text input.")