chore: prefer executablePath for page.pause()
This commit is contained in:
parent
69561a194a
commit
59584ad63a
|
|
@ -43,7 +43,7 @@ export async function launchApp(browserType: BrowserType, options: {
|
|||
}
|
||||
|
||||
const context = await browserType.launchPersistentContext(serverSideCallMetadata(), '', {
|
||||
channel: findChromiumChannel(options.sdkLanguage),
|
||||
channel: !options.persistentContextOptions?.executablePath ? findChromiumChannel(options.sdkLanguage) : undefined,
|
||||
noDefaultViewport: true,
|
||||
ignoreDefaultArgs: ['--enable-automation'],
|
||||
colorScheme: 'no-override',
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ export class RecorderApp extends EventEmitter implements IRecorderApp {
|
|||
useWebSocket: !!process.env.PWTEST_RECORDER_PORT,
|
||||
handleSIGINT,
|
||||
args: process.env.PWTEST_RECORDER_PORT ? [`--remote-debugging-port=${process.env.PWTEST_RECORDER_PORT}`] : [],
|
||||
executablePath: inspectedContext._browser.options.isChromium ? inspectedContext._browser.options.customExecutablePath : undefined,
|
||||
}
|
||||
});
|
||||
const controller = new ProgressController(serverSideCallMetadata(), context._browser);
|
||||
|
|
|
|||
Loading…
Reference in a new issue