How to use Desired Capabilties to handle browser notifications (was: ALERT of Facebook/ Unable to dismiss or accept)

As I’ve said above, you need a desired capability:

Luckily for you, I’ve gone ahead and done all of your work for you and found which one you need.

It would serve you well to remember that none of us get paid to help you. We donate our time and expertise as best we can, and with our free time. Please remember this the next time you decide to act like a complete asshat.

To disable all notification popups permanently, do the following:

1.) Open Project > Settings > Desired Capabilities > WebUI > Chrome

2.) Click Add and set:

Name = prefs
Type = Dictionary

3.) Click on the ellipses under the Value column. The Dictionary Property Builder window will appear. Add a new property with:

Name = profile.default_content_setting_values.notifications
Type = Number
Value = 2.0

4.) Click OK, then OK again to apply the settings.

5 Likes