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

Maven is running test random number times

I have problem with maven. I start using Maven TestNG in the grid . I have set thread-count at 10 in the xml file and Maven runs tests 14 times. I do not understand why this is so. Below paste configuration. http://pastebin.com/JYLL5ZJt Below my…
Mikolaj
  • 21
  • 1
0
votes
1 answer

docker container exits because of "std in is not a tty"

We are starting a container and run task using aws ecs service, the image got pulled successfully according to the task definition but when the container trying to run the task it exited because of "stdin is not tty". We manually reproduced that…
InfinityPlus1
  • 91
  • 1
  • 12
0
votes
1 answer

Selenium 2.45 with Firefox 35.0.1 not working in production only

I am using Selenium 2.45 with Firefox 35.0.1 headless browser. Things are fine in dev and test environment, but in production, I am getting error. Driver info: driver.version: FirefoxDriver org.openqa.selenium.WebDriverException: Failed to connect…
Goku__
  • 940
  • 1
  • 12
  • 25
0
votes
0 answers

error with Firefox Binary 'The browser appears to have exited'

I have problem with selenium and Firefox when i run my code below: from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait from…
yuyb0y
  • 3
  • 6
0
votes
1 answer

Using Macport on OSX 10.9

I installed macport following the guide. http://afitnerd.com/2011/09/06/headless-browser-testing-on-mac/ However, when I try to run sudo port upgrade it has error message Can't map the URL 'file://.' to a port description file ("Could not find…
Bruce Lin
  • 2,700
  • 6
  • 28
  • 38
0
votes
1 answer

Can't reach WebElement

I'm getting an error the first time I try to get an element. Notice that second time I try that it actually works. This is a debug session: >>> self.selenium.find_element_by_xpath('//*[@id="add-button"]') Traceback (most recent call last): File…
chachan
  • 2,382
  • 1
  • 26
  • 41
0
votes
2 answers

Linux Java program X11 DISPLAY variable was set, but

I'm aware that this is a recurrent question but I haven't found any answer yet. I'm on a linux server (Ubuntu 14.04 LTS) and I have a java application that calls another one to do some operation, the first one runs with no problem, but the second…
GmodCake
  • 427
  • 3
  • 11
  • 24
0
votes
1 answer

Running Cucumber/Watir-Webdriver on Jenkins using Xvfb (headless gem)

Trying to run Cucumber/Watir-Webdriver on Jenkins using Xvfb (headless gem) This is my env.rb: require 'rubygems' require 'cucumber' require 'json' require 'watir-webdriver' require 'page-object' require 'page-object/page_factory' require…
Farooq
  • 1,925
  • 3
  • 15
  • 36
0
votes
1 answer

Focus chrome window in linux when running using xvfb

I am using the following shell script for to get the focus on a specific chrome window: #!/bin/sh WIDId=`xdotool search "Test page"` xdotool windowactivate --sync $WIDId sleep 2 xdotool windowactivate $WIDId xdotool key --clearmodifiers ctrl+a It…
dfordevy
  • 161
  • 1
  • 15
0
votes
1 answer

Error running Selenium UI tests via Firefox on Jenkins

I am trying to run UI tests using FireFox Webdriver via Jenkins. I am using xvfb to emulate the browser, since the build box does not have a display. I am running into the following error: org.openqa.selenium.remote.UnreachableBrowserException:…
techjourneyman
  • 1,701
  • 3
  • 33
  • 53
0
votes
1 answer

Xvfb Jenkins plugin: Unrecognized option: -displayfd

Jenkins version: 1.573 Jenkins Xvfb Plugin version: 1.0.15 (latest) Linux OS: Red Hat Enterprise Linux Server release 5.9 (Tikanga) Xorg -version X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release…
AKS
  • 16,482
  • 43
  • 166
  • 258
0
votes
1 answer

From my web server, how to run a script in the graphical environment?

I have a web app that is meant to connect to Skype. Skype used to have a half-decent API but no more but now there are only a handful of CLI commands that one can run. I found some wrappers that worked when sending messages in the shell. Alas, Skype…
ecc
  • 1,490
  • 1
  • 17
  • 42
0
votes
1 answer

Selenium get_screenshot_as_file vs get_screenshot_as_base64?

I'm wondering what the advantages/disadvantages of one over the other are? I'm running against Selenium Server on a headless remote instance with Xvfb acting as the display. Both methods work fine and the resulting screen capture file (if I convert…
ColinMcC
  • 258
  • 5
  • 13
0
votes
3 answers

Hiding Xvfb Teminal Logs

Every time I execute my tests in headless firefox using Xvfb I get large chunk of logs. These logs display different parameters and their values . I was wondering if I can disable these logs somehow, I googled a bit but could not find anything…
NODE.NODE
  • 105
  • 1
  • 4
  • 11
0
votes
1 answer

Running Geb + spock tests headless

I have a number of geb functional tests for a grails application. The tests are working as expected when executed from terminal or IDE. Although the tests need to be executed by hudson, so they are run in headless mode using Xvfb. The problem is…
Giannis
  • 5,286
  • 15
  • 58
  • 113