Rayrun
← Back to Discord Forum

N00b problem :(

Hi Everyone, I've never used Playwright before and am just getting started.

I'm running on a Mac and trying to test a site on "localhost:3000". Unfortunately, I keep getting Error: page.goto: net::ERR_SSL_PROTOCOL_ERROR at https://localhost:3000/ when I try to access the page. The browser is Google Chrome.

I've read the docs. I put ignoreHTTPSErrors: true, in my playwright.config.js file. That doesn't make any difference.

Here is the test code I'm using (taken from example.spec.js):

test('Click Danzan Ryu', async ({ page }) => {
  await page.goto('https://localhost:3000');
  await page.getByRole('link', { name: 'Danzan Ryu' }).click();
});

What else should I do? Thank you, -T

This thread is trying to answer question "How to resolve the SSL protocol error while accessing a site on localhost:3000 using Playwright and Google Chrome?"

2 replies

use http?

tennis6164
tennis6164

That's it! Thank you, @dand33

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 luc@ray.run.