0

I am trying to use an existing Firefox profile, that I created, and in which I went to about:config and set javascript.enabled to false manually.

var profileManager = new FirefoxProfileManager();
FirefoxProfile fxProfile = profileManager.GetProfile("nojs");
FirefoxDriver driver = new FirefoxDriver(fxProfile);

But when the driver starts, JavaScript is still being enabled.

Any suggestions, please!

4
  • 1
    Disabling JS via javascript.enabled no longer works, use an extension (stackoverflow.com/questions/37769915/…). Commented Jan 9, 2017 at 18:19
  • That worked! Thanks a lot! Commented Jan 9, 2017 at 18:51
  • The question wasn't though about Disabling JS via javascript.enabled with automation. But disabling it manually and then loading saved profile. That's why I opened a separate topic. Commented Jan 9, 2017 at 18:58
  • Ah, okay, I've reopened the question, sorry. Thanks. Commented Jan 9, 2017 at 18:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.