Disable cookies in a browser

637 views
Skip to first unread message

testingzeal

unread,
Apr 17, 2013, 10:04:02 PM4/17/13
to webd...@googlegroups.com
There is a need for me to disable cookies and run the tests using webdriver.
Did any one tried this? 

Please let me know if there is a way to do this.

Debabrata

unread,
Apr 18, 2013, 2:32:37 AM4/18/13
to webd...@googlegroups.com
Give a try to set the preference of "network.cookie.cookieBehavior" to 2 when launching the FF instance.

~ D

David

unread,
Apr 19, 2013, 1:30:30 AM4/19/13
to webd...@googlegroups.com
Or configure FF profile with that already set and launch FF with that profile.

What about IE, can you just preconfigure the IE settings to disable cookies and then launch IE WebDriver and it will take those settings?

Same with Safari, like IE? And Chrome, has settings or profile similar to FF?

Krishnan Mahadevan

unread,
Apr 19, 2013, 3:45:56 AM4/19/13
to webdriver

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

testingzeal

unread,
Apr 19, 2013, 9:25:30 PM4/19/13
to webdriver
Krishnan,

I never used chrome switches,Is this right way?

DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities
.setCapability("chrome.binary", "disable-restore-session-state ");
WebDriver driver = new ChromeDriver(capabilities);

Krishnan Mahadevan

unread,
Apr 19, 2013, 11:56:57 PM4/19/13
to webd...@googlegroups.com
Checked adavanced usage section here : http://code.google.com/p/selenium/wiki/ChromeDriver
--
Reply all
Reply to author
Forward
0 new messages