chore: support channel and executable path params (#90)
Fixes https://github.com/microsoft/playwright-mcp/issues/89
This commit is contained in:
parent
d316441142
commit
9042c03faa
6 changed files with 69 additions and 2 deletions
|
|
@ -71,6 +71,7 @@ export const test = baseTest.extend<Fixtures>({
|
|||
cdpEndpoint: async ({ }, use, testInfo) => {
|
||||
const port = 3200 + (+process.env.TEST_PARALLEL_INDEX!);
|
||||
const browser = await chromium.launchPersistentContext(testInfo.outputPath('user-data-dir'), {
|
||||
channel: 'chrome',
|
||||
args: [`--remote-debugging-port=${port}`],
|
||||
});
|
||||
await use(`http://localhost:${port}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue