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

Redirect to custom protocol/scheme is not accessible when using headless watir/firefox

I’m working on a set of integration tests for the dropbox oauth sequence which finishes in a series of 302 redirects, the last of which is a custom protocol/scheme. Everything works as expected in the mobile app which the testing mimics, and…
Buffoonism
  • 1,669
  • 11
  • 11
2
votes
0 answers

Getting contents of system clipboard on headless linux server for automated testing

I am trying to run some selenium cases on a headless linux system through docker in which the "user" clicks a button that copys text to the system clipboard. When I run this code, I get an error that says "No X11 DISPLAY variable was set, but this…
2
votes
1 answer

Geckodriver 0.18.0 random nonresponsiveness. Caused by several geckodrivers interfering with each other?

Short version I am running Selenium 3.11.0 + Geckodriver 0.18.0 + Firefox 59.0.2 on Ubuntu 14.04.5. When trying to open an URL, Selenium sometimes throws the following error [Errno 111] Connection refused https://www.example.com Geckodriver.log…
Otto Kässi
  • 2,943
  • 1
  • 10
  • 27
2
votes
1 answer

Xvfb failed to start when running second screen

Two scripts first.sh and second.sh are to be used to run test.sh and test2.sh headlessly using Xvfb on Ubuntu 16.04. Problem: After running first.sh, we get an error when we run second.sh. xvfb-run: error: Xvfb failed to start What went wrong and…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
2
votes
2 answers

Selenium: Getting a Blank White Image when taking Screenshot in Linux Server(using Xvfb)

Chrome version: 61 to 63 Chrome webdriver: 2.33 to 2.35 I'm unable to get screenshot in my selenium program, which I run using Xvfb. ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); Program runs well on a windows machine, and I get a…
Glad Born
  • 43
  • 5
2
votes
0 answers

How does RFB and X11 protocols work together?

I am trying to understand how a VNC works using X11 and RFB protocols. I see my XVnc process listens on 59xx(RFB), 58xx(HTTP) and 60xx(X11) ports. I do not know what is HTTP for, but I think we can exclude that from picture and still can understand…
GP92
  • 433
  • 1
  • 12
  • 30
2
votes
2 answers

Selenium FirefoxDriver Connection Refused

I have the following code to test out Selenium WebDriver. import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class Starter { public static void main(String[] args) { …
shinkou
  • 5,138
  • 1
  • 22
  • 32
2
votes
2 answers

"connection refused" when attempting to run Selenium with Headless Firefox

The versions of each item I am using are as follows: Selenium 3.4.0, GeckoDriver v0.19.0 for Linux 64 and Firefox 52.4.0. First question I've ever asked on this site. I am normally able to figure stuff out by simple lurking, but this problem has…
somexp12
  • 497
  • 1
  • 6
  • 19
2
votes
2 answers

How dose pyvirtualdisplay work on Xvfb or how many Xvfb could be open by pyvirtualdisplay?

I had used the following code to open saveral Xvfb for test and got some problems as: A. Some process of Xvfb's status(following the code) were Z or SL,sometime were Z+ or SL+ , but python process was going on normally What dose it mean? B. The…
绿飕飕
  • 23
  • 5
2
votes
1 answer

Xvfb missing title bar

I am trying execute desktop programs using Xvfb but the titlebar are missing. Example: # start desktop environment Xvfb :1 -screen 0 1024x768x16 & # access to desktop environment x11vnc -display :1 -localhost & vncviewer :0 & # run wine DISPLAY=:1…
Tk421
  • 6,196
  • 6
  • 38
  • 47
2
votes
2 answers

Docker-compose and Xvfb incompatibility?

Since I installed Capybara-webkit, I can't launch my specs with docker compose. The next command stays on hold: $ docker-compose run web xvfb-run -a bundle exec rspec I thought I have a problem with Capybara-webkit, so I created a SO question and…
Ruff9
  • 1,163
  • 15
  • 34
2
votes
1 answer

Xvfb: connection refused when running test script

I have a python script which will only be triggered by calling my.ip.address/test. It works fine if I run the PHP code via command line. However,if I access the test automation via browser using the url specified, it gives me this error: Traceback…
Joseph D.
  • 11,804
  • 3
  • 34
  • 67
2
votes
1 answer

Xvfb (xvfb-run) incorrect resolution

i'm running protractor tests (chrome) headless and Xvfb or xvfb-run creates displays with incorrect resolution. I have two variants of tests starting: Xvfb :10 -screen 0 1920x1200x24 -ac & export DISPLAY=:10 or xvfb-run --auto-servernum…
Pavel Varenik
  • 71
  • 1
  • 7
2
votes
1 answer

Set the screen resolution inside a xfvb wrap in a Jenkins pipeline

In a Jenkins 2.0 pipeline, I'm using code similar to wrap([$class: 'Xvfb']) { // execute selenium tests } As expected, this xvfb session uses the default screen resolution (1024x768x8?). I would like to override it. According to the documentation…
mcating
  • 1,062
  • 11
  • 18
2
votes
0 answers

Build container found dead before completing the build. Build container died because it was out of memory, or the Docker image was missing glibc

I am trying to do some basic Python Selenium tests in AWS. My idea was to have CodeBuild run them and then deploy...pretty basic, right? However, I was having a lot of trouble with xvfb using an AWS provided image such as…
MikeB
  • 2,402
  • 1
  • 15
  • 24