- 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.
-
HtmlUnit 2.3, a headless java browser, released (19 messages)
- Posted by: Ahmed Ashour
- Posted on: September 30 2008 16:27 EDT
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:Threaded Messages (19)
- Re: HtmlUnit 2.3, a headless java browser, released by Deepal Jayasinghe on October 01 2008 13:50 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Vitaliy Semochkin on October 01 2008 14:03 EDT
- Maven2 central repo by Vitaliy Semochkin on October 01 2008 19:04 EDT
-
Re: Maven2 central repo by Ahmed Ashour on October 01 2008 09:14 EDT
- Re: Maven2 central repo by Vitaliy Semochkin on October 02 2008 06:11 EDT
-
Re: Maven2 central repo by Ahmed Ashour on October 01 2008 09:14 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Vitaliy Semochkin on October 01 2008 14:02 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Ahmed Ashour on October 01 2008 14:33 EDT
- does it have "recording tool" ? by Sal Branco on October 01 2008 06:04 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Ahmed Ashour on October 01 2008 14:33 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Erik Bengtson on October 02 2008 02:48 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Erik Bengtson on October 02 2008 10:03 EDT
-
Re: HtmlUnit 2.3, a headless java browser, released by Benz Town Citizen on October 02 2008 10:18 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Ahmed Ashour on October 02 2008 06:25 EDT
-
Re: HtmlUnit 2.3, a headless java browser, released by Benz Town Citizen on October 02 2008 10:18 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Ahmed Ashour on October 02 2008 18:07 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Erik Bengtson on October 02 2008 10:03 EDT
- Congrats by Stan Silvert on October 02 2008 07:27 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Hossam Karim on October 04 2008 16:21 EDT
- Re: HtmlUnit 2.3, a headless java browser, released by Jorn Knarvik on October 06 2008 04:22 EDT
- Problems by Sutham Rojanusorn on October 06 2008 22:24 EDT
- Re: Problems by Ahmed Ashour on October 07 2008 03:01 EDT
- Selenium and TestGen4Web -> HTMLUnit by Frank Cohen on October 07 2008 04:44 EDT
-
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Deepal Jayasinghe
- Posted on: October 01 2008 13:50 EDT
- in response to Ahmed Ashour
very nice , this is something I really looking for one of my research. Deepal http://blogs.deepal.org -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Vitaliy Semochkin
- Posted on: October 01 2008 14:03 EDT
- in response to Deepal Jayasinghe
very nice , this is something I really looking for one of my research.
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.
Deepal
http://blogs.deepal.org -
Maven2 central repo[ Go to top ]
- Posted by: Vitaliy Semochkin
- Posted on: October 01 2008 19:04 EDT
- in response to Deepal Jayasinghe
I see guys you use maven any plans to make HtmlUnit available via central maven repo? Regards. -
Re: Maven2 central repo[ Go to top ]
- Posted by: Ahmed Ashour
- Posted on: October 01 2008 21:14 EDT
- in response to Vitaliy Semochkin
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/ -
Re: Maven2 central repo[ Go to top ]
- Posted by: Vitaliy Semochkin
- Posted on: October 02 2008 06:11 EDT
- in response to Ahmed Ashour
Thanks!!! I was searching it under net.sf... Great Job guys!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/ -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Vitaliy Semochkin
- Posted on: October 01 2008 14:02 EDT
- in response to Ahmed Ashour
Good Job guys. Does it mean that javaScript will work on pages? Best Regards. -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Ahmed Ashour
- Posted on: October 01 2008 14:33 EDT
- in response to Vitaliy Semochkin
Does it mean that javaScript will work on pages?
Of course, JavaScript is automatically handled, please read http://htmlunit.sourceforge.net/javascript-howto.html -
does it have "recording tool" ?[ Go to top ]
- Posted by: Sal Branco
- Posted on: October 01 2008 18:04 EDT
- in response to Ahmed Ashour
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 -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Erik Bengtson
- Posted on: October 02 2008 02:48 EDT
- in response to Ahmed Ashour
How to set the user and password when running behind a proxy? Thanks -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Erik Bengtson
- Posted on: October 02 2008 10:03 EDT
- in response to Erik Bengtson
How to set the user and password when running behind a proxy?
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")); } }); }
Thanks -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Benz Town Citizen
- Posted on: October 02 2008 10:18 EDT
- in response to Erik Bengtson
Please update your FAQ. Here is the solution ...
a user guide would be nice. -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Ahmed Ashour
- Posted on: October 02 2008 18:25 EDT
- in response to Benz Town Citizen
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,Please update your FAQ. Here is the solution ...
a user guide would be nice. -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Ahmed Ashour
- Posted on: October 02 2008 18:07 EDT
- in response to Erik Bengtson
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"); -
Congrats[ Go to top ]
- Posted by: Stan Silvert
- Posted on: October 02 2008 07:27 EDT
- in response to Ahmed Ashour
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 -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Hossam Karim
- Posted on: October 04 2008 16:21 EDT
- in response to Ahmed Ashour
Congratulations de le ka :) -
Re: HtmlUnit 2.3, a headless java browser, released[ Go to top ]
- Posted by: Jorn Knarvik
- Posted on: October 06 2008 04:22 EDT
- in response to Ahmed Ashour
Interesting! It could be a great tool. -
Problems[ Go to top ]
- Posted by: Sutham Rojanusorn
- Posted on: October 06 2008 22:24 EDT
- in response to Ahmed Ashour
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? -
Re: Problems[ Go to top ]
- Posted by: Ahmed Ashour
- Posted on: October 07 2008 03:01 EDT
- in response to Sutham Rojanusorn
I got following javascript evaluation exception during execution
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.
Exception class=[org.mozilla.javascript.EvaluatorException]
com.gargoylesoftware.htmlunit.ScriptException:
Cannot get field 'ELEMENT_NODE' for type: Node -
Selenium and TestGen4Web -> HTMLUnit[ Go to top ]
- Posted by: Frank Cohen
- Posted on: October 07 2008 04:44 EDT
- in response to Ahmed Ashour
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