This node module provides an easy way to install and use the Chromium browser in a Cypress project. Chromium comes bundled with this module.
- node 18 or above
- A Cypress project (tested on version
13.7
)
Simply import this module into your Cypress config like so, and Chromium will be added to the array of browsers:
// cypress.config.ts
export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
require('cypress-chromium')(config);
return config;
},
// ...
}
});
Name | Type | Default value | Description |
---|---|---|---|
config |
object | null | Cypress config object |
errorIfChromiumIsMissing |
boolean | false | If true , throw an error if Chromium can't be found. |