fix auto complete detect (#765)

This commit is contained in:
LawyZheng
2024-09-03 02:21:07 +08:00
committed by GitHub
parent 7059a9b468
commit 3c3e1ab949

View File

@@ -163,9 +163,8 @@ class SkyvernElement:
if tag_name != InteractiveElement.INPUT:
return False
haspopup = await self.get_attr("aria-haspopup")
autocomplete = await self.get_attr("aria-autocomplete")
if haspopup and autocomplete:
if autocomplete and autocomplete == "list":
return True
element_id = await self.get_attr("id")