Headless Browser Testing Clarified
Headless Browser Testing is mostly unnecessary.
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.
Then the same test is run in headless mode.
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…