量角器允许通知 Chrome 46 [英] Protractor Allow Notifications Chrome 46

查看:21
本文介绍了量角器允许通知 Chrome 46的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome 刚刚自动更新到版本 46.我正在尝试运行我的量角器测试,但我现在总是得到允许通知弹出窗口.有谁知道如何解决这个问题?如何让它始终允许通知我的测试?

我在这里找到了 chrome pref 选项:

解决方案

这是我用来让它工作的:

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?

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:

解决方案

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

这篇关于量角器允许通知 Chrome 46的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆