Skip to content

Fix error in press_key act util function#155

Merged
miguelg719 merged 2 commits intobrowserbase:contrib/155from
Zach10za:fix-act-press-key
Jul 22, 2025
Merged

Fix error in press_key act util function#155
miguelg719 merged 2 commits intobrowserbase:contrib/155from
Zach10za:fix-act-press-key

Conversation

@Zach10za
Copy link
Copy Markdown
Contributor

Purpose

Resolves this issue:
#154

Approach

Use the proper Locator.press method to in the press_key util function.

Tests

The existing test_keyboard_actions_local touches this and now works without any errors.

Other

I fixed the log lower down that would throw the same exception.

@miguelg719 miguelg719 changed the base branch from main to contrib/155 July 22, 2025 16:40
@miguelg719 miguelg719 merged commit d61968b into browserbase:contrib/155 Jul 22, 2025
2 checks passed
miguelg719 added a commit that referenced this pull request Jul 22, 2025
* Fix error in press_key act util function (#155)

* Fix error in press_key act util function

* Use stagehand page keyboard instead of locator

* changeset

---------

Co-authored-by: Zach Loza <Zach10za@users.noreply.github.com>
@github-actions github-actions bot mentioned this pull request Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants