Questions tagged [xvfb]

Xvfb; X virtual framebuffer, is an X11 server that can run graphic applications without a physical screen.

Xvfb is an X11 server that executes all the graphical operations in memory without showing any screen output.

It acts exactly like any other X widow server but with the difference that no output is shown so Xvfb does not require the computer it is running on to a screen.

It can be used for many things like remote controlling browsers in web testing, or background tasks running for creating screenshots of programs or web pages.

543 questions
5
votes
2 answers

Trying to configure Xvfb to run Firefox headlessly

I was following along this tutorial to configure Xvfb to run firefox headlessly. http://www.alittlemadness.com/2008/03/05/running-selenium-headless/ I'm running these commands in a docker image (ubuntu:latest) currently to see if I can set up my…
azemPC
  • 264
  • 3
  • 15
5
votes
0 answers

X11 font could not be loaded

This post is a continuation of a previous post by me: Using R without X11 and I tried to implement what was suggested to me. So my previous command was: bsub -XF -n 1 -R "rusage[mem=16]" -We 60 -J -o out.log 'script.pl
Komal Rathi
  • 4,164
  • 13
  • 60
  • 98
5
votes
2 answers

How to start a wide browser inside a docker container, for Protractor testing

When running end to end tests inside a docker container we need the browser to be wide, to make sure the elements (aButton) that are positioned far right are actually visible and test like…
Jan vO
  • 281
  • 4
  • 8
5
votes
1 answer

Ruby Headless gem screen dimensions are not being respected

I'm running a Watir test using Ruby and Watir-Webdriver and the Headless gem. Here is the code that sets up the Headless environment: headless = Headless.new(dimensions: "1600x900x24") If a test crashes, our test environment automatically captures…
pjd
  • 1,163
  • 8
  • 17
5
votes
1 answer

Got black screen when recording screen by x11grab device

I'm trying to record video from a firefox run by xvfb-run but it always output nothing in the video file except black screen. Here's what I did: start a firefox, open google.com: $ xvfb-run firefox https://google.com Then it will use the default…
shawnzhu
  • 7,233
  • 4
  • 35
  • 51
5
votes
2 answers

xvfb install on Linux

I am trying to get Selenium to do some automated browsing on a Linux application server. I am stuck at the point where my 'perl recording' from Selenium sends a request to start the browser, and the standalone selenium server throws an error -…
gizmodo
  • 51
  • 1
  • 4
5
votes
1 answer

Issue running firefox with xvfb-run (Selenium WebDriver)

I have a java app that uses the Selenium Webdriver to login to a site, check for specific texts and email me if it finds them. I have a cron job that runs the jar file every morning and stops it every night. It uses firefox but runs headless, this…
user2203056
5
votes
3 answers

How do I start mvn test phase on Xvfb?

I made some unit-tests using fest, now I need to run mvn my test using maven on a headless system. I would like to run test using Xvfb but I need help to configure maven to start Xvfb before testing and stop it when all is done.
Alepac
  • 1,833
  • 13
  • 24
5
votes
1 answer

vfb- what is the purpose of the virtual framebuffer?

I have seen this config flag CONFIG_FB_VIRTUAL=y What does it do? How does it work? What is the relation between vfb and xvfb?
0x90
  • 39,472
  • 36
  • 165
  • 245
5
votes
2 answers

Running py.test with xvfb-run

I am trying to run tests in Jenkins for a Python package which uses PyQt4, and the tests create windows. Since I'm running the tests in Jenkins, I need to redirect the graphical output, so I'm using xvfb-run. Most of the time, this works, but a…
astrofrog
  • 32,883
  • 32
  • 90
  • 131
5
votes
1 answer

Getting window list in Xvfb server

I'm trying to get the window list in a Xvfb server in a debian squeeze machine. What I'm doing is: $ Xvfb :2& $ DISPLAY=:2; wmctrl -l But I'm getting this error: Cannot get client list properties. (_NET_CLIENT_LIST or _WIN_CLIENT_LIST) Is this…
sgimeno
  • 81
  • 2
  • 6
5
votes
1 answer

Why is text shown larger under xvfb?

I'm trying to test a GUI application using Xvfb. The problem I'm having is that the application is sensitive to how large its text is, which is apparently different when using Xvfb. The default font and screen resolution are the same in both…
Geoff Bache
  • 381
  • 1
  • 2
  • 4
5
votes
1 answer

Running Xvfb and CutyCapt as Python subprocess

I'm an trying to take a screenshot in the background using CutyCapt My application is written in python and calls CutyCapt by running a subprocess. Works locally (windows) just fine, but the CutyCapt.exe for windows does not require an x server. …
MattoTodd
  • 14,467
  • 16
  • 59
  • 76
5
votes
1 answer

Render WebGL in Xfvb

I want to headless test WebGL code using Xvfb. Does anybody know how to do that? I have 2 machines - both running Ubuntu. One with NVidia card and one with ATI: The NVidia machine: ipmi:~ $>xvfb-run glxinfo name of display: :455 display: :455 …
haehn
  • 967
  • 1
  • 6
  • 19
4
votes
1 answer

Has anybody run Xvfb on EC2 with CentOS?

I am trying to get javascript-enabled cucumber running on CentOS in EC2 by following this tutorial: http://makandra.com/notes/1391-how-to-hide-your-selenium-browser-window-with-headless However, the scenarios that require javascript just fail…
Winston Chen
  • 6,799
  • 12
  • 52
  • 81