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

PHP and Apache : shell_exec(wkhtmltopdf with xvfb) command doesn't work

I try to run the wkhtmltopdf (0.11.0 rc1) with php (5.4.2) on apache (2.4.2). When I try to launch wkhtmltopdf-i386 --use-xserver http://www.google.com google.pdf 2>&1, I can find my pdf. Here my php code
alexgindre
  • 243
  • 1
  • 4
  • 11
1
vote
2 answers

Xvfb top-left adjustment

I have an X11 virtual frame buffer that I would like to run just one particular program in so that I can connect and disconnect from either my desktop or tablet without closing the program (and also without running a full desktop manager).…
Ron E
  • 2,214
  • 2
  • 16
  • 14
1
vote
2 answers

xvfb with Selenium. Display is already in use error

I wanna run selenium tests from TeamCity using Maven at Linux server without display. While running Selenium tests I'm getting the following error in TeamCity: Failed to execute goal org.codehaus.mojo:selenium-maven-plugin:2.3:xvfb (xvfb) on…
Dmitriy Sukharev
  • 1,084
  • 2
  • 11
  • 20
1
vote
0 answers

[Selenium]Arbitrary error with Firefox Binary

I'm running some automated Selenium tests on my Debian server, every hour. But, randomly, I have this error : Failed to connect to binary FirefoxBinary(/usr/lib/iceweasel/firefox-bin) on port 7071; I run Selenium with a jar file, and I'm using…
Bedu33
  • 613
  • 1
  • 6
  • 17
0
votes
1 answer

Error while using selenium over Xvfb (headless)

I have Ubuntu machine running Xvfb and Selenium server standalone (v2.20.0). I'm trying to run my test by phpunit with selenium. I can see by the log its start session and trying to open google chrome but the browser doesn't open and its stuck in…
Dar
  • 401
  • 2
  • 7
  • 19
0
votes
1 answer

Running GWT Devmode with Xvfb on CentOS

I'm trying to run GWT Devmode with Ant on CentOS using Xvfb and I'm getting what appears to be a Java version error. The beginning of the stacktrace is [java] JVM args ignored when same JVM is used [java] Working directory ignored when same JVM is…
Kyle Baley
  • 580
  • 1
  • 5
  • 16
0
votes
0 answers

Python, Flask, Selenium, and Pyvirtualdisplay; can't find Xvfb

I'm trying to use Pyvirtualdisplay in my Flask backend, but it can't find Xvfb. This is my code: @app.route('/test-selenium', methods=('GET',)) def test_selenium(): display = Display(visible=0, size=(800, 600)) display.start() options =…
0
votes
0 answers

Xvfb and pulse audio not sync

I'm excited to introduce my new JavaScript server-side library called XFP Streamer, designed to handle recording and streaming Puppeteer window content. However, I'm currently facing an issue with audio synchronization, and I could really use some…
0
votes
0 answers

getUserMedia asking for camera/microphone instead of screen sharing

I want to record a Google Chrome browser session on docker+xvfb using screen sharing + webRTC. I start the share using this code: navigator.mediaDevices .getUserMedia({ video: { displaySurface: "monitor" }, audio:…
vuco
  • 161
  • 2
  • 6
0
votes
0 answers

xvfb-run: open separate tabs in the same screen

I am starting the selenium standalone server to run some UI tests in headless mode using Xvfb on a CentOS7 machine. Below is my command to start the server: xvfb-run --server-args="-screen 0 3024x1964x24" java -jar selenium-server-4.8.0.jar…
0
votes
0 answers

Github action -Can't call scrollIntoView on element with selector

I have a github action workflow to run webdriver ui tests. I am making use of ubuntu runner. But my test cases are not executed properly. Getting broken UI issue - Error: Can't call scrollIntoView on element with selector but this element selector…
Maxx
  • 709
  • 5
  • 11
  • 22
0
votes
0 answers

Browser not updating content on save in React - any solutions?

When I save my React files, the browser does not update the displayed content. Reloading the page also does not work. In order to see my changes I have to exit and run npm start again. I use: wsl vscode Chrome I've tried several solutions and I'm…
Eplepai96
  • 1
  • 1
0
votes
0 answers

Ubuntu 22.04 droplet: xvfb-run firefox -headless www.google.com produces error: RenderCompositorSWGL failed mapping default framebuffer, no dt

My goal is to scrape website using selenium/python via digitalocean droplet without using Desktop. But before anything else I need to run Firefox in headless mode using XVFB successfully and I have issues doing so. I use Firefox from apt package (I…
ielisman
  • 9
  • 1
0
votes
0 answers

Error: Navigation failed because browser has disconnected in puppeteer

I am running puppeteer with Chromium (v112) on a collection of websites. On some of the websites, i encounter the following error: STDERR: Error: Navigation failed because browser has disconnected! at new LifecycleWatcher…
0
votes
0 answers

How do you I fix the xvfb start error when building a docker image?

Is there also some solution for Windows OS for the service xvfb start error? I pulled code from github, built an image in docker and didn't encounter the error the first time I did it. After pushing it to github and pulling it again, started getting…
Andrei
  • 1