Xlib: extension "RANDR" missing on display ":21". - Trying to run headless Google Chrome
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 this:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
after that everything worked very well, even without any "-extension RANDR" switch.
It seems that when this error appears it is an indication that the selenium-java plugin for maven is out-of-date.
Changing the version in the pom.xml should fix the problem