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

problem in spawning Xvfb, server already running

I'm trying to run 2 cypress docker container in parallel using node js spawn docker run -v path/to/ws:/e2e -w /e2e --network host cypress/included:8.0.0 --spec 'cypress/integration/cytorus-cache/1.feature' docker run -v path/to/ws:/e2e -w /e2e…
Amit Kumar Gupta
  • 7,193
  • 12
  • 64
  • 90
4
votes
0 answers

Azure Pipeline job script /usr/bin/xvfb-run: cannot create /dev/stdout: No such device or address

I created an Azure Agent in my kubernetes cluster using https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops. I can run hello-world style pipelines on it, the agent is up and running. I have unity-editor installed…
MrAkroMenToS
  • 503
  • 1
  • 5
  • 9
4
votes
0 answers

Xvfb & Docker - display suddenly stops working

I need to run XVFB in a docker container in order to make a puppeteer web scraper work in headful mode. Here is my Dockerfile: FROM node:15.11.0 RUN mkdir /code WORKDIR /code ADD . /code/ RUN apt-get update RUN apt-get install -y xvfb RUN curl…
botechat
  • 41
  • 1
4
votes
0 answers

Xvfb-run keyboard detection

I'm testing xvfb-run possibilities and I display the famous trex game in a chromium tab on a specific DISPLAY with this command line : $ xvfb-run -n 1 -f ~/.Xauthority --server-args='-screen 0 1600x1200x24 -shmem -listen tcp' chromium-browser…
Ryctus
  • 109
  • 2
  • 12
4
votes
1 answer

End to end test of electron app on Windows

What I am trying to achieve: I'd like to set up an electron project with a proper headless end-to-end testing configuration. Issues encountered Spectronjs seems to be the solution to achieve so. However there is no configuration to prevent the…
joeyj
  • 535
  • 1
  • 6
  • 22
4
votes
0 answers

Selenium chromedriver with headless mode fails to start when executed from SSH

I have looked for similar questions, but couldn't find any. I'm trying to run chrome browser in headless mode (with Selenium) on a CentOS 7 platform. The site works with SSL (I had to download and install the certificate locally on the machine that…
Chen A.
  • 10,140
  • 3
  • 42
  • 61
4
votes
2 answers

Python Selenium Geckodriver Connection refused

I spent hours trying to make Selenium works with Python no luck this error message selenium.common.exceptions.WebDriverException: Message: connection refused this is the example I have used:- from pyvirtualdisplay import Display from selenium…
Salem
  • 654
  • 7
  • 24
4
votes
1 answer

Protractor e2e tests with bitbucket pipelines

I already have all e2e tests written and they run successfully on my local machine and on the Codeship. I want to move our CI from the codeship to Bitbucket pipelines. So I created my own Docker image with testing environment. When I run docker…
4
votes
2 answers

x11vnc display cursor and cursor motion

Well, that question already been asked, however my environment is slightly different. I've robot that moves mouse inside x11vnc session. I'd like that cursor motion to be properly displayed with vncviewer (tigervnc-1.4.2-r2). Seems nothing…
Archer
  • 5,073
  • 8
  • 50
  • 96
4
votes
2 answers

Install firefox on elastic beanstalk using ebextensions config?

I need to install firefox on my elastic beanstalk deployment. How can I use the ebextions config to install firefox? I have to run headless firefox with Xvfb for generating screenshots from a URL.
Vineet
  • 1,139
  • 1
  • 11
  • 20
4
votes
1 answer

wkhtmltopdf "file output vs stdout" on ubuntu with x server (xvfb-run)

This doesn't work echo '

Hello

' | /usr/bin/xvfb-run -a /usr/bin/wkhtmltopdf - - > ~/notworking.pdf But this works: echo '

Hello

' | /usr/bin/xvfb-run -a /usr/bin/wkhtmltopdf - ~/working.pdf Please notice how the files are being created…
Jigar
  • 3,256
  • 1
  • 30
  • 51
4
votes
0 answers

Raspberry Pi + Selenium + Headless Firefox/Iceweasel - Can't Load Profile

Goal: Efficient headless browsing (with Python 3) for the Raspberry Pi What I've Tried: (using pip-3.2) Installed: selenium v2.45.0, pyvirtualdisplay v0.1.5 (using apt-get) Installed: xvfb (latest I think is v1.12.4?), iceweasel v31.5.3 Python 3…
Connor
  • 670
  • 3
  • 9
  • 29
4
votes
1 answer

Run Safari browser headlessly using xvfb on Mac

How do I run my jstestdriver test cases headlessly on Safari browser on OSX platform? I am able to achieve the same on Linux by using xvfb-run command. However, there is no such wrapper command available in OSX. I tried executing the following 2…
Maya
  • 95
  • 1
  • 3
  • 7
4
votes
1 answer

How to get PID of process when using XVFB via Pyvirtualdisplay?

Trying to find the PID of a Display object when creating it using Pyvirtualdisplay. The display an Xvfb virtual framebuffer. We have tried looking at the .pid property, but it is not present. Also, the .process property is non existant. Both…
Juan Carlos Coto
  • 11,900
  • 22
  • 62
  • 102
4
votes
3 answers

Xvfb IO Error: client killed

I'm running the following pyqt application on an xvfb server on amazon ec2 ubuntu 12.04, I get the correct ouput from the qt application but I always get the aforementioned error when the app is done. Why am I getting this error? I think it may be…
Archetype2
  • 97
  • 1
  • 10