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

Xvfb is properly running but i got this error: "Error: no display specified". Only when I run a selenium test from jenkins

I have a CentOS 6.5 server with jenkins and Xvfb + firefox installed and running properly. I'm trying to run some selenium tests from jenkins and i'm getting this error when i build the jenkins…
alvaro
  • 43
  • 1
  • 8
0
votes
2 answers

Firefox error on Jenkins Selenium : "Error: cannot open display"

I'm trying to run a test case on Jenkins with Selenium but I get a "Cannot open display" (I've tried it with both display ":1" and ":99"). Some info: Selenium version 2.35.0 JDK 1.6.0_25 I'm running on a Debian environment I have installed Xvfb The…
user6034802
0
votes
1 answer

is it possible to peep what selenium is doing during automated tests?

I perform headless web session tests with selenium (python, ubuntu server 15, firefox), which can last for hours. I do make use of pyvirtualdisplay + xvfb. My python scripts begin like this: from pyvirtualdisplay import Display virtualdisplay =…
fab
  • 164
  • 1
  • 13
0
votes
0 answers

xvfb never stops executing

I have a simple command line here.. If I run it from a terminal it completes in about 1-2 sec, but if running it from php it never stops executing!? Why is that? xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf /var/www/input.html…
clarkk
  • 27,151
  • 72
  • 200
  • 340
0
votes
0 answers

Grab Mouse Location without X server

I'm trying to get the mouse location from my raspberry pi. The pi right now isn't connect to a monitor so the X server is not running. Only thing connected to my pi is a mouse and a ethernet cable. I have a simple java program that grabs mouse…
vaat
  • 31
  • 4
0
votes
1 answer

Unix selenium webdriver error

I am writing a selenium webdriver script . Below is the src code. driver.get(baseUrl); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.findElement(By.id("txtUserDefault")).clear(); // page one code works fine in…
dan
  • 73
  • 1
  • 11
0
votes
1 answer

Geb - Selenium Input focus with datepicker

Since upgrading to Geb 0.12.2 and Selenium 2.48.2, I cant get the following to work: $("form").validOn(dateString) I have tried variations like: $("input",name:"validOn").value(dateString) and $("form").validOn << Keys.chord(Keys.CONTROL,…
Giannis
  • 5,286
  • 15
  • 58
  • 113
0
votes
1 answer

Firefox -> PhantomJs Login to website not working

For some reason when I don't run headless I am able to log into http://www.neighborhoodscout.com. However when I run headless PhantomJS I am unable to login and it can't find an element it returns on success of a login. Phantom JS version 1.9.8…
Test Dev
  • 97
  • 1
  • 10
0
votes
1 answer

Selenium with Xvfb: firefox.NotConnectedException

I have selenium running on a server and I want it to display the browser on the client. I have launched xvfb on my server like that: Xvfb :1 -screen 0 1024x768x24 & Then on my Java code I wrote: String xPort =…
0
votes
1 answer

capybara-webkit jQuery.active not working with xvfb

I have a problem with capybara-webkit + xvfb on my ubuntu systems/ci. OSX running fine. QT5 installed. I'm using the wait_for_ajax method (https://thoughtbot.com/blog/automatically-wait-for-ajax-with-capybara) Ubuntu returns: undefined method…
marvwhere
  • 561
  • 3
  • 11
0
votes
1 answer

"Bad request" on creating new session under CentOS, Firefox and Xvfb

When on Mac OS X 10.10, Mozilla Firefox 38.3.0 and java version "1.7.0_79" I start Selenium hub and node: java -jar selenium-2.47.1.jar -role hub java -jar selenium-2.47.1.jar -role webdriver -hubHost 127.0.0.1 and run this test: require…
Nakilon
  • 34,866
  • 14
  • 107
  • 142
0
votes
2 answers

xvfb-run hanging on server

On our build server (bamboo launched) we are wanting to do selenium tests, to do this we are running xvfb-run, this works on our local servers which are all of the same type. If I log on to the build server and run: xvfb-run echo 'i' I get the…
Kevin
  • 383
  • 5
  • 16
0
votes
0 answers

How to execute Firefox on Centos?

Firefox version Mozilla Firefox 40.0 CentOS 64 bit Xvfb is installed and running. But when i ran the firefox command. It shows following error message Error: no display specified
Satyajeet
  • 3
  • 2
0
votes
2 answers

starting headless firefox with Xvfb does not work

I try to run firefox in headless mode for selenium. $xvfb-run firefox seems to work. I run firefox through selenium so i cannot run xvfb-run directly. So i start Xvfb :1 -screen 0 1024x768x24 & and then set DISPLAY:=1 env DISPLAY:=1 Still…
David Michael Gang
  • 7,107
  • 8
  • 53
  • 98
0
votes
1 answer

Does 'docker run' modify image state?

I have a Dockerfile that uses an ubuntu base image and installs a bunch of dependencies with apt-get and dpkg. Then it copies some javascript files and runs a node app. The node app spawns a child process and executes xvfb-run selenium-standalone…
cava23
  • 477
  • 1
  • 8
  • 16