npx playwright codegen https://<some url>/
page.goto: net::ERR_CERT_AUTHORITY_INVALID at ...
How can I open a https url through codegen command by passing input params or auth credentials?
Just wanted to add how to use the chrome launch argument in playwright.config:
{
name: 'chrome web',
use: {
browserName: 'chromium',
launchOptions: {
args: ['--ignore-certificate-errors']
}
}
}
Argument is added when running npx playwright test
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With