'nightwatchJS how to grant permission to camera or block it?

It's possible to grant permission with option like:

  'goog:chromeOptions': {
          'args': ["--use-fake-device-for-media-stream", "--use-fake-ui-for-media-stream"]
         }

But it just skips permissions screen, but is there any specification on how to interact with permission popup?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source