question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome window opened by Cypress keeps asking to add printer

See original GitHub issue

Current behavior

I have a printer in my wifi network. Every time I run a Cypress test locally, the Chrome instance Cypress opens to run the tests in shows a notification whether I want to add the newly found printer in my network to Google Cloud Print. This gets quite annoying after some time. Google Chrome Cloud Print message

Desired behavior

Deactivate the Google features of Chrome and prevent the notification from showing up by default as it isn’t necessary for test execution.

Steps to reproduce

Add a printer to your network, npm run cypress:open and run any test locally.

Versions

Cypress v2.1.0 Chrome v65 Mac OS v10.13.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, Apr 17, 2018

I believe that the --disable-device-discovery-notifications Chromium flag may silence these notifications.

Could you try adding this to your cypress/plugins/index.js file and let me know if this works?

module.exports = (on, config) => {
  on('before:browser:launch', (browser = {}, args) => {
    if (browser.name === 'chrome') {
      args.push('--disable-device-discovery-notifications')
      return args
    }
  })
}

If this works, we can very easily automatically do this in Cypress when launching Chrome.

0reactions
brian-manncommented, May 30, 2018

Released in 3.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
Troubleshooting · Support channels · Isolate the Problem · Download specific Chrome version · Clear Cypress cache · Launching browsers · Allow the...
Read more >
Automated chrome shows different print window than regular ...
My problem here is that with Cypress I click on button "Print" which opens regular pint window (Operating System's). In regular Chrome it ......
Read more >
cypress-io/cypress - Gitter
In cypress i am clicking the print button and using cy.screenshoot() to take the screen capture. It is not working for me. The...
Read more >
Cypress Failed to Connect to Chrome: 5 Ways to Easily Fix it
Open Cypress by typing this command in the terminal: node_modules/. · Run the following command in the terminal: cypress run -browser chrome ·...
Read more >
How to handle new browser Tab and Window in Cypress
Step 2: Click on the 'Try it' button. Step 3: A new window would be opened. Verify that the header text in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found