browserbase / stagehand

An AI web browsing framework focused on simplicity and extensibility.
https://www.browserbase.com
MIT License
1.18k stars 46 forks source link

fix gray outline missing + action completion attr creation #179

Closed navidkpr closed 1 week ago

navidkpr commented 1 week ago

Fixes:

  1. The last big change we pushed out, introduced a small regression. As a result, the gray outline showing the elements Stagehand is looking out is missing. This commit fixes that. We now process selectorMap properly now (using the updated type Record<number, string[]

  2. Improved the action prompt:

    • Improved the structure
    • Made it more straightforward
    • Improved working for completed arg and prioritized precision over recall