Member-only story

Headless Browser Testing Clarified

Headless Browser Testing is mostly unnecessary.

Zhimin Zhan
Geek Culture

This article is one of the “IT Terminology Clarified” series.

Headless Browser Testing is a way of running browser tests without the UI (head, a term from Unix). Let’s have a look at a Selenium test execution in headless mode as well as a normal mode for comparison.

Demo: Headless vs Normal

Firstly, normal selenium test execution with browser UI.

Run a Selenium Rspec tests in TestWise IDE

Then the same test is run in headless mode.

Turn on the headless setting in TestWise, and rerun the same test

As you can see, there is no Chrome browser shown during the second test execution and the test still passed. This is headless testing.

History of Headless Browser Testing

Between 2010–2015, Headless browser testing with Phantom JS was hyped highly by test architects/engineers. I tried and was puzzled on how it could possibly work. I wrote down my suggestion to avoid…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (2)

Write a response

Optimize Selenium WebDriver Automated Test Scripts: Speed

The url looks broken

Thanks for sharing it, pretty useful