Skip to content

[Feature Parity] [WIP] add native selectOptionFromDropdown #135

Open
@stagehand-parity-bot

Description

@stagehand-parity-bot

Feature Parity Request

This issue was automatically created from a pull request in the TypeScript Stagehand repository that was labeled with 'parity'.

Original PR Details

Description

why

  • improved dropdown handling for OS level dropdowns

what changed

  • added native selectOptionFromDropdown function in actHandlerUtils.ts
  • updated prompting such that the LLM only chooses selectOptionFromDropdown in specific cases (when the dropdown is OS level)

test plan

  • act evals

fast follow PRs

  • add documentation explaining the various types of dropdowns, and how to prompt stagehand to handle each of them.

to do

  • better prompting
  • add a timeout for locator
  • add multiple evals

Changed Files

  • .changeset/swift-jokes-write.md
  • evals/evals.config.json
  • evals/tasks/custom_dropdown.ts
  • evals/tasks/hidden_input_dropdown.ts
  • evals/tasks/os_dropdown.ts
  • lib/a11y/utils.ts
  • lib/handlers/handlerUtils/actHandlerUtils.ts
  • lib/prompt.ts
  • types/act.ts

Recent Comments

@changeset-bot[bot] commented:

⚠️ No Changeset found

Latest commit: ea6c04430e95a32fa591d47041615d1be4e7c814

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.

Click here to learn what changesets are, and how to add one.

[Click here if you're a maintainer who wants to a...

Action Required

Please review the changes in the original PR and implement equivalent functionality in the Python SDK if applicable.


This issue was automatically generated by the Feature Parity workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions