refactor custom-select/auto-complete context (#830)

This commit is contained in:
LawyZheng
2024-09-14 17:28:08 +08:00
committed by GitHub
parent 6571604fa5
commit 8c2a733ba2
6 changed files with 86 additions and 53 deletions

View File

@@ -452,11 +452,9 @@ class NoIncrementalElementFoundForCustomSelection(SkyvernException):
)
class NoLabelOrValueForCustomSelection(SkyvernException):
def __init__(self, element_id: str) -> None:
super().__init__(
f"This is a custom selection, there must be invalid text for option.label or option.value. element_id={element_id}"
)
class NoAvailableOptionFoundForCustomSelection(SkyvernException):
def __init__(self, reason: str | None) -> None:
super().__init__(f"No available option to select. reason: {reason}.")
class NoElementMatchedForTargetOption(SkyvernException):