You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
This is not the proper forum for general help requests. In the future, please direct
your WebDriver questions to the webdriver@googlegroups.com mailing list.
As for your bug, you can disable JavaScript using Chrome's --disable-javascript flag.
In Java:
DesiredCapabilities caps = DesiredCapabilities.chrome();
caps.setCapability("chrome.switches", Arrays.asList("--disable-javascript"));
*WARNING*: Running without JavaScript is unsupported and will likely break a large
portion of the ChromeDriver's functionality. I suspect you will be able to do little
more than navigate to a page. This is *NOT* a supported use case, and we will not
be supporting it.
Originally reported on Google Code with ID 3175
Reported by
praveena14785
on 2012-01-10 08:13:46The text was updated successfully, but these errors were encountered: