HtmlUnit 2.3, a headless java browser, released

Discussions

News: HtmlUnit 2.3, a headless java browser, released

  1. HtmlUnit 2.3, a headless java browser, released (19 messages)

    A new release of the pure java headless 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, for instance Google Web Toolkit 1.5 tests now pass), but sometimes it can be used for web scraping, or downloading website content. The main enhancements:
    • Better generics: which eliminates casting for the most commonly used 'get' methods.
    • Firefox 3 support, and making Internet Explorer 7 the default browser.
    • Other bug fixes.
    You can find more information in the main website, the team is looking forward to getting your feedback.

    Threaded Messages (19)

  2. very nice , this is something I really looking for one of my research. Deepal http://blogs.deepal.org
  3. very nice , this is something I really looking for one of my research.

    Deepal
    http://blogs.deepal.org
    So far we have to use Wataj and WebDriver. While wataj is a port of watir - ruby lib that runs on top of IE. WebDriver can use FireFox, IE,Safari and HtmlUnit(this works much faster than all of the rest, thank you guys). Regards.
  4. Maven2 central repo[ Go to top ]

    I see guys you use maven any plans to make HtmlUnit available via central maven repo? Regards.
  5. Re: Maven2 central repo[ Go to top ]

    any plans to make HtmlUnit available via central maven repo?
    It is already there, please look into http://repo1.maven.org/maven2/net/sourceforge/htmlunit/htmlunit/
  6. Re: Maven2 central repo[ Go to top ]

    any plans to make HtmlUnit available via central maven repo?

    It is already there, please look into http://repo1.maven.org/maven2/net/sourceforge/htmlunit/htmlunit/
    Thanks!!! I was searching it under net.sf... Great Job guys!
  7. Good Job guys. Does it mean that javaScript will work on pages? Best Regards.
  8. Does it mean that javaScript will work on pages?
    Of course, JavaScript is automatically handled, please read http://htmlunit.sourceforge.net/javascript-howto.html
  9. does it have "recording tool" ?[ Go to top ]

    I like htmlunit - and still use it for web site monitoring(with Javascript turned off- in the last version) Does anyone know of a recording tool with htmlunit or httpunit ? Without recording tool - Its faster/easier to use Selenium for some of the test case that I traditionally used httpunit/htmlunit(besides it being a true browser test - but with extra dependency on "RC") Check my blog for more details.. http://www.jroller.com/selenium
  10. How to set the user and password when running behind a proxy? Thanks
  11. How to set the user and password when running behind a proxy?

    Thanks
    Please update your FAQ. Here is the solution final WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_7_0); webClient.setProxyConfig(new ProxyConfig("127.0.0.1",9999)); webClient.setThrowExceptionOnFailingStatusCode(false); //since some pages are giving 503 webClient.setThrowExceptionOnScriptError(false); //since htmlunit detect some errors in the javascripts webClient.setCredentialsProvider(new CredentialsProvider(){ public Credentials getCredentials(AuthScheme arg0, String arg1, int arg2, boolean arg3) throws CredentialsNotAvailableException { return new UsernamePasswordCredentials(System.getProperty("user"),System.getProperty("password")); } }); }
  12. Please update your FAQ. Here is the solution ...
    a user guide would be nice.
  13. Please update your FAQ. Here is the solution ...
    a user guide would be nice.
    The 'proxy credentials' example is committed in SVN (http://htmlunit.svn.sourceforge.net/viewvc/htmlunit/trunk/htmlunit/src/site/xdoc/gettingStarted.xml?revision=3490&view=markup#l_97) Please don't hesitate to provide your feedback to the user-list about API or website docs, and it will be handled in a timely manner. Thanks again,
  14. How to set the user and password when running behind a proxy?
    A simpler solution can be: WebClient webClient = new WebClient(BrowserVersion.FIREFOX_2, "proxy_host", proxy_port); ((DefaultCredentialsProvider) webClient.getCredentialsProvider()).addCredentials("username", "password");
  15. Congrats[ Go to top ]

    Congratulations to the HtmlUnit team. This is really great stuff. Since we switched JSFUnit's client to HtmlUnit we've found it much easier to handle JSF AJAX components. But the best part is that HtmlUnit has a responsive group of developers that addresses bugs quickly. Nice work. Stan Silvert JBoss Core Developer www.jsfunit.org
  16. Congratulations de le ka :)
  17. Interesting! It could be a great tool.
  18. Problems[ Go to top ]

    I downloaded the latest version but I got following javascript evaluation exception during execution Exception class=[org.mozilla.javascript.EvaluatorException] com.gargoylesoftware.htmlunit.ScriptException: Cannot get field 'ELEMENT_NODE' for type: Node How to solve the problem?
  19. Re: Problems[ Go to top ]

    I got following javascript evaluation exception during execution
    Exception class=[org.mozilla.javascript.EvaluatorException]
    com.gargoylesoftware.htmlunit.ScriptException:
    Cannot get field 'ELEMENT_NODE' for type: Node
    Can you please submit a test case? Because the below is correctly handled using BrowserVersion.FIREFOX_2 foo<script> function test() { alert(document.body.ELEMENT_NODE); } </script> You can also use the user-list to post any issue you have.
  20. Selenium and TestGen4Web -> HTMLUnit[ Go to top ]

    Congratulations to the HTMLUnit team. It's been really great to see HTMLUnit accelerate it's activity. It seems like HTMLUnit 2.1 got the excitement going. And there's a lot to be excited over. We've been using HTMLUnit for the past year in PushToTest TestMaker. Originally we used it to run SpikeSource TestGen4Web functional tests in multiple threads using HTMLUnit as load and performance tests. In TestMaker 5.2 we adopted Selenium. 5.2 runs Selenium tests as load and performance tests and business service monitors. Details are at http://selenium.pushtotest.com. We are glad to participate in the HTMLUnit project and hope to provide more patches and help to this great project. -Frank Cohen http://www.pushtotest.com