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.

How to disable JavaScript in chrome using Chrome driver #3175

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 3175

Hi,

In my project we need to do automation for javascript disable of chrome browser.

I have tried below code using chrome driver but no luck.

DesiredCapabilities capabilities = DesiredCapabilities.Chrome();
                capabilities.IsJavaScriptEnabled = false;
                capabilities.Platform = plat;
                OpenQA.Selenium.Chrome.ChromeDriver driver = new OpenQA.Selenium.Chrome.ChromeDriver(capabilities);

  driver.Navigate().GoToUrl("http://tk3ftptlwbvm16/onemscom/default.aspx");

could you please let me know is there any other way to disable the javascript and perform
required clicks / actions

Thanks in advance.

Regards,
Praveena.


Reported by praveena14785 on 2012-01-10 08:13:46

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions