java


Block sites from setting any data using selenium Java (chrome)


I'm trying to launch browser with disabled cookies, I found a way for blocking third-party but haven't found a way to block sites from setting any data (block cookies) on chrome browser.
ChromeOptions options = new ChromeOptions();
Map prefs = new HashMap();
prefs.put("profile.default_content_settings.cookies", 2);
options.setExperimentalOption("prefs", prefs);
driver = new ChromeDriver(options);

Related Links

Get all column's qualifier that matches regex [closed]
How to set date and time 6 hour before to picked time and date?
How to install and connect MongoDb in Netbeans?
Not able to return string array in AsycTask
how to draw quarter circle in xml android
JSON to pojo conversion
How do I cancel ViewPager's “snap” animation after calling endFakeDrag()?
joining array of strings + a separator
Initialization in polymorphism of variables
How to inject the activity with every thing loaded?
Save EditText to ArrayList in Android Studio - EDIT 1
Finding the MTV (Minimal Translation Vector) using Separating Axis Theorem
Convert String to Proper Json array in android [closed]
Condition on cacheable annotation on private property of Object
How to use #DbRef with a map having list as value in java?
Tomcat CSRFFilter implementation in java

Categories

HOME
ibm-bluemix
variables
cloud
reflection
minimum-spanning-tree
onedrive
relay
elm
twitter-bootstrap-4
icloud
callback
installshield
datastax-java-driver
portia
slick-slider
gnupg
here-api
correlation
n-gram
remote-access
carthage
serverless-framework
windows-7-x64
lucene.net
riot.js
kudan
microsoft-sync-framework
qhull
status
dbclient
lightswitch-2013
directx-10
siesta-swift
stringtemplate
space-complexity
withings
hilbert-curve
botbuilder
eigenvalue
keydown
no-www
wptoolkit
scorm
user-accounts
veracode
togetherjs
knpmenubundle
iso8601
webdriverjs
account-kit
azure-sdk
infix-notation
superstack
tform
eclipse-clp
purge
libressl
computer-algebra-systems
dukescript
0xdbe
event-bubbling
e10s
applescript-objc
device-manager
markers
eol
reactfx
valuechangelistener
android-2.2-froyo
sitemesh
listings
ora-00911
back-stack
itmstransporter
libstdc++
datawindow
windows-phone-7.1.1
amazon-appstore
pendrive
doh
tomcat-valve
yetanotherforum
appendto
radcombobox
data-driven
zend-decorators
dbisam

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App