Zoette
Zoette

Reputation: 1291

Configure Chrome options for Cypress

In Selenium projects, I'm used to configure the Chrome options. Is there a way of doing it in Cypress projects?

I need to test a website that is flagged like "unsafe" because of its obsolete certificates, and I need to bypass the "Unprotected connection" window.

What it looks like in Selenium projects:

DesiredCapabilities handlSSLErr = DesiredCapabilities.chrome ()       
handlSSLErr.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true)
WebDriver driver = new ChromeDriver (handlSSLErr);

Thanks in advance.

Upvotes: 0

Views: 1962

Answers (2)

Zoette
Zoette

Reputation: 1291

Disabling my antivirus fixed the problem.

Upvotes: 0

Karan
Karan

Reputation: 499

As per the documentation on cypress , you need to add below in your cypress.json file for achieving the same :

{ "chromeWebSecurity": false }

Please check below link for more detailed info Here

Upvotes: 1

Related Questions