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

Disable JavaScript ChromeDriver #6672

Closed
lukeis opened this issue Mar 4, 2016 · 3 comments
Closed

Disable JavaScript ChromeDriver #6672

lukeis opened this issue Mar 4, 2016 · 3 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

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

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2013-12-04 18:53:08

  • Labels added: Browser-Chrome

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Closing this as WontFix - the ChromeDriver (and every other WebDriver implementation
I'm aware of) require JavaScript to function.

Reported by jmleyba on 2013-12-04 19:36:43

  • Status changed: WontFix
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:18:19

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant