Headless Browser | HtmlUnit Driver

HtmlUnit Driver getting famous because of its lightweight and fast feature. It is also known as Headless browser driver. It is not providing any GUI while executing programs.

Some examples of Headless Driver are 

  • HtmlUnit
  • PhantomJS
  • ZombieJS
  • Watir-webdriver
  • Ghost

Advantage of HtmlUnit Driver

  • Lack of GUI that’s why taking less time and memory to run.
  • Working fast as compare to Google Chrome, Firefox or Safari browser.
  • It also supports Java and JavaScript.
  • Easy to use and understand

Disadvantage of HtmlUnit Driver

  • Difficult to perform user interface testing
  • Exhaustive testing is impossible using this driver.

Code Snippet

Output:

Software Testing Books

HtmlUnit Driver

So, I hope you liked above article if yes then please comment below and share this article with your friends. We will discuss Other HtmlUnit Driver in future.


Also Check:

Using Gecko Driver in Selenium 3.0

Cross Browser Testing in Selenium WebDriver

Leave a Reply

Your email address will not be published. Required fields are marked *