chore: prefer executablePath for page.pause()

This commit is contained in:
Max Schmitt 2024-08-02 10:52:31 +02:00
parent 69561a194a
commit 59584ad63a
2 changed files with 2 additions and 1 deletions

View file

@ -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',

View file

@ -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);