How to run chrome browser windowless using xvfb

Chrome browser can be run windowless using xvfb on Linux. Xvfb is an X server which is useful for the machines does not have any display card or drivers. xvfb simulates the frames in virtual memory.

The windowless chrome browser can be used to run any test suits which does not need any gtk windows to be displayed at all.

you can install xvfb on Linux:

sudo apt-get install xvfb

Example command on Linux:

xvfb-run --server-args='-screen 0, 1024x768x24' ./out/Release/chrome -start-maximized http://www.google.com

The arguments given here screen resolution and maximized window switch for chrome browser.

 

No related posts.


Sameer is a Internet technology Blogger from India. He is currently working in Mobile domain. He love to explore latest technology trends in mobile application development and Internet.

Leave a Reply

© 2012 MobiTechie. All rights reserved. Site Admin · Entries RSS · Comments RSS
Powered by WordPress · Designed by Theme Junkie