In my feature automation, I need to disable JavaScript in browser and run the flow. How to disable JavaScript?
Tried DesiredCapabilities for firefox and Chrome.
this works:
FirefoxOptions options = new FirefoxOptions(); options.addPreference("javascript.enabled", false);