Firefox 和 Chrome 参数/首选项列表 [英] List of Firefox and Chrome arguments/preferences

查看:24
本文介绍了Firefox 和 Chrome 参数/首选项列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为测试人员,
我想研究 Firefox 和 Chrome 的可能配置参数列表,
这样我就可以用知识配置我的测试工具

As a tester,
I would like to study a list of possible configuration arguments for Firefox and Chrome,
So that I can configure my testing tools with knowledge

Reading API 表明我们可以使用一些方法将参数传递给 webdriver 实例:

Reading API indicates that there are methods with whom we can pass arguments to a webdriver instance:

FirefoxOptions.AddArgument
FirefoxOptions.SetLoggingPreference (inherited from DriverOptions)
FirefoxOptions.SetPreference

传递给这些方法的可能参数到底是什么以及它们做了​​什么?
是否有在线资源以及每个浏览器的详细列表?

What exactly can be the possible arguments passed to these methods and what they do ?
Is there a resource online with a detailed list per each browser ?

推荐答案

Firefox 资源:
http://kb.mozillazine.org/About:config_entries
http://kb.mozillazine.org/Category:Preferences

示例用法:

firefoxProfile.setPreference("app.update.enabled", false);

Chrome 资源:
https://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/chrome_switches.cc?view=markup

示例用法:

chromeOptions.addArguments("--start-maximized");

这篇关于Firefox 和 Chrome 参数/首选项列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆