Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Protractor Allow Notifications Chrome 46

Chrome just auto-updated to version 46. I am trying to run my protractor tests but I always get the Allow Notifications pop-up now. Does anyone know how to get around this? How I can make it always allow notifications for my tests?

enter image description here

I found the chrome pref options here: http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/pref_names.cc?view=markup

And tried using profile.managed_default_content_settings.notifications and still can't get it to work. I am not sure of the expected value for that pref though? Not sure where I can find that. Does anyone see anything wrong with this:

enter image description here

like image 579
reutsey Avatar asked Oct 21 '15 17:10

reutsey


Video Answer


1 Answers

This is what I used in order to get it to work:

enter image description here

like image 187
reutsey Avatar answered Oct 19 '22 19:10

reutsey