What is a preference in webdriver,why we use it and where do we use it??

Can any one share your views on the preferences of webdriver?

Default Asked on October 4, 2014 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Firefox preference is a way to set the details of a firefox profile. You can set different conditions for the profile like, you can say that browser should not
    auto update itself when launced by
    .setPreference(“app.update.auto”, false);

    Similarly you can set that extensions should not update them selves automatically by using this statement
    profile.setPreference(“extensions.update.enabled”, false);

    You can get a list of complete preferences by typing  about:config in the address bar of FF browser and you will get a list of all the available options

    Thanks
    Virender

    Professor Answered on October 5, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.