0

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"]
}

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

Thanks.

Daniela
  • 471
  • 7
  • 25
  • 1
    Why do you need to enable "incognito" with protractor? It automatically uses a fresh browser with no cookies or history – Gunderson Feb 20 '17 at 18:14

1 Answers1

0

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.

You can learn more here about Safari specific options.

SaWo
  • 1,515
  • 2
  • 14
  • 32