File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ export type Context = Readonly<{
141141 recordedTraces ( ) : TraceResult [ ] ;
142142 storeTraceRecording ( result : TraceResult ) : void ;
143143 getPageById ( pageId : number ) : ContextPage ;
144- resolvePageById ( pageId ?: number ) : ContextPage ;
145144 newPage (
146145 background ?: boolean ,
147146 isolatedContextName ?: string ,
Original file line number Diff line number Diff line change @@ -84,15 +84,15 @@ Example with arguments: \`(el) => {
8484 }
8585
8686 const mcpPage = cliArgs ?. experimentalPageIdRouting
87- ? context . resolvePageById ( request . params . pageId )
87+ ? context . getPageById ( request . params . pageId )
8888 : context . getSelectedMcpPage ( ) ;
8989 const page : Page = mcpPage . pptrPage ;
9090
9191 const args : Array < JSHandle < unknown > > = [ ] ;
9292 try {
9393 const frames = new Set < Frame > ( ) ;
9494 for ( const el of uidArgs ?? [ ] ) {
95- const handle = await context . getElementByUid ( el . uid , page ) ;
95+ const handle = await mcpPage . getElementByUid ( el . uid ) ;
9696 frames . add ( handle . frame ) ;
9797 args . push ( handle ) ;
9898 }
You can’t perform that action at this time.
0 commit comments