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

Java - Vector vs ArrayList performance - test
How to enter SQL instruction in controller with play 2 and java
OpenGL Zoom in / Zoom out with Mouse/Keyboard
Loading log4j from maven repository
Sending messages from various IP-adresses to a single server using Java
Do strings used in a System.out.println also create new immutable objects?
Loading file from the machine
Writing to Windows 7 library with Java application
Can CDATA be used without using CharacterEscapeHandler for marshaling and unmarshalling in JAXB
Android ContentProvider applyBatch not saving all contact data
“} expected” on a seemingly completely statment
Upgrading hibernate from 3.2.4.sp1 to a suitable version
Jodatime date format
Java regex to remove multiple occurrences of a pattern from a sentence
Request factory - load referenced entities of referenced entities
Java: extending Thread without implementing run()

Categories

HOME
compiler-construction
asp.net-core
tesseract
rdf
fsm
azure-storage-tables
virtualization
facebook-messenger-bot
applepay
gnupg
vault
offline
postgres-xl
google-apps-marketplace
google-cloud-ml
php-7.1
alignment
visual-studio-2005
quickfix
openrefine
pc
alpine
cloudhub
sylius
chromium-embedded
shopware
vision
tinymce-4
junit5
copying
y86
host
revolution-slider
xcode-extension
libraries
code-search-engine
awt
hp-ux
g-code
glew
turbogears
convertapi
auto-update
fault
filepicker
apache-fop
dds
errordocument
dotnetzip
elgg
colorama
directory-structure
pillow
mcafee
lync-client-sdk
heidisql
grails-tomcat-plugin
sts-springsourcetoolsuite
azure-virtual-network
testng-dataprovider
tcpserver
ios8-today-widget
collapse
spidermonkey
fouc
citrus-pay
responsive-images
sankey-diagram
notify
device-orientation
python-green
formatjs
jscript.net
knuth
fpml
mesa
elliptic-curve
app42
srs
java.nio.file
floating-point-precision
ms-project-server-2010
ruby-datamapper
ril
jplaton
bitsharp
windows-phone-7.1.1
postgresql-performance
ohm
spring-portlet-mvc
nsdatecomponents
php-parser
data-loss
coredump
file-comparison
gdlib
visitor-statistic
dmx512
meego
javap
putchar
mdac
ugc

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