support only selectable input element (#2250)

This commit is contained in:
Shuchang Zheng
2025-04-30 02:55:32 +08:00
committed by GitHub
parent 53f4c23ef9
commit b1fcfdd8bf

View File

@@ -301,6 +301,10 @@ class SkyvernElement:
return self.__static_element
def get_selectable(self) -> bool:
if self.get_tag_name() == InteractiveElement.INPUT:
input_type = self.get_attr("type", mode="static")
if input_type == "select-one" or input_type == "select-multiple":
return True
return self._selectable
def get_tag_name(self) -> str: