-
Notifications
You must be signed in to change notification settings - Fork 626
expose a11y #566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
expose a11y #566
Conversation
|
@@ -17,6 +17,9 @@ async function example() { | |||
/** | |||
* Add your code here! | |||
*/ | |||
// delete before pushing to main | |||
const tree = await stagehand.page.getAccessibilityTree(); | |||
console.log(tree); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally what we log/write to a file is tree.simplified (the txt version passed into the llm)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i kinda like both? allows the user to play with it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, the whole tree is kinda overkill but with this structure both are returned
why
what changed
test plan