Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can I start with HtmlUnit

 
Julius Gutierrez
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to learn HTML Unit. but as of now, I still don't know where to start. Can someone please suggest where to start and what book needs to read? also what knowledge and skills do I need to learn before learning htmlunit. TIA
 
Steve Fahlbusch
Bartender
Posts: 605
7
Mac OS X Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
might i suggest a google search?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No books are needed. The HtmlUnit Web site has explanations and sample code.
 
Julius Gutierrez
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply. I have seen the htmlunit website and search alot in google but I still don't know where could I begin. Is htmlunit a part of JEE? I'm still new in java and doesn't have much experience in JSE.(I'm currently reading the multithreading in Head First Java ). It would be much appreciated if someone could suggest where could I begin?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HtmlUnit does not need or make use of JEE. Have you tried running the sample codes against a Web site of your choosing?
 
Julius Gutierrez
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, I have setup the htmlunit in the netbeans and tried to use the sample code from the htmlunit website. below is the code that I use. But still things are not yet clear to me. if the code below can access the google.com, is there a way on how I could confirm it? what does the environment should I expect? based in website it is a GUI-less browser does it mean it will just run in command line?

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, HtmlUnit code runs on the command line. Check the javadocs for what you can do with the HtmlPage object the call returns - it has methods to get at the page content.
 
Julius Gutierrez
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see, thanks for answering my query. It really helps me. I can now connect to a webpage using a command line app.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic