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

Unable to open DISPLAY with JavaFX on ubuntu server

I have a simple Application which generates a png of a chart which is based on JavaFX. The app fails to run on displayless machine with the following exception, I don't need to render or display content on the console, just need to create the…
ycr
  • 12,828
  • 2
  • 25
  • 45
1
vote
1 answer

Automated tests too slow on Jenkins

I'm running Selenium Webdrive tests on Jenkins (Debian 9 without GUI) using Chromedriver and xvfb, and they are extremely slow as compared to local execution. A click is done in 4 minutes comparing to 300 ~ 400 milliseconds on my local machine. …
Eric
  • 23
  • 6
1
vote
0 answers

getting "GDK_BACKEND does not match available displays" even though Xvfb display is present

I'm running selenium tests on headless firefox inside docker. For that I have installed firefox and Xvfb inside docker and export display using Xvfb command when I run the container. The issue is, when I run the docker container locally, selenium…
Girish
  • 11
  • 2
1
vote
1 answer

How to fix 'Program install error' related to Xvfb and selenium on a Mac?

I am trying to se a Mac (MacOS 10.13.3) to run selenium tests in an headless environment. I am doing basically the following: from pyvirtualdisplay impot Display display = Display(visible=0, size=(13660, 7680)) display.start() before invoking the…
Alex
  • 41,580
  • 88
  • 260
  • 469
1
vote
0 answers

cannot execute binary file (Xvfb) on mac os

I am using mac os and for some reasons I have to use Xvfb but I am getting the following error:- bash: /tmp/pck/Xvfb: cannot execute binary file
mayank
  • 460
  • 3
  • 15
1
vote
0 answers

Why does an element locator work when run visually and not when run with XVFB?

I'm running a suite of tests in Robot Framework, and while the code runs fine visually, it breaks when run on the XVFB via Jenkins. The point where the code breaks is Click Element xpath=//*[@id="FullContentPane"]//a[2]. When run visually, this…
Brandon Olson
  • 619
  • 2
  • 6
  • 19
1
vote
0 answers

firefox.NotConnectedException Unable to connect on port 7055 after 45000

When I tried to run selenium test using Xvfb i am getting this below error org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host localhost.localdomain on port 7055 after 45000 ms. Firefox console output: Error: cannot open…
1
vote
0 answers

Protractor browser.switchTo().accept() and headless Chrome timeout issue

We've recently switched to using headless Chrome with our Protractor tests. Everything works pretty well except while testing system modals. Wondering if this is supported running Chrome headless? And, if so, hoping someone has some insight as to…
bryonbean
  • 173
  • 1
  • 11
1
vote
0 answers

Unable to run code in screen

I have following code to execute some commands on a virtue screen: screen -R << EOF cd /home/users/devops_tester/apps/Selenium-Webdriver export DISPLAY=:99 npm start EOF It gives me an error: Must be connected to a terminal. How can I…
zhangjinzhou
  • 2,461
  • 5
  • 21
  • 46
1
vote
0 answers

Running RobotFramework Selenium tests with Xvfb

Following the usage as specified for XvfbRobot, I'm running into some issues. I'm trying to run robot tests through flask, which seems to be working, but I'm getting stuck with, "No browser is open," though the virtual display seems to start…
Drew Ogryzek
  • 350
  • 3
  • 17
1
vote
0 answers

Xvfb appears like already running, but no lock found

I'm trying to launch Xvfb on a specific display, but I get this error message: (EE) Fatal server error: (EE) Server is already active for display 42 If this server is no longer running, remove /tmp/.X42-lock and start again. (EE) But when…
Zoette
  • 1,241
  • 2
  • 18
  • 49
1
vote
1 answer

Using VMRUN to execute selenium process in Ubuntu VM without XVFB

I'm using vmrun.exe from VMware Workstation to start an Ubuntu 16 desktop VM and launch a Java selenium Firefox process in it. I can start and launch the script however I would like the selenium process to be visible in case a user would like to…
conteh
  • 1,544
  • 1
  • 17
  • 39
1
vote
1 answer

The pyvirtualdisplay Error in python

I'm getting the following error when i try to run the python code File_1.py actually import File_2.py to call the function. Traceback (most recent call last): File "File_1.py", line 1, in import File_2 File…
1
vote
1 answer

Error running the node module 'run-headless-chromium' on Mac

I have installed run-headless-chromium but when i use the command './run-headless-chromium.js protractor.conf.js I get the error: Xvfb not found. Please install xvfb before trying again. I have run the command npm install xvfb and can see it in my…
John123
  • 85
  • 9
1
vote
2 answers

Is there a way to run QtWebEngine in headless mode

Im using QWebEnginePage to get content of some webpage. In the .pro file i have mentioned CONFIG-=gui. However when i run the program in a headless system, it complains of being unable to connect to display:0. I also noticed that it requires…
Pragalathan M
  • 1,673
  • 1
  • 14
  • 19