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

making chrome work headless

I want to get chrome to work headless with selenium on an ubuntu server so that I can run tests against it. here's the commands I ran to set up chrome headless using xvfb. Am I missing anything? apt-get update && apt-get upgrade apt-get install -y…
Chris Hansen
  • 7,813
  • 15
  • 81
  • 165
1
vote
1 answer

Xvfb and Chrome Selenium driver print a lot of information to a log and sometimes crashes

I have a python script where I'm using the Chrome selenium driver. Sometimes it crashes, but I haven't found a cause yet. Apparently, it's due to Xvfb. Here's how I initialize a driver: display = Display(visible=0, size=(800,…
Saurabh
  • 189
  • 1
  • 3
  • 10
1
vote
1 answer

Memory leaks in a python script, Xvfb is suspected

On a linux server I'm using Chrome/Selenium with Xvfb in a python script. Sometimes the script crashes for other reason and thus, according to what I see in the dashboard of digital ocean, the ram consumption of "Xvfb" increases up to almost 80%…
Saurabh
  • 189
  • 1
  • 3
  • 10
1
vote
0 answers

Black square is displaying on screenhot taken by Selenium-JAVA-Chrome and Xvfb

I am capturing the screenshot using Selenium, JAVA, Chrome and XVFB (on virtual screen), but sometimes (randomly I am getting black square on that screenshot). Please refer below screenshot - Could you please help me out. Thanks.
php
  • 61
  • 1
  • 1
  • 5
1
vote
1 answer

How do I use Xvfb to run protractor headless on Jenkins with chrome?

I am trying to run my protractor program from Jenkins, but since Jenkins doesn't have a display, I need to run chrome in headless mode. Since chrome doesn't have headless mode, I need to emulate a display using xvfb. I followed a bunch of tutorials…
Katie
  • 45,622
  • 19
  • 93
  • 125
1
vote
1 answer

running Protractor on headless FF from jenkins with xvfb

Can't get my protractor running on remote server on headless mode. I'll be glad if anyone could help This is my qa server setting: Under /etc/init.d/xvfb script to stat Xvfb :99 export DISPLAY=:99 set in bash_profile ( echo $DISPLAY returns…
sou
  • 21
  • 3
1
vote
1 answer

flash player (video) doesn't load in selenium chrome webdriver

I am using selenium and xvfb to headlessly visit a webpage with google chromes webdriver (using google chrome, not chromium). The webpage has a flash iframe with a video in it. When I go to the page, everything loads properly except for the video.…
ApathyBear
  • 9,057
  • 14
  • 56
  • 90
1
vote
1 answer

video recording multiple instances of chrome driver

I use xvfb to open up a display and run selenium tests in parallel using chromedriver. so you can have multiple chromedrivers running at a time. how can I add video recording so that i can record each session separately? Is there a plugin I can use…
Chris Hansen
  • 7,813
  • 15
  • 81
  • 165
1
vote
0 answers

Selenium Grid, Xvfb node and Jenkins

Getting following error while running tests in firefox browser in Xvfb node using Jenkins job Starting Xvfb firefox setup FAILED CONFIGURATION: @BeforeMethod setUp("firefox", "http://xxxx:5555/wd/hub") org.openqa.selenium.WebDriverException:…
Saagar
  • 794
  • 3
  • 20
  • 41
1
vote
1 answer

Trying to run a racket program on an x virtual frame buffer

I'm trying to run a racket "universe" program on an x virtual frame buffer and I keep getting this error: ffi-lib: couldn't open "libfontconfig.so.1" (libfontconfig.so.1: cannot open shared object file: No such file or directory) context...: …
rmacnz
  • 61
  • 2
1
vote
0 answers

Maven+TestNG testing through Jenkins on Ubuntu

I have built a maven+testng testing framework project on eclipse. I installed Jenkins on my local host and ran my project in there till now without any problem. My OS is Windows 10. I also ran my project on different Windows OS machines without any…
1
vote
1 answer

Jenkins not installing Xvfb in Windows

I have several Selenium IDE tests which I'm trying run in Jenkins (it is running on Windows Server 2012 R2). I've followed all the steps described at Running Selenium tests in Jenkins and the only issue I have is that Jenkins does not install Xvfb -…
1
vote
1 answer

Unique assignment of Xvfb display to multiple concurrent Jenkins jobs

I have a build flow job in Jenkins that can execute concurrent builds. Each build in a single running instance of the job can run multiple UI tests, where each test set should run on a unique Xvfb port. I am using the Xvfb plugin. Conceptually…
1
vote
0 answers

Solving error in taking screenshot of an inactive window

I am currently trying to write a script to periodically take a screenshot of specific windows, active or inactive, given the window ID. Here is my script: #!/bin/bash # captureScreen.sh command window_title image_file DATE=`date -u…
pvas
  • 73
  • 5
1
vote
1 answer

Jenkins Firefox interface not rendering properly

I'm using dockerized jenkins and run Firefox headless with Xvfb. But when running the test modules they are not rendering properly. Bamboo run the same test case finely. all the environment factors are same. can anyone suggest me a way to get rid…
tinkerbell
  • 421
  • 4
  • 12