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

Getting error with html to pdf converter(pdfkit) in local windows 10 machine

"cmd=['Xvfb', '-help']\nOSError=[WinError 2] The system cannot find the file specified\nProgram install error! " I'm getting this error while converting from HTML to pdf in windows10 I have installed wkhtmltopdf0.9.9 in my windows10 configured the…
0
votes
1 answer

Detect if selenium test run in Bitbucket Pipeline

I want to know if it's possible to do something like this : if( "#in bitbucket pipeline" ): options = Options() options.headless = True cls.selenium = WebDriver(options=options) else: cls.selenium =…
0
votes
1 answer

Unable to run Selenium tests on CentOS through Xvfb

I'm running Selenium tests on CentOS 7 machine through Jenkins pipeline hence using Xvfb. When use screen argument with any valid value like following - wrap([$class: 'Xvfb', autoDisplayName: true, screen: '1440x800x8']) {
Alpha
  • 13,320
  • 27
  • 96
  • 163
0
votes
0 answers

Selenium script with pyvirtualdisplay and Xvfb not working on cron on linux vm

I have a selenium script which uses pyvirtualdisplay.Display with visible=0. The script runs fine when run manually but fails when run using cron job. I think it is due to the Xvfb and pyvirtualdisplay but I can't seem to fix it. The crontab command…
0
votes
1 answer

xvfb bind to localhost instead of *

I have an XVFB service running as service and it binds to * instead of localhost. For security purposes, it is not recommended and I can't find a way to bind it to localhost. Does anyone know how to make xvfb to bind to localhost? Thanks # cat…
Nam Nguyen
  • 5,668
  • 14
  • 56
  • 70
0
votes
0 answers

Running selenium with nodejs in docker env : xvfb failed to start

I am trying to run selenium in docker. first I found a docker image from blueimp. FROM blueimp/geckodriver USER root RUN apt-get update RUN apt-get install -y --fix-missing x11-utils wget xclip firefox-esr xvfb xsel unzip libncurses5 libxslt-dev…
Babak Abadkheir
  • 2,222
  • 1
  • 19
  • 46
0
votes
3 answers

Running Cypress through CircleCi

Cypress has been running great locally. When I try running it in the circle-ci pipeline then it has a number of issues. First, here is the relevant part of my workflow: orbs: cypress: cypress-io/cypress@1.19.2 workflows: version: 2.1 commit: …
Brandon
  • 1,447
  • 2
  • 21
  • 41
0
votes
2 answers

How can I use display functions on google colab?

Im trying to use some display functions in a c++ code of mine. These functions would open up a window and display some image as an output there. How can i replicate this in google colab ?
0
votes
0 answers

Problem Xvfb using python 2.7 and selenium

I have a problem using "Xvfb" with Selenium. In my requirement i have to open python with a bash script. if i execute it normally python like python file.py it doesn't have any problem, but if i execute it directly from bash the following error…
0
votes
1 answer

Xvfb and Protractor produce Timeouts

I want to run protractor tests on a webserver integration platform without gui based on redhat linux. The tests will be executed whenever the webserver software will be deployed. I use firefox and geckodriver. The call chain is protractor…
Vobson
  • 1
0
votes
0 answers

Running Selenium framework on CentOs

I have tried using XVFB to run chrome headless on CentOs server, though I now have to update my code to do that, do we know if we can fire XVFB using Java code and make sure that the WebDriver is able to interact with it? Edit: the example from the…
0
votes
1 answer

Docker container with Selenium and Chrome webdriver crashes when multiple containers run in parallel on AWS Batch

We are running AWS Batch jobs that launch Docker containers to run Selenium and Chrome with python 3.6. When we set it up to run multiple containers per server, jobs often start up, run for a couple minutes, then crash with chrome not reachable: …
kielni
  • 4,779
  • 24
  • 21
0
votes
1 answer

How SSH X11 forwarding is achieved over the browser

I am planning to implement the functionality given by SSH -X . This is used to open GUI based application remotely. So I want to understand what are the components involved and should be implemented. I know how to setup this like starting VNC server…
JavaUser
  • 25,542
  • 46
  • 113
  • 139
0
votes
0 answers

How to run selenium java test in linux in non-headless mode through docker

I know it works fine when I run in headless mode. However is it possible to run in non-headless mode? I've installed xvfb through docker and setting ENV DISPLAY=:99 While running the test docker run -e Xvfb ${DISPLAY} gradle It…
asinha
  • 337
  • 1
  • 6
  • 24
0
votes
1 answer

How to implement selenium to run in headless mode in linux cloud

When I use WebDriver driver = new HtmlUnitDriver(); to run selenium test cases in headless mode on Windows machine then it works fine. But it doesn't work on Linux cloud. Do I need xvfb frame buffer, sample code and steps to implement this will be…
SushilG
  • 655
  • 1
  • 6
  • 19