refactor chain click (#1186)

This commit is contained in:
LawyZheng
2024-11-14 02:33:44 +08:00
committed by GitHub
parent 82ea39f7c4
commit d107c3d4db
5 changed files with 280 additions and 68 deletions

View File

@@ -357,8 +357,8 @@ class InputActionOnSelect2Dropdown(SkyvernException):
class FailToClick(SkyvernException):
def __init__(self, element_id: str, anchor: str = "self"):
super().__init__(f"Failed to click({anchor}). element_id={element_id}")
def __init__(self, element_id: str, msg: str, anchor: str = "self"):
super().__init__(f"Failed to click({anchor}). element_id={element_id}, error_msg={msg}")
class FailToSelectByLabel(SkyvernException):