خرید بک لینک

Vote count: 0

I am trying to disable all cookies in firefox selenium on python. I do not want first party cookies and I do not want third-party cookies.

According to this stack overflow post, the way to disable cookies is like this:

from selenium import webdriver
fp = webdriver.FirefoxProfile()
fp.set_preference("network.cookie.cookieBehavior", 2)
browser = webdriver.Firefox(firefox_profile=fp)

However, when I manually checked the browser opened by firefox selenium, first party cookies are still being recorded. Is this a problem with firefox selenium, or am I doing something wrong still?

asked 50 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 9 مرداد 1395 ساعت: 2:40

صفحه بندی