Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Disable JavaScript ChromeDriver #6672

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 6672

https://code.google.com/p/selenium/issues/detail?id=3175

Doesn't work.

So then I tried this,
ChromeOptions opts = new ChromeOptions();
opts.addArguments("--disable-javascript");
driver = new ChromeDriver(opts);

But then driver.get(website); 
javascript is enabled again. When it was on data; it was disabled. 


Also I tried,
DesiredCaptabilities caps = DesiredCaptabilties.chrome();
caps.setJAvaScriptEnabled(fale);
driver = new ChromeDriver(caps); 
driver.get(Website); 

Nothing is working. Any advice?

Reported by Yawang2247 on 2013-12-04 17:58:28

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions