0

I'm writing Selenium tests in Ruby to test my website in multiple browsers.

However, the tests won't fire correctly unless the cookies are clear(there are triggers I'm testing that only happen X number of times and is stored in a cookie).

Does anyone know how to have selenium open a browser in its private browsing or incognito mode with Selenium or have another idea on how I might solve the issue?

sam
  • 153
  • 3
  • 11

1 Answers1

2

You can get Chrome to start in incognito by default.

There's a solution for Windows at the bottom of the link below... If you're not using Windows, you can Google how to achieve this for you OS =)

https://productforums.google.com/forum/#!topic/chrome/sYaZkNW8II4

Abdo
  • 13,549
  • 10
  • 79
  • 98
  • 1
    I was having the most trouble with safari, any idea how to get that working properly? I'm using osx mavericks. The old safari cookie plugin doesn't seem to work anymore. – sam Jan 30 '14 at 16:29
  • No idea how to get safari to start in incognito.. I almost never use Safari. – Abdo Jan 30 '14 at 22:56