Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 50 seconds.

try below code in Plugins/index.js 

module.exports = (on, config) => {
  on('before:browser:launch', (browser, launchOptions) => {
    if (browser.name === 'chrome' && browser.isHeadless) {
      launchOptions.args.push('--disable-gpu');
      return launchOptions
    }
  });
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Cypress #failed #connection #Chrome #DevTools #Protocol #retrying
ADD COMMENT
Topic
Name
6+4 =