File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,7 @@ async def main():
84
84
# Get accessibility tree
85
85
tree = await get_accessibility_tree (stagehand .page , stagehand .logger )
86
86
console .print ("[success]✓ Extracted accessibility tree[/]" )
87
- with open ("../tree.txt" , "w" ) as f :
88
- f .write (tree .get ("simplified" ))
89
-
87
+
90
88
print ("ID to URL mapping:" , tree .get ("idToUrl" ))
91
89
print ("IFrames:" , tree .get ("iframes" ))
92
90
@@ -165,8 +163,6 @@ async def main():
165
163
166
164
# Get accessibility tree for the new page
167
165
tree = await get_accessibility_tree (new_page , stagehand .logger )
168
- with open ("../tree.txt" , "w" ) as f :
169
- f .write (tree .get ("simplified" ))
170
166
console .print ("[success]✓ Extracted accessibility tree for new page[/]" )
171
167
172
168
# Try clicking Get Started button on Google
You can’t perform that action at this time.
0 commit comments