extend auto completion coverage (#2184)
This commit is contained in:
@@ -148,12 +148,16 @@ class SkyvernElement:
|
|||||||
if tag_name != InteractiveElement.INPUT:
|
if tag_name != InteractiveElement.INPUT:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
autocomplete = await self.get_attr("aria-autocomplete")
|
data_bind: str | None = await self.get_attr("data-x-bind")
|
||||||
if autocomplete and autocomplete == "list":
|
if data_bind and "autocomplete" in data_bind.lower():
|
||||||
|
return True
|
||||||
|
|
||||||
|
autocomplete: str | None = await self.get_attr("aria-autocomplete")
|
||||||
|
if autocomplete and autocomplete.lower() == "list":
|
||||||
return True
|
return True
|
||||||
|
|
||||||
class_name: str | None = await self.get_attr("class")
|
class_name: str | None = await self.get_attr("class")
|
||||||
if class_name and "autocomplete-input" in class_name:
|
if class_name and "autocomplete-input" in class_name.lower():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user