A headless browser is a web browser without a graphical user interface. Headless browsers provide automated control of a web page in an environment similar to popular web browsers. PhantomJS is a headless WebKit scriptable with a JavaScript API. The Testmate code to execute it is as below: 1 2 3 4 5 6 7 8