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

xvfb-run : command not found in chrome:headless mode

I am trying for the CI integration of testcafe in GitHub Actions. Our runner does not have xvfb. So we are trying to run in headless mode to avoid xvfb error. But we are still getting: Command failed: xvfb-run --server-args="-screen 0 1280x720x24"…
0
votes
0 answers

Does the incoming codec or audio-video sync matter when encoding from Xvfb using FFMPEG?

How I'm capturing: I'm using Xvfb on Linux, to capture a video and audio from an app that is also running on Linux. I'm using -f x11grab when capturing that video headlessly from Xvfb's frambuffer using FFMPEG, and encoding it using a few other…
Nav
  • 19,885
  • 27
  • 92
  • 135
0
votes
1 answer

xwininfo -tree always shows 0 children on lambda container

As the title states, I'm finding that whenever I issue xwininfo -tree on a container running Ubuntu in lambda, there are never child screens, though when I run the same container locally it works fine (listing all the windows used by said…
fullStackChris
  • 1,300
  • 1
  • 12
  • 24
0
votes
1 answer

Cannot bind X UNIX socket within Docker container

I am trying to run Xvfb within a Docker container, but it is failing with the error: $ Xvfb :0 -nolisten tcp -screen 0 1024x768x24 _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server…
rgov
  • 3,516
  • 1
  • 31
  • 51
0
votes
1 answer

How to run Xvfb with xvfbwrapper on AWS EC2 to records screen of selenium headless session

I have a problem running selenium sesion with Xvfb to record video file with sesion. Below is my session and wrapper from selenium import webdriver from xvfbwrapper import Xvfb class TestPages(unittest.TestCase): def setUp(self): …
PiotrK
  • 357
  • 3
  • 13
0
votes
1 answer

xvfb-run: usage error: need a command to run after using `xvfb-run --auto-servernum`

I'm trying to run a puppeteer instance with headless: false inside a VM, so I need an interface, that's why I'm using xvfb. But after trying to run the command: xvfb-run --auto-servernum I get: xvfb-run: usage error: need a command to run even…
John Balvin Arias
  • 2,632
  • 3
  • 26
  • 41
0
votes
0 answers

xvfb parallel run on same node inside Jenkins

I configured the UI automation tests (serenity+cucumber) to run in parallel. Some of the tests fails randomly on the server where the xvfb display plugin is used. The tests are running parallel all right locally with regular browser. Also the tests…
0
votes
0 answers

Puppeteer works headless but not headful (JS)

I am running puppeteer on a Linux VM, which does not have a display; however, I am using xvfb to remedy that. For some background: The overall goal of this program is to navigate to a page and authenticate using puppeteer. From there, I audit…
0
votes
0 answers

Xvfb in Selenium: RenderCompositorSWGL failed to display the default frame buffer, no dt

When running Java code or starting the browser manually via the command line, I get this: [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt java code: src/main/java/com/app/HelloWorld.java package com.app; import…
0
votes
0 answers

How to use Selenium with Firefox browser when I have no display

I am newly assigned to this shared hosting (ssh access only). Have no sudo or yum facility. I am trying to scrape some data from a dynamically loaded website [So, can't use scrapy or bs]. When I am using Selenium, it gives an…
0
votes
1 answer

Getting xvfb to work in jupyter notebook on M1 Mac

I am working with OpenAI gym on colab and using the following code to render the videos within Jupyter notebook based on this tutorial: https://colab.research.google.com/drive/1flu31ulJlgiRL1dnN2ir8wGh9p7Zij2t import gym from gym import logger as…
0
votes
0 answers

Open an Xvfb server from C

I heard of this technology called Xvfb, which is used to create virtual X sessions. The command to do this is Xvfb :1, or replace :1 with any display you like. My question is: how can I do this within a C program? I am aware of the system()…
Ank i zle
  • 2,089
  • 3
  • 14
  • 36
0
votes
0 answers

How to download a file by clicking a link in a webpage through selenium+java in docker container

I have one selenium + java scenario which clicks a link in the webpage and that would download the file to the directory. I have done few things which working fine in my local MAC though I need this only for this particular scenario. However it does…
asinha
  • 337
  • 1
  • 6
  • 24
0
votes
0 answers

Is there a way to stream xvfb output?

I have automated robotframework tests that runs via xvfb on a jenkins agent, using firefox. Sometimes I want to check what robot actually see for debugging. I have found a solution to capture xvfb output as a video, but it would be great if I could…
0
votes
0 answers

How to open selenium webdriver in Xvfb() display on headless server without '--headless' option

I recently ran into a problem when trying to scroll websites on a server without GUI, the problem is I can't use ('--headless') option to be able to complete my tests, so I try to open Xvfb fake window not to use this ('--headless') option. Strange…
edgar
  • 1
  • 1