ChromeOptions 设置WebDriver/ChromeDriver的请求头参数

常用参数

常用参数请参考下表。

序号 参数 说明
1 --allow-outdated-plugins 不停用过期的插件。
2 --allow-running-insecure-content 默认情况下,https 页面不允许从 http 链接引用 javascript/css/plug-ins。添加这一参数会放行这些内容。
3 --allow-scripting-gallery 允许拓展脚本在官方应用中心生效。默认情况下,出于安全因素考虑这些脚本都会被阻止。
4 --disable-desktop-notifications 禁用桌面通知,在 Windows 中桌面通知默认是启用的。
5 --disable-file-system 停用 FileSystem API。
6 --disable-preconnect 停用 TCP/IP 预连接。
7 --disable-remote-fonts 关闭远程字体支持。SVG 中字体不受此参数影响。
8 --disable-web-security 不遵守同源策略。
9 --disk-cache-dir 将缓存设置在给定的路径。
10 --disk-cache-size 设置缓存大小上限,以字节为单位。
11

你可能感兴趣的:(java工具难题,java,selenium,chrome)