Selenium headless browser testing

A headless browser is a web browser without Graphical User Interface (GUI). It accesses and renders web pages but doesn't show them to any human being. A headless browser should be able to parse JavaScript. Currently, most of the systems encourage tests against headless browsers due to their efficiency and time-saving properties. PhantomJS and HTMLUnit are the most commonly-used headless browsers. Capybara-webkit is another efficient headless WebKit for rails-based applications.

PhantomJS

PhantomJS is a headless WebKit scriptable with the JavaScript API. It is generally used for the headless testing of web applications that come with GhostDriver built-in. Tests on PhantomJS are obviously fast since it has fast and ...

Get Selenium Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.