xvfb

easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help'] OSError=[Errno 2] No such file or directory

霸气de小男生 提交于 2019-11-30 01:10:36
问题 I'm trying to setup a display but it's telling me No such file or directory . Traceback (most recent call last): File "/var/www/envs/venv/proj/scripts/my_file.py", line 44, in click display = Display(visible=0, size=(800,600)) File "/usr/lib/python2.6/site-packages/pyvirtualdisplay/display.py", line 33, in __init__ self._obj = self.display_class( File "/usr/lib/python2.6/site-packages/pyvirtualdisplay/display.py", line 51, in display_class cls.check_installed() File "/usr/lib/python2.6/site

Xlib: extension “RANDR” missing on display “:21”. - Trying to run headless Google Chrome

寵の児 提交于 2019-11-29 22:03:39
I'm trying to run some Webdriver Maven tests on a headless server via xvfb using Chrome (Firefox also didn't work) but I'm getting this error message: Xlib: extension "RANDR" missing on display ":21". What more information should I provide and what could the problem/solution be? jeue Try this: Xvfb :21 -screen 0 1024x768x24 +extension RANDR & Xvfb --help +extension name Enable extension -extension name Disable extension jeues answer helped me nothing :-( after hours I finally found the solution for my system and I think this will help other people too. I had to set the LD_LIBRARY_PATH like

xvfb-run unreliable when multiple instances invoked in parallel

╄→尐↘猪︶ㄣ 提交于 2019-11-28 20:39:43
Can you help me, why I get sometimes (50:50): webkit_server.NoX11Error: Cannot connect to X. You can try running with xvfb-run. When I start the script in parallel as: xvfb-run -a python script.py You can reproduce this yourself like so: for ((i=0; i<10; i++)); do xvfb-run -a xterm & done Of the 10 instances of xterm this starts, 9 of them will typically fail, exiting with the message Xvfb failed to start . Looking at xvfb-run 1.0 , it operates as follows: # Find a free server number by looking at .X*-lock files in /tmp. find_free_servernum() { # Sadly, the "local" keyword is not POSIX. Leave

Xlib: extension “RANDR” missing on display “:21”. - Trying to run headless Google Chrome

烂漫一生 提交于 2019-11-28 18:15:24
问题 I'm trying to run some Webdriver Maven tests on a headless server via xvfb using Chrome (Firefox also didn't work) but I'm getting this error message: Xlib: extension "RANDR" missing on display ":21". What more information should I provide and what could the problem/solution be? 回答1: Try this: Xvfb :21 -screen 0 1024x768x24 +extension RANDR & Xvfb --help +extension name Enable extension -extension name Disable extension 回答2: jeues answer helped me nothing :-( after hours I finally found the

Running Chrome WebDriver on a linux server with no display

跟風遠走 提交于 2019-11-28 17:03:13
I'd like to run automated tests using selenium2's chrome webdriver on a linux server. I've already set up firefox to run on the server by using Xvfb (See http://www.semicomplete.com/blog/geekery/xvfb-firefox.html ) and would like to do something similar with chrome. Is this possible? I haven't been able to find a way to do this programmatically for the ChromeDriver like you can with the FirefoxBinary. I've submitted a improvement request which has a patch attached to allow this. You can see it here: http://code.google.com/p/selenium/issues/detail?id=2673 Edit: You can see below response from

How to make Xvfb display visible?

非 Y 不嫁゛ 提交于 2019-11-27 06:54:54
I am running selenium through Xvfb on display number :99 like this: /usr/bin/Xvfb :99 -ac -screen 0 1024x768x8 & export DISPLAY=":99" && java -jar /usr/lib/selenium/selenium-server-standalone-2.24.1.jar -port 4444 However display with number other than :0 is not visible by default. How do I make it visible to actually see what selenium is doing in the browser? It's virtual. From the man page Xvfb(1) : Xvfb is an X server that can run on machines with no display hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory. Also in the man page: Xvfb -pixdepths 3

xvfb-run on OS X

女生的网名这么多〃 提交于 2019-11-27 01:47:19
问题 Is it possible to have xvfb-run on OS X? I develop a PHP application which uses xvfb-run. Before I worked on Ubuntu and it was OK. Now I've moved onto Mac and the application does not work. Or maybe any cross-platform alternative is available to use it on both Linux/OS X? 回答1: X11 is no longer included with OS X: https://support.apple.com/en-us/HT201341 X11 server and client libraries for OS X are available from the XQuartz project: http://xquartz.macosforge.org/ I'm not sure if it includes

How to make Xvfb display visible?

这一生的挚爱 提交于 2019-11-26 12:58:07
问题 I am running selenium through Xvfb on display number :99 like this: /usr/bin/Xvfb :99 -ac -screen 0 1024x768x8 & export DISPLAY=\":99\" && java -jar /usr/lib/selenium/selenium-server-standalone-2.24.1.jar -port 4444 However display with number other than :0 is not visible by default. How do I make it visible to actually see what selenium is doing in the browser? 回答1: It's virtual. From the man page Xvfb(1) : Xvfb is an X server that can run on machines with no display hardware and no physical