File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ async def fill_or_type(ctx: MethodHandlerContext) -> None:
307
307
async def press_key (ctx : MethodHandlerContext ) -> None :
308
308
try :
309
309
key = str (ctx .args [0 ]) if ctx .args and ctx .args [0 ] is not None else ""
310
- await ctx .locator ._page . keyboard . press (key )
310
+ await ctx .locator .press (key )
311
311
await handle_possible_page_navigation (
312
312
"press" ,
313
313
ctx .xpath ,
@@ -398,7 +398,7 @@ async def fallback_locator_method(ctx: MethodHandlerContext) -> None:
398
398
ctx .logger .debug (
399
399
message = "page URL before action" ,
400
400
category = "action" ,
401
- auxiliary = {"url" : {"value" : ctx .locator ._page .url , "type" : "string" }},
401
+ auxiliary = {"url" : {"value" : ctx .stagehand_page ._page .url , "type" : "string" }},
402
402
)
403
403
try :
404
404
method_to_call = getattr (ctx .locator , ctx .method )
You can’t perform that action at this time.
0 commit comments