I am tried to run the HtmlUnitDriver with selenium 3.4 and chrome Version 64.0.3282.119 (Official Build) (32-bit). My code is:
package eclipse; import java.
Use this code to Initialize headless browser :
HtmlUnitDriver driver = new HtmlUnitDriver(BrowserVersion.CHROME ,true); driver.get("your web URL");