Skip to content

Handle pressing Enter #639

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

Open
kamath opened this issue Apr 5, 2025 · 2 comments
Open

Handle pressing Enter #639

kamath opened this issue Apr 5, 2025 · 2 comments
Labels
good first issue Good for newcomers

Comments

@kamath
Copy link
Member

kamath commented Apr 5, 2025

Right now, if you do a Stagehand script as:

const page = stagehand.page
await page.goto("https://google.com");
await page.act("type in 'Browserbase'");
await page.act("press enter");

GPT 4o and even 4o-mini can get this right very often, but almost every other model fails to press enter correctly. Would be great if someone could try fixing the observe and performPlaywrightMethod logic for some simple fixes that can handle pressing enter. Maybe we tell the LLM it has a new tool called press_key_on_window that can do a keypress on the window, even for stuff like wordle.

@kamath kamath added the good first issue Good for newcomers label Apr 5, 2025
@RohanMishra315
Copy link

Hey @kamath should I look into it ?

@kamath
Copy link
Member Author

kamath commented Apr 5, 2025

@RohanMishra315 yes please if you're open to it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants