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():
8484 # Get accessibility tree
8585 tree = await get_accessibility_tree (stagehand .page , stagehand .logger )
8686 console .print ("[success]✓ Extracted accessibility tree[/]" )
87- with open ("../tree.txt" , "w" ) as f :
88- f .write (tree .get ("simplified" ))
89-
87+
9088 print ("ID to URL mapping:" , tree .get ("idToUrl" ))
9189 print ("IFrames:" , tree .get ("iframes" ))
9290
@@ -165,8 +163,6 @@ async def main():
165163
166164 # Get accessibility tree for the new page
167165 tree = await get_accessibility_tree (new_page , stagehand .logger )
168- with open ("../tree.txt" , "w" ) as f :
169- f .write (tree .get ("simplified" ))
170166 console .print ("[success]✓ Extracted accessibility tree for new page[/]" )
171167
172168 # Try clicking Get Started button on Google
You can’t perform that action at this time.
0 commit comments