1

What's the difference between setting 'preferences' and 'desired capabilities' in the browser using Selenium?

I see people/blogs mentioning "browser.helperApps.neverAsk.saveToDisk" as preference. But how do you distinguish between them?

Cosmin
  • 2,354
  • 2
  • 22
  • 39
RamaKrishna
  • 101
  • 2
  • 15
  • I hope you find a better explanation from the previous question [link](http://stackoverflow.com/questions/25777631/firefox-profile-preferences-vs-chrome-options-vs-ie-desired-capabilities) – Harish Ekambaram Sep 23 '16 at 14:22

1 Answers1

0

By using desired capabilities you are configuring the session as to what features should the session use. Here is the link to show what all features a session can have by using desired capabilities.

Browser preferences are the features that a browser use. For ex you may want to run your test with Firefox having certain startup page, language or want to do something with ssl certificate. Here and here are links to show how to change browser prefrences using a profile.

user1207289
  • 3,060
  • 6
  • 30
  • 66