Rayrun
← Back to Discord Forum

Privacy Error on Website

Hello, When I try to access the website using Playwright, I receive a "net::ERR_CERT_DATE_INVALID" error and Privacy warning. However, when I visit the website manually in incognito mode, it works fine.

This thread is trying to answer question "How can I bypass the privacy error and 'net::ERR_CERT_DATE_INVALID' when accessing a website using Playwright?"

4 replies

Hello @hubspace ,

I need help with bypassing the privacy message that appears when I click on "Advanced" in the first image. The second image opens up when I click on "Proceed" in the privacy message. I want to skip these two steps and go directly to the third image. I have attached my code and would appreciate it if you could provide a solution.

Thank you.

MicrosoftTeams-image_1.png
MicrosoftTeams-image_2.png
MicrosoftTeams-image_3.png
Code.png

Hi @hari_43252

you are missing a 's' where there is the typescript error highlighted in your code. Error>s< https://playwright.dev/docs/api/class-browser#browser-new-context-option-ignore-https-errors

The error is saying that your ssl certificate expired 56+ days ago. Time to get it renewed.

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].