We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8fe211 commit 9ee8096Copy full SHA for 9ee8096
1 file changed
examples/example.py
@@ -84,9 +84,7 @@ async def main():
84
# Get accessibility tree
85
tree = await get_accessibility_tree(stagehand.page, stagehand.logger)
86
console.print("[success]✓ Extracted accessibility tree[/]")
87
- with open("../tree.txt", "w") as f:
88
- f.write(tree.get("simplified"))
89
-
+
90
print("ID to URL mapping:", tree.get("idToUrl"))
91
print("IFrames:", tree.get("iframes"))
92
@@ -165,8 +163,6 @@ async def main():
165
163
166
164
# Get accessibility tree for the new page
167
tree = await get_accessibility_tree(new_page, stagehand.logger)
168
169
170
console.print("[success]✓ Extracted accessibility tree for new page[/]")
171
172
# Try clicking Get Started button on Google
0 commit comments