custom select optimize (#985)

This commit is contained in:
LawyZheng
2024-10-16 19:23:12 +08:00
committed by GitHub
parent e45c9e1288
commit ba6ef89b35
2 changed files with 22 additions and 1 deletions

View File

@@ -148,6 +148,9 @@ class SkyvernElement:
return False
async def is_custom_option(self) -> bool:
return self.get_tag_name() == "li" or await self.get_attr("role") == "option"
async def is_checkbox(self) -> bool:
tag_name = self.get_tag_name()
if tag_name != "input":