Recently, I encountered a problem with my program that tests some of our sites with javascript disabled. Everything was working perfectly until we upgraded from WebDriver 2.4.5 to the latest version. Now, I'm faced with this error message:
java.lang.IllegalArgumentException: Preference javascript.enabled may not be overridden: frozen value=true, requested value=false
It appears that disabling JS is no longer allowed with the latest WebDriver update. Unfortunately, downgrading isn't an option due to compatibility issues with our updated Firefox browser.
I'm looking for suggestions on how to test with JS disabled. Chrome never worked before, and now Firefox doesn't either. I've tried searching for solutions using "webdriver js disabled," but all I find are references to the javascript.enabled, false
argument which is no longer effective.