Playwright not accepting https urls while openinign with codegen command

Viewed 3401

npx playwright codegen https:/// page.goto: net::ERR_CERT_AUTHORITY_INVALID at ...

how can i open https url through codegen command by passing input params or auth credentials

3 Answers

In Playwright Sharp:

var context = await browser.NewContextAsync(new BrowserNewContextOptions { IgnoreHTTPSErrors = true });

Adding --ignore-https-errors worked for me

npx playwright codegen https://localhost/ --ignore-https-errors

Related