stagehand
stagehand copied to clipboard
fix completion verification + perform action on first xpath that can be found on the page
why
- Currently we try to find the element from the first xpath fetched. Sometimes we can't use that xpath for the element. Now we check against all xpaths.
- Before we'd scroll down and check for action completion on every step. But we only need to check when action was marked as completed by the LLM
what changed
Covered above
test plan
Evals
⚠️ No Changeset found
Latest commit: a8f937aae6f9834f12901ae8afe38d13db855a14
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR