Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Playwright not accepting https urls while opening with codegen command

Tags:

playwright

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?

like image 791
Talluri Vamsi Avatar asked Apr 15 '26 08:04

Talluri Vamsi


1 Answers

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

like image 102
candre Avatar answered Apr 23 '26 04:04

candre