add skyvern element (#466)

This commit is contained in:
LawyZheng
2024-06-13 15:34:21 +08:00
committed by GitHub
parent 8f6ec52158
commit 81619dd850
2 changed files with 129 additions and 0 deletions

View File

@@ -282,3 +282,18 @@ class UnsupportedActionType(SkyvernException):
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.")
class ElementIsNotLabel(SkyvernException):
def __init__(self, tag_name: str):
super().__init__(f"<{tag_name}> element is not <label>")
class MissingElementDict(SkyvernException):
def __init__(self, element_id: str) -> None:
super().__init__(f"Found no element in the dict. element_id={element_id}")
class MissingElementInIframe(SkyvernException):
def __init__(self, element_id: str) -> None:
super().__init__(f"Found no iframe includes the element. element_id={element_id}")