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
1
vote
1 answer

Error in running cucumber-jvm selenium test cases in headless mode under jenkins build

Background I have a project desgined in spring-boot and maven. It contains cucumber-jvm selenium test cases which I want to run in headless mode in jenkins build. To do so, I have installed XVfb on jenkins build machine and also have made sure that…
Kelsadita
  • 1,038
  • 8
  • 21
1
vote
0 answers

Splinter/Selenium running on Flask / Uwsgi does not see headless display

So here's my setup: Using a flask server with uwsgi, and through a controller action, calling a python script that uses splinter (which uses selenium) to automate the gui. The web server doesn't have a display, so I'm using xvfb. Sshing into the…
1
vote
1 answer

Xvfb and thucydides/Selenium default path to run Firefox

CI Jenkins is running on CentOS headless machine under non-root user. Xvfb packege is installed, when I try the hint from How can I specify a display?, i.e. manually set in the console export DISPLAY=127.0.0.1:0 Xvfb :0 firefox & and it works -…
Eljah
  • 4,188
  • 4
  • 41
  • 85
1
vote
2 answers

Selenium FirefoxDriver in Headless get error

I'm getting the following error when I try to open the Firefox in headless mode: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows: (process:27527): GLib-CRITICAL **: g_slice_set_config: assertion…
NeoRamza
  • 151
  • 1
  • 11
1
vote
1 answer

Error running selenium ruby script through xvfb-run

What I'm trying to do Use selenium and its ruby bindings to open chrome and read a value from the DOM. This portion works great however I need to run it on a linux server headlessly. Seemed easy enough so I ran it using xvfb-run using this…
Kylee
  • 1,625
  • 1
  • 31
  • 54
1
vote
0 answers

XVFB, Debian Wheezy, and x-ttcidfont-conf

I am trying to screencapture some non-us (Chinese, Russian, etc.) sites using Selenium with PhantomJS via Python running on Debian Wheezy. When I screencapture non-us sites, the characters show up as little boxes (screenshot attached). Images and…
Malcolm
  • 99
  • 1
  • 5
1
vote
1 answer

Nohup run silenium webscraper in Ubuntu ec2

I have a web scraper that uses selenium which I want to run on my Ubuntu EC2 in the background event after I log out, so I am trying to use nohup. The current code I have is: webscrape.py: from pyvirtualdisplay import Display from selenium import…
Koba
  • 1,514
  • 4
  • 27
  • 48
1
vote
0 answers

Xvfb PyQt5 Xlib: extension "RANDR" missing on display

I;m trying to run untitests for my PyQt5 application on Jenkins. I've setup job and configure Xvfb with option +extension RANDR Here is output of starting Xvfb: Xvfb starting$ Xvfb -displayfd 2 -screen 0 1280x1024x24 -fbdir…
Nikolai Golub
  • 3,327
  • 4
  • 31
  • 61
1
vote
0 answers

Setting screen resolution for Xvfb in AIX machine

How do you set the screen resolution for the Xvfb server?screen resolution for the Xvfb server is 100X100.I would like to change screen resolution for the Xvfb server as 90x90 . Please tell me how to change screen resolution for the Xvfb server in…
prathap
  • 11
  • 5
1
vote
2 answers

webpage screenshot using wkhtmltoimage is not able to render HTML5 & utf8 in Amazon VPC ubuntu 12.04.4

Scenario: I am trying to take the screenshot of the new web application created by the user using a background process. I am using wkhtmltoimage with Xvfb. Issue: Well the screenshot process is working perfectly fine but the issue is utf8 & HTML5…
Hbksagar
  • 548
  • 7
  • 17
1
vote
0 answers

Can't get x-ttcidfont to load correctly in ubuntu

I'm using the command below in coordination with wkhtmltopdf to generate screenshots from html/web pages. I can't get xvfb to run, it just hangs. I got the following error [dix] Could not init font path element…
Brian Putt
  • 1,288
  • 2
  • 15
  • 33
1
vote
1 answer

cannot connect to X server :99

I am using wkhtmltopdf (wkhtmltopdf 0.11.0 rc1) for generating pdf using x-server (xvfb). It was working for days but suddenly started showing “cannot connect to X server :99” error on one of our server. ubuntu@servername:~$ xvfb-run…
Hemant Thorat
  • 2,386
  • 20
  • 14
1
vote
1 answer

How to get selenium and xvfb to work in ubuntu

My goal is to run my test in behat which has a driver for selenium using mink library. I am able to get this done on my local dev machine. However on my server I need to use xvfb for headless testing. I read this article. However below are the…
Vishal Khialani
  • 2,557
  • 6
  • 38
  • 49
1
vote
0 answers

Selenium, PHPUnit and xvfb setup on ubuntu always uses firefox

I've set up selenium, PHPUnit and xvfb on my ubuntu server. This is my TestCase: class WebTest extends PHPUnit_Extensions_SeleniumTestCase { public static $browsers = array( array( 'name' => 'Firefox on Linux', …
ACNB
  • 816
  • 9
  • 18
1
vote
2 answers

xvfbwrapper import error with alternate python installation

xvfbwrapper requires python2.7 or up. I have a script that does this: from xvfbwrapper import Xvfb I have python2.7 installed as an alternate installation of python because my OS (centOS 6.4) requires 2.6. When I run the script like this:…
brando
  • 598
  • 6
  • 11