如何查看XVFB上的Chrome设置? [英] How to view Chrome settings on XVFB?

查看:424
本文介绍了如何查看XVFB上的Chrome设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用在Docker容器中的Chrome (由...发布SeleniumHQ)在云中运行自动化测试。这可以在 XVFB 上运行最少的显示环境,您可以 VNC 查看结果。



现在我们在企业防火墙中使用 - 所以外部请求需要经过代理。我们正在使用 Selenium proxy命令设置代理。



现在,我们已经在Chrome的停靠站容器上使用curl对命令行进行了测试,并且代理可以访问外部资源。但是,Chrome访问外部资源(内部是正确的)是一个未知的问题。当我们尝试查看设置时,它被锁定。 (关于在xvfb上渲染设置的事情)。



所以我正在寻找一种方法来查看类似于Firefox的的设置:config 。显然,这在Chrome上无效,但似乎有一些类似的东西。



似乎有一些细节这里使用的URL 。他们建议:



chrome:// net-internals / proxyservice#events



chrome://net-internals/proxyservice.config#events



chrome://net-internals/proxyservice.init_log#events



chrome:// net-internals / proxyservice .bad_proxies#events



我的问题是:如何查看XVFB上的Chrome设置?

解决方案

查看当前首选项的一种方法是打开文件 scoped_dir5752_14079\Default\Preferences 会话启动后的临时文件夹。



并列出一个列表首选项描述:



https://chromium.googlesource.com/chromium/src/+/master/chrome/common/pref_names.cc


I'm using Chrome in a Docker container (published by SeleniumHQ) to run automated tests in the Cloud. This runs a minimal display environment on XVFB that you can VNC into to see results.

Now we're using this within a Corporate firewall - and so external requests need to go through a proxy. We're setting the proxy with the Selenium proxy command.

Now we've run a test on the command line with curl on the Chrome docker container and curl with the proxy can access external resources just fine. But Chrome has an unknown problem accessing external resources (internal are fine). When we try and look at the settings, it is locked out. (Something about not being about the render the settings on xvfb).

So I'm looking for a way to look at the settings similar to Firefox's about:config. Now obviously this doesn't work on Chrome, but there appear to be some similar things.

There appear to be some details on URLs to use here.

They suggest:

chrome://net-internals/proxyservice#events

chrome://net-internals/proxyservice.config#events

chrome://net-internals/proxyservice.init_log#events

chrome://net-internals/proxyservice.bad_proxies#events

My question is: How to view Chrome settings on XVFB?

解决方案

One way to see the current preferences is to open the file scoped_dir5752_14079\Default\Preferences in the temporary folder once the session is started.

And for a list and description of the preferences :

https://chromium.googlesource.com/chromium/src/+/master/chrome/common/pref_names.cc

这篇关于如何查看XVFB上的Chrome设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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