How to allow or block the notifications alert on h

2019-07-11 06:08发布

问题:

I am running my protractor tests on headless chrome for which I am not sure whether the headless chrome pops up the Notification alert or not.

If it pops up then how to Allow and Block them?

For non-headless chrome I have added the workaround given in this post.

How to detect for headless and make it allow or block?

I am using Angular2 application and non angular2 application.