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
8
votes
3 answers

Is it possible to run xvfb on Heroku?

I'd like to run xvfb on Heroku. On my mac, I used the dmg to install it. Would anyone have any idea how to go about this on Heroku? I came across these buildpacks (http://github.com/douglasjsellers/heroku-xvfb-buildpack) - but following the…
natab
  • 273
  • 2
  • 12
7
votes
2 answers

Is there a way to run GUI application in a headless way in Mac?

I'm using following techniques to run GUI application in Linux and Windows: Linux: :~$ Xvfb :99 -ac & :~$ DISPLAY=:99 ./app This won't work for 100% in Mac OS X, even though Xvfb is installed by default, since most applications run in Aqua…
Michael Spector
  • 36,723
  • 6
  • 60
  • 88
7
votes
0 answers

Getting “Failed to connect to the bus: Could not parse server address” error when launch Chrome in CentOS using puppeter

I am trying to launch Chrome in CentOS using puppeteer but got errors like this: [8012:8039:1220/204633.586208:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp"…
lakerchen
  • 71
  • 1
  • 1
  • 3
7
votes
2 answers

How to watch xvfb session that's inside a docker on remote server from my local browser?

I'm running a docker (That I built on my own), that's docker running E2E tests. The browser is up and running but I want to have another nice to have feature, I want the ability of watching the session online. My docker run command is: docker run -p…
Yonatan Kiron
  • 2,718
  • 1
  • 20
  • 25
7
votes
1 answer

Python XVFB error in windows

For virtual Framebuffer (headless testing) I'm using Xvfb with PyVirtualDisplay and it's working fine in Ubuntu but showing error in Windows7. here is part of code where problem is occurring. from pyvirtualdisplay import Display display =…
Gaurav Jain
  • 1,549
  • 1
  • 22
  • 30
6
votes
3 answers

Programmatically grab screenshots in OSX

I am going to port some screenshot grabbing code (C++) for linux to osx. The current solution run graphical applications in xvfb and then use xlib to grab screenshots from the display. (That will also support if we are running without xvfb). So as I…
Zitrax
  • 19,036
  • 20
  • 88
  • 110
6
votes
0 answers

How to record Video with Audio from a puppeteer instance from a docker container

I'm trying to build a simple server that basically: opens a webpage with a puppeteer instance. records the webpage and save the video file. I was able to implement this with puppeteer-stream and it works perfectly locally. While trying to put this…
6
votes
1 answer

Cypress & Jenkins: Install system dependency "xvfb" via Jenkinsfile

To run Cypress, it requires that system dependencies be installed, Cypress Dependencies apt-get install libgtk2.0-0 libgtk-3-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb To run Cypress script in local Jenkins, I am…
Jeff
  • 1,917
  • 1
  • 25
  • 43
6
votes
3 answers

Running Selenium::WebDriver::Firefox inside Xvfb from ruby as NON-root user

I'm trying to do some headless testing using a ruby script. Essentially I'm executing Xvfb on display :1, and then firing up Watir::Browser.new(:firefox) using watir-webdriver. This works great if you run the script as root - I can run x11vnc and…
Richard Walker
  • 162
  • 1
  • 8
6
votes
0 answers

GLFW fails on Debian (with Python)

I tried to make the question as reproducible as possible. So here is the docker commands: docker run --name headless_test -ti python:3.6-jessie /bin/bash And inside the docker execute the following lines: apt update && apt install -y git xvfb…
user972014
  • 3,296
  • 6
  • 49
  • 89
6
votes
1 answer

flash player not working under xvfb

Flash player not working in firefox (centos 5.5 x64) that run with selenium under XVFB. I'm getting just black screen in place where flash should be visible. Tried both 32 and 64 versions. May you suggest anything?
Novarg
  • 253
  • 2
  • 17
6
votes
1 answer

What is difference between Xvfb and Chromedriver and when to use them

Hi I am planning to setup selenium to test my web application. I have read that both chromedriver and Xvfb can be used to run the tests. I have also read that Xvfb can be configured to use chromdriver. So that got me confused. What role does…
Aniket
  • 4,926
  • 12
  • 41
  • 54
6
votes
2 answers

CasperJS with Slimerjs - Xlib: extension "RANDR" missing on display ":99"

I am trying to running Casperjs with Slimerjs I Installed SlimerJS 0.10.2 I have installed Mozilla Firefox 45.5.1 (tried with 50 too) I have installed CasperJS 1.1.3 I have installed xvfb 1.17.4 Running on Centos 6.8 When tried to run a…
Apoleo
  • 2,045
  • 2
  • 21
  • 37
6
votes
0 answers

libGL error: No matching fbConfigs or visuals found

I get error when running xvfb-run electron app/ libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast The electron app is just opening a simple html file. Ubuntu 16.04 I've found this post but the solution…
Kamran Eyyubov
  • 300
  • 4
  • 11
6
votes
2 answers

selenium chrome driver httplib.badstatusline

I install selenium, chrome, pyvritualdisplay and xvfb using the following tutorial: https://christopher.su/2015/selenium-chromedriver-ubuntu/ when i try to run a python selenium script i get this error when i call webdriver.Chrome() I'm using…