title: What is the Java equivalent to PhantomJS?
body: <p>I would like to know whether there is any Java library equivalent to PhantomJS. What I want to achieve is to be able to simulate form login and submit actions from a web page and also to do page scraping as well. I know jsoup does page scraping but not page automation.</p>
  
  <p>Thanks in advance!</p>
  
  <p>Cheers, Alex</p>