title: Selenium. HtmlUnitDriver. How to enable JavaScript and Cookies?
body: <p>This is an error I get when I try to navigate to page, using HtmlUnitDriver:</p>
  
  <blockquote>
    <p>JavaScript and Cookies need to be supported in order to use the site.
    To be able to use all of the site's functions, download and install one of the following browsers</p>
  </blockquote>
  
  <pre><code>WebDriver driver = new HtmlUnitDriver();
  driver.get(url);
  </code></pre>