如何在量角器配置中启用Safari的私密浏览 [英] How to enable private browsing for Safari in the Protractor configuration

查看:89
本文介绍了如何在量角器配置中启用Safari的私密浏览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种在量角器conf文件中启用Safari私密浏览的方法.我已将chrome与以下内容一起用于私人浏览

I've been searching for a way to enable private browsing for Safari in the protractor conf file. I have gotten chrome to work with private browsing, with the below

 chromeOptions: {
   args: ["incognito", "disable-extensions"]
}

我没有发现与Safari类似的任何东西,如果有人可以帮助的话,那会很棒.

I havent found anything similar with Safari, if anyone can help that would be great.

谢谢.

推荐答案

根据WebDriver的文档,您正在寻找的是 cleanSession 属性.确保会话没有cookie,缓存条目,本地存储或数据库.

According to the WebDriver's documentation, what you are looking for is the cleanSession property. It makes sure the session has no cookies, cache entries, local storage, or databases.

您可以在此处了解有关Safari特定选项的更多信息.

这篇关于如何在量角器配置中启用Safari的私密浏览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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