Selenium testing without browser

Mohyt picture Mohyt · Sep 29, 2011 · Viewed 56.4k times · Source

I use Selenium RC for testing. Now to perform a load test, I want to run parallel test cases. Is there any way to run them without opening a browser?

Answer

Stéphane Bruckert picture Stéphane Bruckert · May 27, 2014

Updated answer

Chrome now has a headless mode:

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

Old answer

Use PhantomJS (now deprecated)