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
15
votes
2 answers

How do I start and stop a Linux program using the subprocess module in Python?

I’m writing a web app that uses Selenium to screen-scrape another website. This screen-scraping only happens once a day, so I’d rather not leave Selenium and Xvfb running all the time. I’m trying to figure out how to start Xvfb and Selenium from…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
15
votes
2 answers

Headless Selenium + Xvfb + Chrome on OSX 10.11

Okay, so first I learned that Xvfb wasn't included with my OS X version, so I installed it from http://www.xquartz.org/. and that seemed to have worked: which xvfb /opt/X11/bin/xvfb But when I try using it with either pyvirtualdisplay and…
jfox
  • 848
  • 1
  • 8
  • 23
14
votes
4 answers

wkhtmltopdf command fails

I am trying to convert a HTML file to PDF using wkhtmltopdf. For that purpose I have installed wkhtmltopdf on a Debian box and am trying to run this command: /usr/bin/xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf…
phidah
  • 5,794
  • 6
  • 37
  • 58
13
votes
2 answers

xvfb run error in ubuntu 11.04

My task is crawling the google search results using headless webkit(PyQt4.QtWebkit) in python. The module was crawling the results fine using PyQt4.I should have to execute this script in amazon ec2.So,I should have to use Xvfb (no x server in…
Nava
  • 6,276
  • 6
  • 44
  • 68
13
votes
2 answers

Docker run desktop environment

The question is most clear, How to start complete desktop environment (KDE, XFCE, Gnome doesn't matter) in the Docker remote container. I were digging over the internet and there are lots of questions about the related topic, but not the same, they…
Ivan Talalaev
  • 6,014
  • 9
  • 40
  • 49
13
votes
1 answer

In continuous integration (headless env -> mac os X server), use a tool/lib which needs access to GUI, xvfb/display emulator/X11 forwarding

We have a Mac os x server (10.10.3) we use to run functional tests with Jenkins. We would like to use (in our tests) a tool/lib (sikulix for information) which uses under the hood java.awt.Robot class -java.awt.GraphicsEnvironment-. The problem is :…
Fanch
  • 3,274
  • 3
  • 20
  • 51
13
votes
3 answers

Setting a resolution for xvfb-run and wkhtmltopdf / wkhtmltoimage

I'm trying desperately to give xvfb-run some resolution arguments to take screenshots of websites with wkhtmltox in different resolutions. I'm using both xvfb-run and wkhtmltox on CentOS. xvfb-run --server-args="-screen 0 1024x768x24" wkhtmltoimage…
Tomukas
  • 155
  • 1
  • 2
  • 8
12
votes
2 answers

xvfb-run: line 171: kill: (25939) - No such process

All automated test runs successfully. but xvfb issue causes the build failure in Jenkins. I have used below commnad in ExecuteShell option available under Jenkins to run my test cases on headless browser /usr/bin/xvfb-run…
vish
  • 901
  • 1
  • 7
  • 20
12
votes
3 answers

How to avoid hanging Xvfb processes [while using PyVirtualDisplay]?

Trying to find how to avoid hanging Xvfb processes in our Python application, when using PyVirtualDisplay. The essential problem is that calling display.stop() (see code sample below) does not seem to properly shut down the Xvfb…
Juan Carlos Coto
  • 11,900
  • 22
  • 62
  • 102
11
votes
0 answers

Is xvfb (with Mesa 19.2) compatible with Vulkan?

I'm trying to run a Vulkan-based graphical application on a headless Ubuntu 19.10 virtual machine, via xvfb. Starting from a bare Ubuntu 19.10 image (created using lxc), I prep the machine as follows: > sudo apt update > sudo apt install -y xvfb…
vpradeep
  • 746
  • 1
  • 6
  • 14
11
votes
2 answers

Xvfb on Windows

I'm using pyvirtualdisplay to run a test with a headless Firefox browser. This is the code I'm using : from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from pyvirtualdisplay import Display display=…
Ralk
  • 443
  • 1
  • 6
  • 17
11
votes
2 answers

How to run selenium tests in headless mode on Mac using Webdriver with firefox 17.0.1

How to run Automated selenium tests in Mac OS 10.8 with firefox 17.0.1 using Xvfb(X-virtual frame buffer) Anyone help me regarding this configuration.
user3469434
  • 129
  • 1
  • 4
11
votes
1 answer

Google ChromeDriver can't run in xvfb in EC2 server, errors out as soon as sendkeys() is called

I am getting following error when I try to run my selenium code to launch chrome driver and test signin functionality in EC2 Box. I run Xvfb server like this, in another terminal Xvfb :1 -screen 0 1366x768x24 -ac. I have also added export DISPLAY=:1…
11
votes
2 answers

How to test JavaFX 2 in a headless environment?

I am trying to automate testing for a JavaFX 2 application running on Java 7u6 with the integrated JavaFX 2.2. To that end, I have built and integrated Jemmy3 and JemmyFX into my build environment. A simple smoke test runs on all relevant OSs. As a…
Urs Reupke
  • 6,791
  • 3
  • 35
  • 49
10
votes
1 answer

how to capture html5 video programmatically (headless)

I am trying to capture html5 video with js/css effects on it programmatically. I tried a couple of methods; First I find this great blog post and implemented it. Everything was perfect till I found that phantomjs is not supporting html5 video tag…
ygk
  • 550
  • 1
  • 7
  • 17
1
2
3
36 37