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

Convert existing rails cucumber capybara test stack to use headless gem?

I have an existing rails app with cucumber/capybara automated tests that run inside xvfb. I'd like to use the headless gem to get video capture of these tests but I don't know where to insert the headless.ly blocks so that it hooks ALL driver…
David Watson
  • 3,394
  • 2
  • 36
  • 51
1
vote
1 answer

Workaround needed: webdriver/maven tests should run on each deploy in jenkins, but

We have some webdriver/testng/maven/java tests that we need to run automatically after each deploy, but its been 4 days and I just cant get the damn thing to work headlessly using xvfb. And I do not have access to the server, and to Jenkins…
Kaloyan Roussev
  • 14,515
  • 21
  • 98
  • 180
1
vote
1 answer

Selenium with Xvfb and Jenkins throws TimeoutException

I'm trying to setup automatic Selenium tests with Jenkins on a Linux server. The problem is that all tests fail with: org.openqa.selenium.TimeoutException: Timed out after 60 seconds waiting for visibility of element located by By.linkText Each test…
Dani
  • 11
  • 4
1
vote
1 answer

Unable to get chrome driver working through jenkins

I am unable to get chrome driver working via Jenkins. My tests run fine from a terminal window but I wish to run them from Jenkins in headless mode. I have the latest recommended version of chrome driver installed and Chrome version 28.0.1500.71.…
1
vote
1 answer

GNOME Freezes Unless I Use Weird .xinitrc

Here's one for you - let's see if any Linux gods out there can explain this one. I am trying to start gnome-session on a Xvfb. I use startx -- `which Xvfb` :1 -screen 0 1024x768x24 & And in the .xinitrc file, I have at the end exec…
mriksman
  • 309
  • 3
  • 15
1
vote
1 answer

The browser appears to have exited before we could connect. The output was: mkdir: cannot create directory

I had a python script running successfully. The .py script would open a headless browser(pyvirtualdisplay & xvfb) and perform a task and then close the browser. I had an issue with xvfb processes being left open after the script is run. After its…
Cosco Tech
  • 565
  • 1
  • 4
  • 22
1
vote
1 answer

QWebFrame object has no attribute documentElement

My code: import sys import time from PyQt4.QtGui import QApplication from PyQt4.QtCore import QUrl from PyQt4.QtWebKit import * class Browser(QWebView): def __init__(self): QWebView.__init__(self) …
transilvlad
  • 13,974
  • 13
  • 45
  • 80
1
vote
0 answers

xvfb-run with melt hangs

We are using melt utility to flatten vidoes. in it there is a plugin called kdenlivetitle. this plugin imposes title text on video but it requires X server. for that we are using xvfb-run but it hangs in-between sometime. Below is the output of…
1
vote
0 answers

Run chrome headless on Selenium

I would like to run a selenium-test using headless chrome. First I downloaded the chromedriver and passed its location as parameter: null=open('/dev/null','wb') cmd =…
Kesandal
  • 1,263
  • 4
  • 11
  • 15
1
vote
1 answer

Selenium RC stuck at Checking Resource aliases

I am trying to use Selenium RC to run regression tests on a website. I created a test suite using the Selenium IDE tool and 3 tests associated with it. These tests run successfully within the IDE but when I try to run them using Selenium server, I…
atomey
  • 33
  • 6
1
vote
1 answer

Get pid from a java subprocess started with xvfb-run

I'm trying to get the PID of a java process started with xvfb-run. When started without xvfb-run, I use $! to get the PID of the last backgrounded process but as soon as I use xvfb-run I obviously get the PID of xvfb-run. Here is the code: #!…
1
vote
0 answers

Running Selenium Webdriver on Xvfb - firefox error

I'm trying to run some automated Selenium tests on a server at work running on centros with firefox 10.0.12 installed as follows: Xvfb :99 -screen 0 800x600x16& export DISPLAY=:99; java -jar ./autotesting/selenium-server-standalone-2.28.0.jar& php…
odo23
  • 11
  • 3
1
vote
0 answers

Getting Error : Error: cannot open display: IP:192.168.72.112

I am using selenium while running selenium code i am getting error: WebDriverException: Message: 'The browser appears to have exited before we could connect. The output was: Error: cannot open display: IP:192.168.72.112\n' I am running my code…
Surya Gupta
  • 125
  • 7
1
vote
1 answer

Flash Player & Xvfb: Application crashed with an unhandled SIGSEGV

I'm using Xvfb to get screenshots of flash stuff, however when I use Xvfb to do this, right after flash is started in Xvfb, the error "Application crashed with an unhandled SIGSEGV" is output. Any ideas? When I run flash outside of Xvfb it doesn't…
James T
  • 3,292
  • 8
  • 40
  • 70
1
vote
1 answer

What is the difference between using HtmlUnitDriver and writing headless tests using Xvfb in linux?

I am a novice in testing. I am working on Linux. I was reading about testing in headless mode and came across two things. One was X virtual frame buffer which does graphical operations in memory. So, no output is displayed. The implementation…
Lavanya Mohan
  • 1,496
  • 7
  • 28
  • 39