Skip to content
New issue

Have a question about this project?Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Support connectOverCDP in defineConfig in @playwright/test #31624

Open
winston0410opened this issue Jul 10, 2024 · 0 comments
Open
Labels
feature-test-runner Playwright test specific issues

Comments

@winston0410
Copy link

🚀 Feature Request

From the type ofdefineConfigand more specificallyConnectOptions,there is no option for connection over CDP, which is alreadysupported by Playwright since 1.9.

Example

it would be great if the config allow something like this:

exportdefaultdefineConfig({
// omitted

projects:[
{
name:'chromium',
use:{...devices['Desktop Chrome'],
connectOptions:{
connectOverCDP:"http://localhost:9222",
}
},
},
]
})

Motivation

By supportconnectOverCDPin the config of @playwright/test, we will be able to connect to a remote headless browser through CDP for testing.

@mxschmitt mxschmitt added the feature-test-runner Playwright test specific issues label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-test-runner Playwright test specific issues
Projects
None yet
Development

No branches or pull requests

2 participants