justtest
justtest

Reputation: 11

Cypress on other browsers

How can I run my cypress tests on Internet Explorer and Mozilla, I'm currently working with Chrome.

Is there any way like Selenium

driver = webdriver.Chrome("C:\\drivers\\chromedriver.exe") for Cypress script to IE

Upvotes: 1

Views: 1100

Answers (2)

Bernhard Schnepf
Bernhard Schnepf

Reputation: 587

The browser argument cypress run --browser argument* can be set to chrome, chromium, edge, electron and firefox.

You can find cypress exact documentation about this topic here: https://docs.cypress.io/api/commands/request.html#Arguments

Upvotes: 1

Deepak-MSFT
Deepak-MSFT

Reputation: 11335

As per the documentation Canary, Chrome, Chromium and Electron are supported.

Cypress supported browsers

Which means you cannot make a test with IE or FireFox browser.

As a work around, you can try to make a test with new MS Edge Chromium. As it is using Chromium browser engine, It should work with Cypress.

MS Edge Chromium has IE mode which lets user to load site in similar way as IE browser.

The beta version is available to download. You can download it from link below.

Download link for new Edge Chromium

Reference:

How can we setup Cypress for IE and Edge?

Upvotes: 0

Related Questions