Is it possible to run selenium (Firefox) web driver without a GUI? Is it possible to run selenium (Firefox) web driver without a GUI? selenium selenium

Is it possible to run selenium (Firefox) web driver without a GUI?


What you're looking for is a .

Yes, it's possible to run Selenium on Firefox headlessly. Here is a post you can follow.

Here is the summary steps to set up Xvfb

#install Xvfbsudo apt-get install xvfb#set display number to :99Xvfb :99 -ac &export DISPLAY=:99    #you are now having an X display by Xvfb


Chrome now has a headless mode:

op = webdriver.ChromeOptions()op.add_argument('--headless')driver = webdriver.Chrome(options=op)


Yes. You can use HTMLUnitDriver instead for FirefoxDriver while starting webdriver. This is headless browser setup. Details can be found here.