• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTMLUNIT

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys I'm new to this board and to java programming. I have a question, I'm wanting to use HtmlUnit for my prog but don't really understand how to get it working.. The example from the website doesn't make any sense as there isn't anything getting imported nor does it declare anything..


I have tried to find some tutorials that explain it better but I haven't really seen any. Thanks in advanced!
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when you say "the website" - what website would that be?
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suspect that the people (whoever they are) who posted that example assumed that it would be used by somebody who knew the basics of Java programming. It's meant to help you learn about HtmlUnit, not to help you learn Java. So if you were hoping to use it to teach yourself basic things like importing of classes and so on, you're going in the wrong direction. I would suggest you start with The Java™ Tutorials and work your way through that instead.
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch, Jimmy.

Remember to always QuoteYourSources. We want to know where that code came from. It will help us answer your question.

Goggling "HtmlUnit Tutorial" brings up this. Is this your source? This website assumes you are an experienced programmer and that you know JUnit. Tell us why you want to learn HtmlUnit?
 
Jimmy Bua
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys! Yes that is the source. I'll take some more time and read through the getting started. I guess the example is also using Junit. I'm going to play around with it tonight and see how it goes.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic