#1 Make sure selenium-server-standalone running kmuthuvel@BOUN03VMA15(162.218.138.83)|~|2017-03-21 15:38:08 $ps -ef | grep sel mjadala 23470 16126 2 15:55 pts/2 00:00:01 java -jar selenium-server-standalone-2.53.0.jar 1016 25304 19594 0 15:56 pts/8 00:00:00 grep --color sel 0 ✓ success ^_^ ________________________________________________________________________________ #2 start Xvfb kmuthuvel@BOUN03VMA15(162.218.138.83)|~|2017-03-21 15:56:31 $/usr/bin/Xvfb :2 -ac -screen 0 1600x1200x16 SELinux: Disabled on system, not enabling in X server [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! [dix] Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list! SELinux: Disabled on system, not enabling in X server [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! [dix] Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list! #3 run firefox on DISPLAY 2 & capture the screenshot kmuthuvel@BOUN03VMA15(162.218.138.83)|~|2017-03-21 16:10:40 export DISPLAY=:2 ; firefox https://kesavan.info/ Xlib: extension "RANDR" missing on display ":2.0". 0 ✓ success ^_^ ________________________________________________________________________________ kmuthuvel@BOUN03VMA15(162.218.138.83)|~|2017-03-21 16:10:44 $ xwd -root -silent -out screen.xwd 0 ✓ success ^_^ ________________________________________________________________________________ kmuthuvel@BOUN03VMA15(162.218.138.83)|~|2017-03-21 16:11:49 $xwdtopnm < screen.xwd | pnmtojpeg > screen.jpg xwdtopnm: writing PPM file 0 ✓ success ^_^ ________________________________________________________________________________ kmuthuvel@BOUN03VMA15(162.218.138.83)|~|2017-03-21 16:11:56 #4 kmuthuvel@BOUN03VMA15(162.218.138.83)|~|2017-03-21 16:11:56 $export DISPLAY=:2 ; firefox http://yaazh.info Xlib: extension "RANDR" missing on display ":2.0". 0 ✓ success ^_^ ________________________________________________________________________________ kmuthuvel@BOUN03VMA15(162.218.138.83)|~|2017-03-21 16:16:14 $ xwd -root -silent -out screen.xwd ; xwdtopnm < screen.xwd | pnmtojpeg > screen.jpg xwdtopnm: writing PPM file 0 ✓ success ^_^ ________________________________________________________________________________ kmuthuvel@BOUN03VMA15(162.218.138.83)|~|2017-03-21 16:16:34