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

Selenium hanging with xvfb

I am attempting to run automated selenium headless tests, and I'm running into the issue where the tests hang for some inexplicable reason. The full snippet is on pastebin, but the relevant portion of the code is reproduced below: # stress testing i…
mzhang
  • 392
  • 3
  • 12
2
votes
1 answer

Have xvfb-run as a background process and logout

I'm trying to run a console server application that needs xvfb-run to run in the background. It works but when I logged out of my session the whole process stops and I can't connect to my application anymore. I already tried using nohup, & at the…
scottyp
  • 295
  • 1
  • 4
  • 13
2
votes
1 answer

dryscrape - connection refused while creating new session after first one

I'm using dryscrape to scrape some HTML data from different pages. It's all part of a django application, but I found this problem appears while using python shell as well. Problem with second connection. I'm using: Python 2.7.6 (default, Mar 4…
Mateusz Knapczyk
  • 276
  • 1
  • 2
  • 15
2
votes
2 answers

running xvfb-run returns missing extension RANDR

When running a program returns an missing extension RANDR # xvfb-run ./a.out Xlib: extension "RANDR" missing on display ":99".
clarkk
  • 27,151
  • 72
  • 200
  • 340
2
votes
1 answer

How to configure xvfb default installation on Jenkins startup?

I am setting up a Jenkins instance in Docker. I am using /usr/local/bin/plugins.sh to install the plugins. I am copying groovy scripts to /usr/share/jenkins/ref/init.groovy.d/ to initialize some configuration. I can't figure out how to initialize…
chrish
  • 2,352
  • 1
  • 17
  • 32
2
votes
1 answer

unable to click on a list element with in

I have a list of elements within nav tag. I want to click on first list element. My HTML is given below:
2
votes
1 answer

Using ffmpeg with xvfb renders a cropped version of the screen

I'm using the following command to render a video of a chrome browser running inside a virtual frame buffer (using xvfb): ffmpeg -f x11grab -i :5 -s `DISPLAY=:5 xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 30 tests.mpg When I omit the…
Jeff Huijsmans
  • 1,388
  • 1
  • 14
  • 35
2
votes
1 answer

How to use Xvfb + protractor + Gulp

I need to use gulp to execute xvfb and protractor. Gulp runs xvfb, but when gulp run protractor it don't use the xvfb that I started. Another thing that I don't know is how to stop a task that is running, for example xvfb task to stop after run…
Rfranca
  • 53
  • 7
2
votes
2 answers

Grunt + Protractor - Task "shell:xvfb" not found

I'm trying to use grunt to run Xvfb and my protractor tests, but when I executed my Task protractor-xvfb, I've got this return: Running tasks: protractor-xvfb Warning: Task "protractor-xvfb" not found. Use --force to continue. Aborted due to…
Rfranca
  • 53
  • 7
2
votes
1 answer

Enable java plugin in Firefox on a selenium server running on a Ubuntu machine

I setup a selenium server to run on a ubuntu machine remotely. My test is written in Java and it looks like this: (...) // setup the WebDrive DesiredCapabilities dc = DesiredCapabilities.firefox(); dc.setCapability(FirefoxDriver.PROFILE,…
2
votes
0 answers

Xvfb - RHEL 5.4

I am trying to initialize a display using Xvfb and am running into this error. Can you help me resolve this error? -bash-3.2$ Xvfb :001 -ac _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6 _XSERVTransOpen: transport open failed for…
Balaji
  • 39
  • 4
2
votes
0 answers

Headless Selenium not Recording Video

I'm using the Headless gem to create a headless session using xvfb and to record the session using ffmpeg. I'm not able to save the video created by the headless gem. I'm including the relevant snippets of my code and the…
TIMBERings
  • 688
  • 1
  • 8
  • 28
2
votes
1 answer

Jenkins - Xvfb Plugin - Start socket error

Everything was working good until today, but now I'm seeing an error while my Jenkins (1.585) job, which is running/using Xvfb plugin, it's giving me the following error. Any idea, why it's coming. I tried many times. 15:00:07 Xvfb starting$ Xvfb…
AKS
  • 16,482
  • 43
  • 166
  • 258
2
votes
2 answers

Xvfb, Jenkins, Selenium tests - Capture Screenshots of all pages

I'm trying to find some clues on the following issues and not able to find good help online. I'm running Xvfb (X virtual frame buffer), firefox on a Linux machine in headless mode. Xvfb main service is up and running and DISPLAY variable is…
AKS
  • 16,482
  • 43
  • 166
  • 258
2
votes
2 answers

How can I run Selenium Webdiver test cases(Maven Project) in virtual server space through Jenkins with Headless browser?

I have one project which is based on maven.It is run correctly in local machine with mvn clean install exec:java command. This is my Pom.xml to run maven project.
Sagar007
  • 848
  • 1
  • 13
  • 33