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
1 answer

Automatically close xvfb after Selenium test using pyvirtualdisplay

I am running Selenium tests headlessly in Firefox through pyvirtualdisplay, and earlier encountered an unexpected error (connection refused) coupled with an extremely long response time between 75 and 80 seconds. After some experimenting, it turned…
user242007
  • 286
  • 3
  • 13
0
votes
1 answer

Xvfb + ffmpeg/aconv not working

I'm trying to capture screen using xvfb + aconv. I''m using docker to run image. I've tried almost everything to make it working, different ubuntu images Debian Centos, different images from docker hub. My last build is simple ubuntu:trusty(14.04)…
ipauler
  • 48
  • 1
  • 11
0
votes
1 answer

No keyword with name 'Start Virtual Display' found

I've been doing some research into headless testing with Robot Framework and I've come across Xvfb. So I installed it with: pip install robotframework-xvfb Then in my test case file, I've added: *** Settings *** Library Selenium2Library Library …
jahn94
  • 3
  • 2
0
votes
1 answer

cannot start selenium.WebDriver firefox in java in a box with no UI

I have a something like: import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; class Gecko { ... FirefoxBinary ffB = new FirefoxBinary(); ffB.setEnvironmentProperty("DISPLAY",…
y.z
  • 11
  • 6
0
votes
0 answers

After crash google-chrome start in window mode

I have some python script whitch I start on server debian 9 from difrent user, whitch i created by command useradd in xvfb session: su -l username -c 'xvfb-run -a --server-args="-screen 0 1240x1024x24" python /path/to/python_script.py' in scrip i…
vityapro
  • 178
  • 1
  • 13
0
votes
2 answers

RUN command seems not to work in Docker

My intention is to run a GUI jar file in Docker so I could automate commands with xdotool and may view it by x11vnc. This is my Dockerfile: # WEB 0.1 FROM ubuntu:14.04 RUN apt-get update \ && apt-get install -y \ default-jre \ x11vnc \ …
Paulo Henrique
  • 938
  • 1
  • 13
  • 19
0
votes
0 answers

Python selenium script does not open a browser on default display from the crontab

I would like to open a web page in a browser on raspberry by running a python selenium script every n hours from the crontab. Its a pretty standard script that works if I run it locally on that machine. So if i connect a keyboard to the raspberry…
raitisd
  • 3,875
  • 5
  • 26
  • 37
0
votes
0 answers

Watir _wait_until_present_ for a table element only times out the first time a test is run but succeeds for each subsequent test run

I'm getting a timeout error when waiting for table element to appear containing results of a query executed in the previous steps of a cucumber test scenario. The strange thing about this error is that it only happens the first time the test is run…
Costa
  • 45
  • 8
0
votes
0 answers

Getting chrome not reachable error when running maven project on ubuntu server

Getting below error when running maven project on ubuntu server from command line on mac machine , can anyone please help on how to resolve below issue: command used on ubuntu server: Xvfb :11 -ac & export DISPLAY=:11 mvn clean install -f…
Arpit Jain
  • 51
  • 3
0
votes
1 answer

How to run cucumber/selenium tests in Docker?

I am struggling to run my cucumber tests from a Docker image. Here is my setup: I use OSX with XQuartz to run an X11 session I use an Ubuntu 14 Vagrant image for development where I forward my X11 session I am trying to run a docker image with…
Igor Šarčević
  • 3,481
  • 1
  • 19
  • 21
0
votes
0 answers

selenium without display missing content

I am using django 1.10, selenium 3.4 and python 3.6. My PC is used to test if my code is accurate. Using Chrome webdriver The production service is on Amazon EC2 Ubuntu instance. Using Chrome webdriver as well but without display like…
user2869934
  • 1,419
  • 4
  • 13
  • 18
0
votes
1 answer

Xvfb is not hiding browser on macos

I need to run selenium tests without showing browser. On ubuntu it's working perfectly as I expect. But on mac OS (version 10.11): Xvfb is not hiding the browser. I start Xvfb in one terminal: $ sudo Xvfb :1338 Password: Initializing built-in…
Maxim Yefremov
  • 13,671
  • 27
  • 117
  • 166
0
votes
2 answers

Selenium test cases work in Firefox but not in Chrome - Headless Setup

After some time of plucking feathers on this, I have ran out of options. Im in the process of setting up a selenium based build server and had much success up to the point of introducing Google-Chrome. I'm at a point now where I can successfully…
Kamakazy
  • 111
  • 1
  • 5
0
votes
2 answers

Headless protractor tests don't plug on Xvfb

I'm trying to run Protractor tests both in command line and with Jenkins. Both fail with the same error. Command line I opened a prompt and launched webdriver-manager start In another prompt, I launched Xvfb :42 -ac -screen 0 1024x768x24 & In a…
Zoette
  • 1,241
  • 2
  • 18
  • 49
0
votes
1 answer

Why does ":project:testXlib" replace the ":project:test" Gradle task and how does that work?

Environment I'm currently trying to run JavaFX GUI tests via xvfb on multiple environments on Travis CI. I'm using Gradle to run these tests while using the TestFX and NestedRunner testing frameworks to write them. Before running the tests, export…
user4846512