Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Selenium 在浏览器中设置“首选项”和“所需功能”有什么区别?
我看到人们/博客提到“ browser.helperApps.neverAsk.saveToDisk”作为偏好。但是你如何区分它们呢?
browser.helperApps.neverAsk.saveToDisk
通过使用desired capabilities,您将会话配置为会话应使用哪些功能。这是显示会话可以通过使用所需功能具有的所有功能的链接。
desired capabilities
浏览器首选项是浏览器使用的功能。例如,您可能希望使用具有特定启动页面、语言的 Firefox 运行测试,或者想要使用 ssl 证书做一些事情。这里和这里是显示如何使用配置文件更改浏览器偏好的链接。