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

How to install Xvfb on RH8?

I need to install Xvfb on Redhat 8, however the usual way doesn't work: yum -y install xorg-x11-server-Xvfb No match for argument: xorg-x11-server-Xvfb Error: Unable to find a match: xorg-x11-server-Xvfb From here How to install Xvfb (X virtual…
automaton
  • 1,972
  • 5
  • 25
  • 40
2
votes
1 answer

NodeJS packages to handle parallel headless tests on linux box(es) with selenium grid like features?

I need to handle authenticated multiple users running parallel tests on the selenium standalone server, and discovered two webdriver clients on nodejs. There's webdriver-js and wd-js. Which is more active and reliable? Any experiences? I'm a bit…
KJW
  • 15,035
  • 47
  • 137
  • 243
2
votes
1 answer

How to enable xvfb for an express server running inside a docker container?

I have a express server running inside a docker container. Once a user makes a REST call to an endpoint, it should make multiple in-memory screenshots of a randomly generated mesh from different angles using Babylon.js, do some image processing on…
Hamed
  • 1,351
  • 9
  • 23
2
votes
1 answer

Is it possible to move a mouse cursor to an xvfb virtual display using perl?

I've been directed to try and make a small proof of concept. In order to make it work, I need to be able to move a mouse onto an xvfb-generated virtual display. Is this possible? I can't seem to find any way to get the mouse onto the virtual screen,…
Kulahan
  • 512
  • 1
  • 9
  • 23
2
votes
0 answers

ffmpeg record Xvfb and pulseaudio got sync problem

I using ffmpeg to record Xvfb and audio from pulseaudio. Sometime the video output has the audio ahead of video ( sometime normal - it happen randomly ). The flow like this ffmpeg |-> video : Xvfb -> Firefox |-> audio : pulsesaudio So I don't know…
boygiandi
  • 630
  • 10
  • 20
2
votes
1 answer

Blank page on headless Selenium tests run with Jenkins

Headless Selenium tests can be well run on my machine (yup, I should definitely move in this ideal place where problems doesn't exist). However, when I launch those tests via Jenkins, none of the page elements are found. I took a screenshot to…
Zoette
  • 1,241
  • 2
  • 18
  • 49
2
votes
0 answers

Is there a command line flag to unblock autoplay of video in firefox?

I am trying to run a firefox instance with the help of Xvfb-run and play video in a tab. The video is set to autoplay on load, but firefox(>=66) has the default set to block audio and video. I want to set that flag to false, this could be done using…
John Vera
  • 59
  • 1
  • 3
2
votes
2 answers

(using 'imgkit' on Ubuntu server) wkhtmltopdf: could not connect to any X display

I have a python script running on a remote Ubuntu server. At some point in my code, I create an HTML file which I then convert to a png. I therefore elected to use imgkit, which does the job beautifully well (I tested my code on my Mac OS before…
Berti1989
  • 185
  • 1
  • 14
2
votes
0 answers

Is there still a way to install xvfb on OSX 10.11.6,

I need to run xvfb-run on a OSX 10.11.6, under tomcat server. When I run > brew install xvfb I get the following : Error: No available formula with the name "xvfb" I have installed XQuartz which has an xvfb extension. $ xvfb remains silent and…
Charles Mosndup
  • 600
  • 6
  • 19
2
votes
1 answer

how to record pyvirtualdisplay session

I have a web scraper using Selenium in Python 3, I need to record a video of the session in order to do some debugging. I first create Xvfb virtual display: from pyvirtualdisplay import Display display = Display(visible=0, size=(1000, 1000)) …
muliku
  • 416
  • 3
  • 17
2
votes
2 answers

How to attach pyautogui to the virtual display?

How do I attach pyautogui to the display in multithreaded mode? In the example of my code, pyautogui always has access to the upper display. Is it possible to have pyautogui control on each display? import os from selenium import webdriver from…
slaw
  • 55
  • 1
  • 10
2
votes
1 answer

Unable to run Firefox in headless mode

I am trying to run a Python + Selenium script in headless mode with Firefox using Xvfb but I am getting errors. There is not much documents or guides available for Xvfb to troubleshoot the issue so looking for assistance here. Environment info: OS:…
2
votes
0 answers

mouse is not moving on Docker with gui app

I'm currently working on a system that is able to run a game on a vm and stream it to a client. I wanna try to do the same thing on a Docker container. I know that it's not the purpose of a container, but I wanna do some research about accelerating…
Ryctus
  • 109
  • 2
  • 12
2
votes
1 answer

Change default screen resolution on headless ubuntu

I am running a jenkins instance on a headless ubuntu server. For some of the GUI tests, I get the following error org.assertj.swing.exception.ActionFailedException: The component to click is out of the boundaries of the screen How can I set my…
2
votes
1 answer

fluent ffmpeg how to set X11 display as input

With command line i can easily capture an Xserver display, trying to reproduce this with fluent-ffmpeg for node videoCommand.addInput(':99.0+0,150') .withSize('720x480') .withFpsInput(60) .withFpsOutput(60) .addInputOption('-y', '-f…
direxit
  • 367
  • 3
  • 18