xvfb

Selenium get_screenshot_as_file vs get_screenshot_as_base64?

与世无争的帅哥 提交于 2019-12-13 05:05:23
问题 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 the base64 one and save it as an image file) are identical file size and look identical. So why would I want to use/not use one over the other? 回答1: With the get_screenshot_as_file, the screenshot get saves into a binary file, while with get

How to view Chrome settings on XVFB?

元气小坏坏 提交于 2019-12-12 06:37:07
问题 I'm using Chrome in a Docker container (published by SeleniumHQ) to run automated tests in the Cloud. This runs a minimal display environment on XVFB that you can VNC into to see results. Now we're using this within a Corporate firewall - and so external requests need to go through a proxy. We're setting the proxy with the Selenium proxy command. Now we've run a test on the command line with curl on the Chrome docker container and curl with the proxy can access external resources just fine.

Xvfb image buffering provokes java.awt.Headless exception

ぃ、小莉子 提交于 2019-12-12 03:43:36
问题 My java webapp hosted within a tomcat 7.0.39 needs xvbf to write into images and output them to the client. When I open the servlet which handles the image writing I get the following error message: 15.05.2013 21:24:56 org.apache.catalina.core.ApplicationContext log SCHWERWIEGEND: StandardWrapper.Throwable java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) at java.awt.Window.<init>(Window.java:414) at java.awt.Frame.<init>(Frame.java:403) at

Xvfb plugin to run multiple job instances concurrently on Jenkins

£可爱£侵袭症+ 提交于 2019-12-11 06:09:01
问题 I have a job in Jenkins that runs UI tests written in Selenium. The job can run multiple instances of it concurrently. I am running into a problem while trying to use Xvfb (the Xvfb plugin or otherwise). Using the Xvfb plugin The configuration is as below. The plugin assigns the same display port to 2 concurrent job instances, and then one fails. From the Xvfb log (note displayfd is 2 and screen is 0 in both cases): Xvfb starting$ /usr/bin/Xvfb -displayfd 2 -screen 0 1024x758x16 -fbdir /srv

running Xvfb in background on remote linux

ⅰ亾dé卋堺 提交于 2019-12-10 19:58:22
问题 i am facing issues with Xvfb on remote linux. when i run the command Xvfb :99 & I get this messages on the command line Initializing built-in extension Generic Event Extension Initializing built-in extension SHAPE Initializing built-in extension MIT-SHM Initializing built-in extension XInputExtension Initializing built-in extension XTEST Initializing built-in extension BIG-REQUESTS Initializing built-in extension SYNC Initializing built-in extension XKEYBOARD Initializing built-in extension

xvfb install on Linux

痴心易碎 提交于 2019-12-10 15:39:12
问题 I am trying to get Selenium to do some automated browsing on a Linux application server. I am stuck at the point where my 'perl recording' from Selenium sends a request to start the browser, and the standalone selenium server throws an error - 'Timed out waiting for profile to be created!'. I understand from browsing this error, that I could resolve this by creating a profile for the firefox browser I installed on the linux server. However, when I try to create a profile, I now get the error

selenium chrome driver httplib.badstatusline

北城以北 提交于 2019-12-10 13:17:14
问题 I install selenium, chrome, pyvritualdisplay and xvfb using the following tutorial: https://christopher.su/2015/selenium-chromedriver-ubuntu/ when i try to run a python selenium script i get this error when i call webdriver.Chrome() I'm using python2.7.6 on Ubuntu 14.04.3 LTS Traceback (most recent call last): File "selenium_python_unittests/attempt_50.py", line 9, in <module> driver = webdriver.Chrome() File "/home/sele/headless/local/lib/python2.7/site-packages/selenium/webdriver/chrome

JavaFX + Xvfb - Yet another Xlib: extension “RANDR” missing on display “:99”

£可爱£侵袭症+ 提交于 2019-12-08 16:01:34
问题 I have an ubuntu headless server with JavaFX and Xfvb up and running. Now I have a very similar Ubuntu server and try to get my JavaFX App running with Xvfb. But I allways get an exception thrown: Prism ES2 Error - nInitialize: glXChooseFBConfig failed Xlib: extension "RANDR" missing on display ":99". Usually I could solve xrandr exception by exporting LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ But not this time. I really have no idea what is wrong ... This is how I usually start the server:

ElementNotVisibleException only in virtual display

孤街醉人 提交于 2019-12-08 12:50:27
问题 I have a script that needs to interact with a webpage via selenium. I need to use some kind of virtual display to keep the browser from showing up. The script as a whole works great until I introduce Xvfb into the mix. When I do that I get an ElementNotVisibleException the first time I actually try to interact with the page. I've tried using xvfbwrapper and pyvirtualdisplay with the same effect. And here is code that doesn't work: from xvfbwrapper import Xvfb vdisplay = Xvfb() vdisplay.start(

starting headless firefox with Xvfb does not work

早过忘川 提交于 2019-12-08 09:23:27
问题 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 when i run firefox i get Error: no display specified I run on centos 6 and firefox 38 ESR. What can be done? 回答1: can you try that? export DISPLAY=:1 回答2: start firefox with --display arg /usr/bin/firefox --display=:1 来源: https://stackoverflow.com/questions