We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 015646b commit d8d3edaCopy full SHA for d8d3eda
stagehand/handlers/act_handler_utils.py
@@ -307,7 +307,7 @@ async def fill_or_type(ctx: MethodHandlerContext) -> None:
307
async def press_key(ctx: MethodHandlerContext) -> None:
308
try:
309
key = str(ctx.args[0]) if ctx.args and ctx.args[0] is not None else ""
310
- await ctx.locator.press(key)
+ await ctx.stagehand_page._page.keyboard.press(key)
311
await handle_possible_page_navigation(
312
"press",
313
ctx.xpath,
0 commit comments