Discussions

News: HtmlUnit 2.4, a headless java browser, released

  1. HtmlUnit 2.4, a headless java browser, released (52 messages)

    A new release of the pure GUI-Less browser is available, which allows high-level manipulation of web pages, such as filling forms, clicking links, accessing attributes and values of specific elements within the pages, you do not have to create lower-level requests of TCP/IP or HTTP, but just getPage(url), find a hyperlink, click() and you have all the HTML, JavaScript, and Ajax are automatically processed. The most common use of HtmlUnit is test automation of web pages (even with complex JavaScript libraries, like jQuery and Google Web Toolkit), but sometimes it can be used for web scraping, or downloading website content. The main enhancements:
    • Improved JavaScript support, now all jQuery and Mochikit tests pass, adding to already supported GWT and Sarissa
    • Native ActiveX support
    • Initial applets handling
    • Support for Internet Explorer conditional comments
    • And as usual, various bug fixes
    You can find more information in the official website, the development team is looking forward to getting your feedback.

    Threaded Messages (52)

  2. Jmeter?[ Go to top ]

    I wonder how easily this could be implemented as a plugin to jmeter. I know one of the toughest thing about managing more dynamic apps and workflows are getting the regex's correct and hoping the pre-processors work. With something like HtmlUnit you wouldn't have to digg through the posts and responses (with the exception of assertions), just interface with the app more naturally. Sounds cool.
  3. Re: Jmeter?[ Go to top ]

    I believe as well that HtmlUnit has a great role to play in load testing (in fact some users already use it for this purpose). Personally I think that it is too low level to effectively write large test suites and I prefer to use WebTest for that. For a few month, I've started the integration of WebTest with JMeter: http://mguillem.wordpress.com/2008/05/23/webtesthtmlunit-integration-with-jmeter-started/ but I haven't made any progress since this date as I didn't find free time to work on it.
  4. nivir[ Go to top ]

    One characteristic of Java is portability, which means that computer programs written in the Java language must run similarly on any hardware/operating-system platform. This is achieved by compiling the Java language code to an intermediate representation.

     <a href="http://www.customessaywritingservices.org/">good essay writing </a>

  5. Comparisons[ Go to top ]

    This sounds pretty nice, but I'd still be worried about differences in behavior between this and the browsers I'm actually targeting. I'm also curious if there are tools with similar functionality (whether Java-based or not).
  6. Re: Comparisons[ Go to top ]

    ... but I'd still be worried about differences in behavior between this and the browsers I'm actually targeting...
    From documentation: Specifying this BrowserVersion will change the user agent header that is sent up to the server and will change the behavior of some of the JavaScript.
    public void homePage_Firefox() throws Exception { final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_2); final HtmlPage page = webClient.getPage("http://htmlunit.sourceforge.net"); assertEquals("HtmlUnit - Welcome to HtmlUnit", page.getTitleText()); }
  7. Re: Comparisons[ Go to top ]

    This sounds pretty nice, but I'd still be worried about differences in behavior between this and the browsers I'm actually targeting.
    That depends, if your web application doesn't use JavaScript or your application include jQuery, GWT, Mochikit, and/or sarissa, you will have exact behavior as FF2/FF3/IE6/IE7, because HtmlUnit tests already include actual test cases/examples of those libraries. If you use Prototype, Ext JS, Dojo, YUI, you will have some successful cases, and some unsuccessful ones. HtmlUnit has a real active community; some bugs are fixed in few hours if they are simple. If you have a minimal test case, expect a quick response.
  8. Responsive Web Design[ Go to top ]


    I certainly agree you. In fact you did a great job with your blog too, as you can see you have a lot of visitors and I am very excited with it coz your blog is interactive. Two thumbs up for you. Have a great day.

    Responsive Webdesign

  9. Re: Comparisons[ Go to top ]

    HtmlUnit is a great library, we can't get by without it. We have 100s of automated downloads that would require users to navigate websites and download reports. Websites targeted use heavy javascript and a mixture of plain html, jsp, coldfusion. We used HttpUnit years ago, that was probably the first hit on google at the time. But no one touched it for several years, so we moved off it and on to this library. I used another tool at one company called iMacros. It's not free and runs strictly on Windows. The only nice thing that you could do is record as you're clicking through the site. Although very simple, it's painful to write the HtmlUnit code for larger tests. One idea would be an automatic code generator via firefox addon that would generate a good starting point.
  10. Re: Comparisons[ Go to top ]

    ... One idea would be an automatic code generator via firefox addon that would generate a good starting point.
    Have you tried the WebTestRecorder firefox plugin? WebTest is a thin layer over the top of HtmlUnit which let's you write your tests in Ant (if you have folk comfortable with XML) or Groovy (if you have folk comfortable with Java or scripting). We use the latter as part of a testing DSL. We tend to heavily refactor what a recorder gives us but it makes a great start for tedious pages.
  11. Re: Comparisons[ Go to top ]

    No I haven't, that's basically what I was looking for, thx
  12. Re: Comparisons[ Go to top ]

    I believe that PushToTest (http://www.pushtotest.com/) can translate both TestGen4Web as well as Selenium tests into HtmlUnit tests
  13. Re: sesli[ Go to top ]

    When is that captcha going to be implemented again? At least this list has a nice selection... and transsexuals, so nobody feels left out.
  14. At first sight, from a very high level point of view, it looks like the JWebPane project (the GUI part) to come and the HtmlUnit (the non-GUI part) match well. May be an interesting match to come... Dominique http://www.jroller.com/dmdevito
  15. Compare with HTTPClient[ Go to top ]

    How does this compare with HttpClient (from Apache)? http://hc.apache.org/httpclient-3.x/ I have used HttpClient and I'm trying to find out if someone has used both so that they can compare and contrast the two tools. V
  16. Re: Compare with HTTPClient[ Go to top ]

    How does this compare with HttpClient (from Apache)?
    http://hc.apache.org/httpclient-3.x/
    HttpClient is actually used by HtmlUnit. HttpClient is a powerful library for lower layer HTTP requests, but doesn't handle JavaScript/browser objects/DOM etc, what are all handled by HtmlUnit.
  17. Thanks for your nice information[ Go to top ]

    I love this one.

  18. how to meditate[ Go to top ]

    To a proper extent it also shows that this season gives people the charm, full of personality and natural rhythm romantic amorous feelings. These are all in Coach Outlet Store Online. how to meditate

  19. Thank you[ Go to top ]

    Thank you for the new releasehttp://9xtec.com/

  20. Cots Outlet[ Go to top ]

    HTML is really an interesting topic and in fact I’m studying on this and I can say really it’s interesting and somewhat trick and somewhere we have to use our brain for using that tricks.

     

    Cots Outlet

  21. Thanks for the piece of info[ Go to top ]

    It is difficult task but your post and experience serve and teach me how to handle and make it more simple and manageable .Thanks for the advice. Today I am lucky and I find a lot of nice posts. thesis writing services

  22. good essay writing[ Go to top ]

    • Self-signed applets, which are applets signed by the developer themselves, may potentially pose a security risk; java plugins provide a warning when requesting authorization for a self-signed applet, as the function and safety of the applet is guaranteed only by the developer itself, and has not been independently confirmed.
    • good essay writing
  23. My dream[ Go to top ]

    Dream is unique.To fulfill this dream my dream app is here.Just type your dream and see what will be happening.
    My dream interpretation tutorial is the best place to start really understanding and learning how to uncover the personal meanings behind dream symbols.To download

    Click here

  24. Thanks for the piece of info[ Go to top ]

    This is definitely useful information if you want to keep your contacts update and organized. Thank you!buy essays online

  25. Found some great knowledge on the lines "A new release of the pure GUI-Less browser is available, which allows high-level manipulation of web pages, such as filling forms"

    But for designing I would prefer adobe photoshop which can be downloaded free at http://www.photoshopdownloadfree.com

  26. Really impressive article[ Go to top ]

    I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it. http://www.technewspaper.net and I have you bookmarked to check out new stuff you blog post.

  27. About the article[ Go to top ]

    An interesting discussion is worth comment. I think that you should write more on this topic, it might not be a taboo subject but generally people are not enough to speak on such topics. http://www.earnonlinepk.com. To the next. Cheers

  28. Fun Facts[ Go to top ]

    Very nice posting, Read some <a href="http://www.funfactsgo.com">fun facts</a> here.

  29. Fun Facts[ Go to top ]

    Have some fun facts at http://www.funfactsgo.com

  30. links[ Go to top ]

    great,,i would check ou the fun facts/

    monroe dimaggio

  31. happy holidays[ Go to top ]

    a lot of programmers will benefit from HtmlUnit 2.4

    sell sheet design

  32. Business Plan Writing[ Go to top ]

    One of my most preferred pastimes is surfing the internet since I constantly locate excellent points to see and read. Just recently, I saw this weblog on Business Plan Writing which captured my attention. Seeing weblog sites like yours makes me recognize why I like surfing the internet.

  33. Greencard Marriage Lawyer[ Go to top ]

    I was intended to look for Greencard Marriage Lawyer sites but I was caught when I noticed your webpage. I'm so pleased with the HtmlUnit 2.4, a headless java browser, released and its content.

     

  34. Galaxy[ Go to top ]

    HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets (like ), within the web page content. HTML tags most commonly come in pairs like

    and

    , although some tags, known as empty elements, are unpaired.

     

    Galaxy S3 case

  35. Galaxy[ Go to top ]

    HTML elements form the building blocks of all websites. HTML allows images and objects to be embedded and can be used to create interactive forms.

    Galaxy S3 case

  36. Galaxy[ Go to top ]

    Web browsers can also refer to Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both the HTML and the CSS standards, encourages the use of CSS over explicit presentational HTML markup.

    Galaxy S3 case

  37. Galaxy[ Go to top ]

    HyperText Markup Language is a markup language that web browsers use to interpret and compose text, images and other material into visual or audible web pages. Default characteristics for every item of HTML markup are defined in the browser, and these characteristics can be altered or enhanced by the web page designer's additional use of CSS.

    Galaxy S3 case

  38. Galaxy[ Go to top ]

    HTML documents are composed entirely of HTML elements that, in their most general form have three components: a pair of tags, a "start tag" and "end tag"; some attributes within the start tag; and finally, any textual and graphical content between the start and end tags, perhaps including other nested elements. The HTML element is everything between and including the start and end tags. Each tag is enclosed in angle brackets.

    Galaxy S3 case

  39. Timothy[ Go to top ]

    I found this article very interesting and informative! Keep sharing!

    Professional dissertation help uk

  40. Health care[ Go to top ]

    The purpose of a web browser is to read HTML documents and compose them into visible or audible web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page.

    how to get rid of acne

  41. House Construction[ Go to top ]

    This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea.

    realtors Calgary

  42. Calgary builders[ Go to top ]

    very nice article, its very help me. thanks to write this article its very beautiful article I very like this, i already read and i will always update to your next information. I have been meaning to write something like this on my website and you have given me an idea.

    Calgary builders

  43. <a href="http://www.fraja-algerie.com/">HTML elements form the building blocks of all websites. HTML allows images and objects to be embedded and can be used to create interactive forms.</a><a href="http://www.fraja-tunisie.com/videos-arabidol2-arab+Idol+2+Arabe+mahboub+alarab+el+arabe+2013+live-1.html">Arab idol</a><a href="http://www.fraja-tunisie.com/videos-xfactor-the+xfactor+arabe+2013-1.html">X factor arab 2013</a><a href="http://www.softihost.com/">softihost</a>

  44. excellent team, I like there songs

    Arab idol

    X factor arab 2013

    softihost

     

  45. release[ Go to top ]

    I have been looking forward to this release

    stork club newsreel

  46. hi[ Go to top ]

    I'm a blogger and recently, I just finished a short article regarding getting the UK life insurance quotes. That is why I am extremely amazed with the theserverside I stumbled across on your web site. But in the case you are curious, you can check out http://www.easylifeinsurancequotes.co.uk/ for info.

  47. It is difficult task[ Go to top ]

    This is great post. I actually searched for this type of post. Thus i am here. I read the post and amused to see its content. This is really a helpful post. Thanks for sharing this kind of informative post.bestdissertation.net

  48. kelowna builders[ Go to top ]

    Good Job!! I like you photos in this post..nice to know you and i want to exchange link with you as a friend?do you will accept me? thanks!

    kelowna builders

  49. INFORMATIVE[ Go to top ]

    This browser gonna be popular. i have checked this.i am gonna check more on this.San Ramon Divorce Lawyer
  50. House Construction[ Go to top ]

    I always like your blog post because you always come with different ideas and information. I always shared your site post with my friends. Keep posting and i will follow you.. home builders calgary
  51. HtmlUnit 2.4,[ Go to top ]

    HtmlUnit 2.4,is freaking awesome! learn to bartend
  52. Great![ Go to top ]

    This is really interesting, I know a high-level of manipulation of forms would increase consumer traffic to a website. People are more likely to sign-up for services if it reuires less time.

  53. hi[ Go to top ]

    While seeking BUSINESS CONSULTING advices and procedures to read on. I happen upon theserverside published on your internet site; and it really was very spectacular. Click here and scan it, you will be fond of learning it too.