浏览器 'preferences' 和 'desired capabilities' 有什么区别?

What's the difference between browser 'preferences' and 'desired capabilities'?

在使用 Selenium 的浏览器中设置 'preferences' 和 'desired capabilities' 有什么区别?

我看到 people/blogs 提到“browser.helperApps.neverAsk.saveToDisk”作为偏好。但是怎么区分呢?

通过使用 desired capabilities,您可以根据会话应使用哪些功能来配置会话。 Here 是 link 以显示会话可以通过使用所需的功能而具有的所有功能。

浏览器首选项是浏览器使用的功能。例如,您可能想 运行 使用具有特定启动页面、语言的 Firefox 进行测试,或者想使用 ssl 证书做一些事情。 Here and here link 展示了如何使用配置文件更改浏览器首选项。