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

python selenium with xvfb for headless mode

I have been playing around with python and selenium - and I am able to do successful testing using selenium. To avoid showing the browser, I started using Xvfb and then the script fails. So, at first, my normal code looks like…
JohnJ
  • 6,736
  • 13
  • 49
  • 82
2
votes
0 answers

How do I install xvfb and phantomjs on openshift (I'm getting permission denied error)

I'm logged in via SSH through my local ubuntu to this openshift machine. I've cloned the repo in my local system, added a script, pushed the code and I can see in my openshift account. However I want to install few dependencies which are not…
user3810188
  • 311
  • 1
  • 3
  • 14
2
votes
2 answers

Python Script stuck in crontab - Python - Selenium - Xvfb - Firefox - Ubuntu

I have the following environement Ubuntu 14.04 LTS under ESXi Python, Selenium webdriver, Xvfb My script runs just fine if I run it manually, but got stuck when I put the script in the crontab. I have used the export Display correctly and the…
ucipass
  • 923
  • 1
  • 8
  • 21
2
votes
0 answers

xvfb freezes from xvfb:10 Is this a bug?

I'm using Ubuntu 13 over amazon ws EC2 and I'm trying to get xvfb to work but I am having issues with it hanging on the line Initializing build-in extension GLX I believe that this is related to a bug, perhaps a incompatability with xserver? Does…
kevinn2065
  • 325
  • 1
  • 3
  • 12
2
votes
0 answers

Running FirefoxDriver headless in Mac OSX Mountain Lion 10.8

I want to run my webdriver test headless. On ubuntu machine, I could do this by launching Xvfb and configure my FirefoxDriver's DISPLAY option. On mac, it doesn't work since application on mac uses Quarts, not X. Googling a while, I found there has…
Kazuki
  • 1,462
  • 14
  • 34
2
votes
1 answer

Text is blacked out when taking a firefox screenshot running headless with xvfb

I have a jenkins setup on amazon ec2 and everything is running fine except for a tiny issue with Selenium. Every time I run the whole suite of tests (~30 min), Selenium gets stuck on a test. I've take a screenshot at that moment and it seems that…
phdj
  • 199
  • 1
  • 12
2
votes
2 answers

Selenium Webdriver/TestNG/Maven/Xvfb - take screenshot on fail?

wanted to ask you about the best way to take screenshot on fail in such project? Should I do it in the Selenium code, or in the Maven project via some command or with Xvfb? Im using Firefox headless via Xvfb. I have seen a few classes on the…
Kaloyan Roussev
  • 14,515
  • 21
  • 98
  • 180
2
votes
1 answer

need python script to use already open Xvfb server process

I have a php script that runs many python scripts. The python scripts utilize a headless firefox browser using pyvirtualdisplay and xvfb. My issue is that each python script opens a new Xvfb process on my linux server. Thus I get multiple processes…
Cosco Tech
  • 565
  • 1
  • 4
  • 22
2
votes
0 answers

Automatizing controlling of Skype Linux UI application

I am the author of project Sevabot http://sevabot-skype-bot.readthedocs.org/ - a Skype bot for Linux. As the server installation is painful ( https://sevabot-skype-bot.readthedocs.org/en/latest/ubuntu.html ) I'd like to figure out how to make it…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
2
votes
1 answer

Xvfb error on windows when using watir with headless

I am trying to use headless with watir on windows 7. env.rb if ENV['HEADLESS'] headless = Headless.new headless.start at_exit do headless.destroy end end When I run a test I am getting following error $ cucumber --profile bat ***…
amjad
  • 2,876
  • 7
  • 26
  • 43
2
votes
2 answers

How to continue to command by PHP if error occurs in first command

I want to execute several commands by PHP, //DISPLAY setting $command1 = 'export DISPLAY=:1'; $last_line1 = system($command , $rtn); //use Xvfb $command2 = 'Xvfb :1 -screen 0 '.$width.'x'.$height.'x24 &'; $last_line2 = system($command ,…
phicdy
  • 63
  • 5
1
vote
1 answer

Xorg seems to kill EC2 instances (CentOS 5.4)

My end goal is to run firefox in headless mode with xvfb. But Xvfb requires Xorg, and I'm running into a problem with Xorg. When I fire up an instance using this AMI: ami-4a24d623 RightImage_CentOS_5.4_i386_v5.5.9_EBS Then do: yum install Xorg Then…
Dan
  • 651
  • 2
  • 8
  • 19
1
vote
1 answer

Invalid maximum heap size: -Xmx0m

I am getting the following text while running xvfb build config on OKD & which leads to pod termination exec java -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Xmx0m -cp…
Rohit
  • 11
  • 1
1
vote
2 answers

pyvirtual display and xvfb on MacOS latest

Context I am trying to get some code working on MacOS. The code uses the Mayavi visualization library, and is supposed to run on headless servers to produce visualizations. Dependencies brew install gdal brew install xdpyinfo brew install --cask…
WaterFox
  • 850
  • 6
  • 18
1
vote
1 answer

Xvfb x11vnc | Different Displaynumber specified but when connecting, its the same

So. I've build myself a custom Selenium-Chrome-Node Docker image, which's purpose is to host a node, a virtual display and also a x11vnc Server to connect to the display. My docker image has enviroment variables to it, so I can easily create two…