如何使Xvfb显示可见? [英] How to make Xvfb display visible?

查看:124
本文介绍了如何使Xvfb显示可见?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过Xvfb在显示号:99上运行硒,如下所示:

I am running selenium through Xvfb on display number :99 like this:

/usr/bin/Xvfb:99 -ac -screen 0 1024x768x8& export DISPLAY =:99"&& java -jar/usr/lib/selenium/selenium-server-standalone-2.24.1.jar 端口4444

/usr/bin/Xvfb :99 -ac -screen 0 1024x768x8 & export DISPLAY=":99" && java -jar /usr/lib/selenium/selenium-server-standalone-2.24.1.jar -port 4444

但是默认情况下不显示数字为0的显示.如何显示硒在浏览器中的实际作用?

However display with number other than :0 is not visible by default. How do I make it visible to actually see what selenium is doing in the browser?

推荐答案

它是虚拟的.从手册页Xvfb(1):

It's virtual. From the man page Xvfb(1):

Xvfb是X服务器,可以在没有显示硬件和物理输入设备的计算机上运行.它使用虚拟内存模拟哑帧缓冲区.

Xvfb is an X server that can run on machines with no display hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory.

也在手册页中:

Xvfb -pixdepths 3 27 -fbdir /var/tmp 服务器将监听连接,服务器号为0,具有默认的屏幕配置(一个屏幕,1280x1024x8),还将支持3和27的像素图深度,并且将使用 用于帧缓冲区的/var/tmp中的内存映射文件.

Xvfb -pixdepths 3 27 -fbdir /var/tmp The server will listen for connections as server number 0, will have the default screen configuration (one screen, 1280x1024x8), will also support pixmap depths of 3 and 27, and will use memory mapped files in /var/tmp for the framebuffer.

xwud -in /var/tmp/Xvfb_screen0 显示由上一个示例启动的服务器的屏幕0.

xwud -in /var/tmp/Xvfb_screen0 Displays screen 0 of the server started by the preceding example.

这篇关于如何使Xvfb显示可见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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