Skip to content

Commit 49951d4

Browse files
committed
valuenow
1 parent c8b4f21 commit 49951d4

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

stagehand/utils.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,6 @@ def convert_dict_keys_to_snake_case(data: Any) -> Any:
9595
return data
9696

9797

98-
INCLUDED_NODE_PROPERTY_NAMES = {
99-
"selected",
100-
"checked",
101-
"value",
102-
"valuemin",
103-
"valuemax",
104-
"valuetext",
105-
}
106-
"""
107-
AX Property names included in the simplified tree.
108-
"""
109-
110-
11198
def _format_ax_value(value_type: str, value: AXValue) -> Union[str, None]:
11299
"""
113100
Formats the accessibility value, or returns None if the value is unsupported.
@@ -128,6 +115,20 @@ def _format_ax_value(value_type: str, value: AXValue) -> Union[str, None]:
128115
return None
129116

130117

118+
INCLUDED_NODE_PROPERTY_NAMES = {
119+
"selected",
120+
"checked",
121+
"value",
122+
"valuemin",
123+
"valuemax",
124+
"valuetext",
125+
"valuenow",
126+
}
127+
"""
128+
AX Property names included in the simplified tree.
129+
"""
130+
131+
131132
def _format_property(property: AXProperty) -> Union[str, None]:
132133
name = property.get("name")
133134
if name is None or (value_obj := property.get("value")) is None:

0 commit comments

Comments
 (0)