<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2599</id>
	<title>Nabble - HtmlUnit - General</title>
	<updated>2009-12-17T09:21:57Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/HtmlUnit---General-f2599.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HtmlUnit---General-f2599.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26831727</id>
	<title>Fw: 403 forbidden</title>
	<published>2009-12-17T09:21:57Z</published>
	<updated>2009-12-17T09:21:57Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Gus,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;* You must subscribe to the list before posting&lt;/DIV&gt;
&lt;DIV&gt;* What about webClient.setThrowExceptionOnFailingStatusCode(false);&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&amp;nbsp;&lt;/DIV&gt;----&lt;BR&gt;Blog: &lt;A href=&quot;http://asashour.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://asashour.blogspot.com&lt;/A&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;----- Forwarded Message ----&lt;BR&gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;!-- cg37.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 12 08:18:28 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;

      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;Hi,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Is there a way to suppress stopping on receiving a 403 error. I am using htmlunit to access a site which is returning, mistakenly it seems a 403 error. The site also returns the html for the form. Thus a user using a browser sees the form fills it out and is able to use the site. HTMLUnit stops processing with the error.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 403 Forbidden for &lt;a href=&quot;https://my.airtricity.com/ews/welcome.jsp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://my.airtricity.com/ews/welcome.jsp&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;
Thanks,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Gus&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26831727&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fw%3A-403-forbidden-tp26831727p26831727.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26824280</id>
	<title>Javascript processing error</title>
	<published>2009-12-16T23:35:32Z</published>
	<updated>2009-12-16T23:35:32Z</updated>
	<author>
		<name>RogerV</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;I'm working on a scraping a site with ridiculously deeply nested frames and I'm getting Javascript exceptions when executing the javascript &amp;quot;parent.main.focus()&amp;quot; with the message &amp;quot;message=[TypeError: Method &amp;quot;focus&amp;quot; called on incompatible object. ...]. Walking the site manually works ok. [EDIT] I have setThrowExceptionOnScriptError(false) set on my webclient, but I'm still getting these errors
&lt;br&gt;&lt;br&gt;Any suggestions on how to deal with this?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Javascript-processing-error-tp26824280p26824280.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26821678</id>
	<title>Non-deterministic behavior with JavaScript</title>
	<published>2009-12-16T17:28:18Z</published>
	<updated>2009-12-16T17:28:18Z</updated>
	<author>
		<name>Sander A. Smith</name>
	</author>
	<content type="html">&lt;div&gt;I&amp;#39;m having some trouble with an application I&amp;#39;m writing, and hope that someone can clear up some questions for me. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;The application loads an HTML page which has several IFRAMES, uses lots of JavaScript, and performs some cross-browser functionality before settling down and displaying the page to the user. It works beautifully in a browser every time.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;However, when I use Htmlunit, it works properly about 2/3 of the time. The other 1/3 of the time, some of the JavaScript files never get fetched from the server, and the processing does not work properly.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;My naive understanding was that when I call webClient.getPage(url) it will block until all of the JavaScript processing is complete. My testing suggests that this isn&amp;#39;t the case - the call will return while there is still JavaScript executing. I&amp;#39;m not totally sure of this, the only diagnostics I have are writing to the console which is not entirely reliable. I also see the call waitForBackgroundJavaScriptStartingBefore which suggests this also (although I&amp;#39;ve had no luck using it).&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;So I can run the same exact test twice with all the same data and have Htmlunit succeed once and fail once. The only non-deterministic part of the test would seem to be the speed at which files are fetched from the web server. I&amp;#39;m thinking that perhaps this is creating some sort of race condition within Htmlunit. Is this possible?&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Anyone have any ideas on what I can look at? The processing that Htmlunit does on the JavaScript *should* be very deterministic (right?).&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Sander&lt;br&gt;&lt;br&gt;-- &lt;br&gt;Sander A. Smith&lt;br&gt;President&lt;br&gt;&lt;br&gt;Sericon Technology Inc.&lt;br&gt;71 Marquette Ave.&lt;br&gt;Toronto, Ontario M6A 1X8&lt;br&gt;(416)781-3988&lt;br&gt;&lt;br&gt;Link to me on LinkedIn&lt;br&gt;&lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;
&lt;br&gt;Join our community of people interested in testing Facebook applications&lt;br&gt;&lt;a href=&quot;http://www.TestFacebook.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Learn about advanced tools for testing social networking applications&lt;br&gt;
&lt;a href=&quot;http://www.FriendRunner.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.sericontech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821678&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Non-deterministic-behavior-with-JavaScript-tp26821678p26821678.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26820252</id>
	<title>Fw: Next Release?</title>
	<published>2009-12-16T14:45:40Z</published>
	<updated>2009-12-16T14:45:40Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Dan,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;* You must subscribe to the list before posting.&lt;/DIV&gt;
&lt;DIV&gt;* We hope to have a release&amp;nbsp;by end of this month.&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&lt;/DIV&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com
&lt;DIV&gt;&lt;BR&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;DIV style=&quot;FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt&quot;&gt;&lt;FONT size=2 face=Tahoma&gt;----- Forwarded Message ----&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!-- cg37.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 12 08:18:28 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;

      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;Hello,&lt;br&gt;&lt;br&gt;Any idea when the next release will be stamped?  Is there a schedule I can check?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Dan&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26820252&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fw%3A-Next-Release--tp26820252p26820252.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26813389</id>
	<title>Re: Enclosing Page sometime disappear</title>
	<published>2009-12-16T07:49:56Z</published>
	<updated>2009-12-16T07:49:56Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">Bug in current window computation? An example is welcome.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;Adim a écrit :
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; On my application I notice that sometimes after I successfully load and use
&lt;br&gt;&amp;gt; (xpath queries) then few seconds later the page turns to null (I use the
&lt;br&gt;&amp;gt; same web client &amp;nbsp;- webClient.getCurrentWindow().getEnclosedPage() ).
&lt;br&gt;&amp;gt; Any idea why it could happens? is there a some sort of time out?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Adi.
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26813389&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Enclosing-Page-sometime-disappear-tp26813133p26813389.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26813133</id>
	<title>Enclosing Page sometime disappear</title>
	<published>2009-12-16T07:37:58Z</published>
	<updated>2009-12-16T07:37:58Z</updated>
	<author>
		<name>Adim</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;On my application I notice that sometimes after I successfully load and use (xpath queries) then few seconds later the page turns to null (I use the same web client &amp;nbsp;- webClient.getCurrentWindow().getEnclosedPage() ).
&lt;br&gt;Any idea why it could happens? is there a some sort of time out?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Adi.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Enclosing-Page-sometime-disappear-tp26813133p26813133.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26810023</id>
	<title>Re: List of files downloaded</title>
	<published>2009-12-16T03:55:38Z</published>
	<updated>2009-12-16T03:55:38Z</updated>
	<author>
		<name>Sander A. Smith</name>
	</author>
	<content type="html">&lt;div&gt;Ahmed,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I spent many hours trying to figure this one out. Your solution works great. Thanks a lot.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Sander&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Dec 15, 2009 at 11:09 PM, Ahmed Ashour &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810023&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asashour@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote style=&quot;BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex&quot; class=&quot;gmail_quote&quot;&gt;
&lt;div&gt;
&lt;div style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Hi Sander,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;You can subclass HttpWebConnection, and override getResponse() method, something like:&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;        webClient.setWebConnection(new HttpWebConnection(webClient) {&lt;br&gt;            @Override&lt;br&gt;            public WebResponse getResponse(WebRequestSettings settings)&lt;br&gt;            throws IOException {&lt;br&gt;                System.out.println(settings.getUrl());&lt;br&gt;
                return super.getResponse(settings);&lt;br&gt;            }&lt;br&gt;        });&lt;br&gt;&lt;/div&gt;
&lt;div&gt;Yours,&lt;/div&gt;
&lt;div&gt;Ahmed&lt;/div&gt;----&lt;br&gt;Blog: &lt;a href=&quot;http://asashour.blogspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://asashour.blogspot.com&lt;/a&gt; 
&lt;div&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;
&lt;hr size=&quot;1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Sander A. Smith &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810023&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;smithsa@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810023&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Wed, December 16, 2009 6:00:26 AM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; [Htmlunit-user] List of files downloaded&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;h5&quot;&gt;
&lt;div style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;div style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;div&gt;I&amp;#39;m trying to create a list of the files (and their URLs) that are downloaded in response to an action to load a page. I can see how to get the JavaScript files by registering a ScriptPreProcessor, but what do I do about the JPGs, CSSs, etc.? How can I be notified when they load?&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Sander&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Sander A. Smith&lt;br&gt;President&lt;br&gt;&lt;br&gt;Sericon Technology Inc.&lt;br&gt;71 Marquette Ave.&lt;br&gt;Toronto, Ontario M6A 1X8&lt;br&gt;(416)781-3988&lt;br&gt;&lt;br&gt;Link to me on LinkedIn&lt;br&gt;&lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;
&lt;br&gt;Join our community of people interested in testing Facebook applications&lt;br&gt;&lt;a href=&quot;http://www.testfacebook.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Learn about advanced tools for testing social networking applications&lt;br&gt;
&lt;a href=&quot;http://www.friendrunner.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.sericontech.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community&lt;br&gt;Take advantage of Verizon&amp;#39;s best-in-class app development support&lt;br&gt;
A streamlined, 14 day to market process makes app distribution fast and easy&lt;br&gt;Join now and get one step closer to millions of Verizon customers&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt; &lt;br&gt;
_______________________________________________&lt;br&gt;Htmlunit-user mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810023&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Sander A. Smith&lt;br&gt;President&lt;br&gt;&lt;br&gt;Sericon Technology Inc.&lt;br&gt;71 Marquette Ave.&lt;br&gt;Toronto, Ontario M6A 1X8&lt;br&gt;(416)781-3988&lt;br&gt;&lt;br&gt;Link to me on LinkedIn&lt;br&gt;&lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;
&lt;br&gt;Join our community of people interested in testing Facebook applications&lt;br&gt;&lt;a href=&quot;http://www.TestFacebook.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Learn about advanced tools for testing social networking applications&lt;br&gt;
&lt;a href=&quot;http://www.FriendRunner.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.sericontech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810023&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/List-of-files-downloaded-tp26805562p26810023.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808576</id>
	<title>Re: List of files downloaded</title>
	<published>2009-12-16T01:39:14Z</published>
	<updated>2009-12-16T01:39:14Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">You can have a look at the DebuggingWebConnection as well, it generates 
&lt;br&gt;a report of all downloaded files.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;Ahmed Ashour a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Sander,
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; You can subclass HttpWebConnection, and override getResponse() method, 
&lt;br&gt;&amp;gt; something like:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setWebConnection(new HttpWebConnection(webClient) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @Override
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public WebResponse getResponse(WebRequestSettings settings)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throws IOException {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(settings.getUrl());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return super.getResponse(settings);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;gt; Yours,
&lt;br&gt;&amp;gt; Ahmed
&lt;br&gt;&amp;gt; ----
&lt;br&gt;&amp;gt; Blog: &lt;a href=&quot;http://asashour.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://asashour.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; *From:* Sander A. Smith &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26808576&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;smithsa@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; *To:* &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26808576&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; *Sent:* Wed, December 16, 2009 6:00:26 AM
&lt;br&gt;&amp;gt; *Subject:* [Htmlunit-user] List of files downloaded
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm trying to create a list of the files (and their URLs) that are 
&lt;br&gt;&amp;gt; downloaded in response to an action to load a page. I can see how to get 
&lt;br&gt;&amp;gt; the JavaScript files by registering a ScriptPreProcessor, but what do I 
&lt;br&gt;&amp;gt; do about the JPGs, CSSs, etc.? How can I be notified when they load?
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Sander
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Sander A. Smith
&lt;br&gt;&amp;gt; President
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sericon Technology Inc.
&lt;br&gt;&amp;gt; 71 Marquette Ave.
&lt;br&gt;&amp;gt; Toronto, Ontario M6A 1X8
&lt;br&gt;&amp;gt; (416)781-3988
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Link to me on LinkedIn
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Join our community of people interested in testing Facebook applications
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.TestFacebook.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Learn about advanced tools for testing social networking applications
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.FriendRunner.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.sericontech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26808576&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/List-of-files-downloaded-tp26805562p26808576.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806507</id>
	<title>Fw: ArrayIndexOutOfBoundsException in EncodingSniffer</title>
	<published>2009-12-15T21:33:52Z</published>
	<updated>2009-12-15T21:33:52Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hello Charles,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;* You must subscribe to the list before posting.&lt;/DIV&gt;
&lt;DIV&gt;* With 2.7-snapshot, I have a different error.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Anyway, please open a bug report.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&lt;BR&gt;----&lt;/DIV&gt;
&lt;DIV&gt;Blog: &lt;A href=&quot;http://asashour.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://asashour.blogspot.com&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;----- Forwarded Message ----&lt;/FONT&gt;&lt;BR&gt;The attached message has been automatically discarded.&lt;/DIV&gt;&lt;!-- cg37.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 12 08:18:28 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;



      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;Hi,
&lt;br&gt;I am using HtmlUnit 2.6 to scrape a website: 
&lt;br&gt;&lt;a href=&quot;http://infopost.spectraenergy.com/infopost/default.asp?pipe=AG&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://infopost.spectraenergy.com/infopost/default.asp?pipe=AG&lt;/a&gt;&lt;br&gt;This site loads &amp; works properly in IE and Firefox.
&lt;br&gt;In HtmlUnit, one of the iframes fails to load (404 error) so I try to ignore it, by calling 
&lt;br&gt;&amp;nbsp;webClient.setThrowExceptionOnFailingStatusCode(false); before calling getPage(). (I'm not sure if this part is relevant). 
&lt;br&gt;Anyway then I get another error:
&lt;br&gt;Exception in thread &amp;quot;main&amp;quot; java.lang.ArrayIndexOutOfBoundsException: 4099
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.util.EncodingSniffer.indexOfSubArray(EncodingSniffer.java:716)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.util.EncodingSniffer.sniffEncodingFromMetaTag(EncodingSniffer.java:351)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.util.EncodingSniffer.sniffHtmlEncoding(EncodingSniffer.java:225)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.util.EncodingSniffer.sniffEncoding(EncodingSniffer.java:134)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.WebResponseImpl.getContentCharsetOrNull(WebResponseImpl.java:179)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:329)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:447)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible(BaseFrame.java:125)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage(BaseFrame.java:95)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames(HtmlPage.java:1780)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:176)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:454)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:387)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:372)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at GetPage.main(GetPage.java:21)
&lt;br&gt;&lt;br&gt;I'm not sure how to get around this one! Can anyone help please?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806507&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fw%3A-ArrayIndexOutOfBoundsException-in-EncodingSniffer-tp26806507p26806507.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806385</id>
	<title>Re: facebook login</title>
	<published>2009-12-15T21:11:51Z</published>
	<updated>2009-12-15T21:11:51Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Sander,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Public sites like facebook changes frequently.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;By default, HtmlUnit fail with any JS error (just like real browsers),&amp;nbsp;you can configure that with webClient.setThrowExceptionOnScriptError(false), however&amp;nbsp;the website may not work correctly in this case.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regarding the below case, the API was incorrectly used:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;In the source of facebook login:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form method=&quot;POST&quot; action=&quot;...&quot; &lt;FONT color=#ff0000&gt;id&lt;/FONT&gt;=&quot;login_form&quot; onsubmit=&quot;...&quot;&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This&amp;nbsp;can be accessed by:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;page.getElementById(&quot;login_form&quot;)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Not by:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;page.getFormByName(&quot;login_form&quot;);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Because the form does not have a name.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&lt;/DIV&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;
&lt;HR SIZE=1&gt;
&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/SPAN&gt;&lt;/B&gt; Sander A. Smith &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806385&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;smithsa@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/SPAN&gt;&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806385&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/SPAN&gt;&lt;/B&gt; Tue, December 15, 2009 10:11:31 PM&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/SPAN&gt;&lt;/B&gt; Re: [Htmlunit-user] facebook login&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;DIV style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;DIV&gt;Okay, I'm a bit confused here, maybe someone can clue me in.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;My understanding was that Htmlunit has a problem with Facebook because the JavaScript that Facebook uses is known to be problematic. The browsers are able to deal with this, but Htmlunit can't. Of course, it's open source&amp;nbsp;built by volunteers, so I'll give you guys some slack and appreciate all of the stuff that DOES work.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;But now it sounds like things may work depending on how the HTML elements are addressed. Access them one way and things fail, but if you use XPath they work. Seems to me that this is competely separate from any JavaScript issues - what's going on?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Sander&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV class=gmail_quote&gt;On Tue, Dec 15, 2009 at 9:15 AM, Ahmed Ashour &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806385&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asashour@...&lt;/a&gt;&amp;gt;&lt;/SPAN&gt; wrote:&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex&quot; class=gmail_quote&gt;&lt;BR&gt;Great news.&lt;BR&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV class=h5&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;ihavealegohead wrote:&lt;div class='shrinkable-quote'&gt;&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt; ihavealegohead wrote:&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; I am testing htmlunit with facebook. &amp;nbsp;I try a login, but fails:&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; run:&lt;BR&gt;&amp;gt;&amp;gt; Dec 14, 2009 5:50:12 PM&lt;BR&gt;&amp;gt;&amp;gt; com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify&lt;BR&gt;&amp;gt;&amp;gt; WARNING: Expected content type of 'application/javascript' or&lt;BR&gt;&amp;gt;&amp;gt; 'application/ecmascript' for remotely loaded JavaScript element at&lt;BR&gt;&amp;gt;&amp;gt; 'http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js', but got&lt;BR&gt;&amp;gt;&amp;gt; 'application/x-javascript'.&lt;BR&gt;&amp;gt;&amp;gt; Exception in thread &quot;main&quot;&lt;BR&gt;&amp;gt;&amp;gt; com.gargoylesoftware.htmlunit.ElementNotFoundException:&lt;BR&gt;&amp;gt;&amp;gt; elementName=[form] attributeName=[name] attributeValue=[login_form]&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at&lt;BR&gt;&amp;gt;&amp;gt; com.gargoylesoftware.htmlunit.html.HtmlPage.getFormByName(HtmlPage.java:588)&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
 &amp;nbsp; at fblogin.Main.main(Main.java:36)&lt;BR&gt;&amp;gt;&amp;gt; Java Result: 1&lt;BR&gt;&amp;gt;&amp;gt; BUILD SUCCESSFUL (total time: 10 seconds)&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; Indeed, the login form attribute is login_form:&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; &amp;lt;form method=&quot;POST&quot;&lt;BR&gt;&amp;gt;&amp;gt; action=&quot;&lt;A href=&quot;https://login.facebook.com/login.php?login_attempt=1&quot; rel=&quot;nofollow&quot; target=_blank&gt;https://login.facebook.com/login.php?login_attempt=1&lt;/A&gt;&quot;&lt;BR&gt;&amp;gt;&amp;gt; id=&quot;login_form&quot;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; Here is my source:&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; package fblogin;&lt;BR&gt;&amp;gt;&amp;gt; import &lt;A href=&quot;http://java.io.io/&quot; target=_blank rel=&quot;nofollow&quot;&gt;java.io&lt;/A&gt;.IOException;&lt;BR&gt;&amp;gt;&amp;gt; import &lt;A href=&quot;http://java.net/&quot; target=_blank rel=&quot;nofollow&quot;&gt;java.net&lt;/A&gt;.URL;&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.BrowserVersion;&lt;BR&gt;&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.Page;&lt;BR&gt;&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.RefreshHandler;&lt;BR&gt;&amp;gt;&amp;gt; import
 com.gargoylesoftware.htmlunit.WebClient;&lt;BR&gt;&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.html.HtmlForm;&lt;BR&gt;&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.html.HtmlPage;&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; /**&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp;*&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp;* @author me&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp;*/&lt;BR&gt;&amp;gt;&amp;gt; public class Main {&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; /**&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @param args the command line arguments&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; public static void main(String[] args) throws Exception {&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Create and initialize WebClient object&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;webClient.setThrowExceptionOnScriptError(false);&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;webClient.setRefreshHandler(new RefreshHandler() {&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public void handleRefresh(Page page, URL url, int arg) throws&lt;BR&gt;&amp;gt;&amp;gt; IOException {&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println(&quot;handleRefresh&quot;);&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// visit Facebook login page and get the Form object&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HtmlPage page = (HtmlPage)&lt;BR&gt;&amp;gt;&amp;gt; webClient.getPage(&quot;http://www.facebook.com/login.php&quot;);&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HtmlForm form = page.getFormByName(&quot;login_form&quot;);&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Enter login and passwd&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
 &amp;nbsp;form.getInputByName(&quot;email&quot;).setValueAttribute(&quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806385&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;me@...&lt;/a&gt;&quot;);&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;form.getInputByName(&quot;pass&quot;).setValueAttribute(&quot;PASS&quot;);&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Click &quot;Login&quot; button/link&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;page = (HtmlPage) form.getInputByValue(&quot;Login&quot;).click();&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; }&lt;BR&gt;&amp;gt;&amp;gt; }&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;gt; Any idea how I messed this up?&lt;BR&gt;&amp;gt;&amp;gt;&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt;&lt;/div&gt;&lt;/DIV&gt;&lt;/DIV&gt;&amp;gt; I wasn't able to get that code to work, so I switched it to Xpath:&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlForm form =&lt;BR&gt;&amp;gt; page.getFirstByXPath(&quot;.//*[@id='login_form']&quot;);&lt;BR&gt;
&lt;DIV class=im&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&quot;email&quot;).setValueAttribute(&quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806385&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;me@...&lt;/a&gt;&quot;);&lt;BR&gt;&lt;/DIV&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&quot;pass&quot;).setValueAttribute(&quot;pass&quot;);&lt;BR&gt;
&lt;DIV class=im&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = (HtmlPage) form.getInputByValue(&quot;Login&quot;).click();&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt;&lt;BR&gt;&lt;/DIV&gt;&amp;gt; -Thank You-&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt;&lt;BR&gt;&lt;FONT color=#888888&gt;&lt;BR&gt;--&lt;BR&gt;View this message in context: http://old.nabble.com/facebook-login-tp26780472p26795475.html&lt;BR&gt;&lt;/FONT&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV class=h5&gt;Sent from the HtmlUnit - General mailing list archive at &lt;A href=&quot;http://nabble.com/&quot; target=_blank rel=&quot;nofollow&quot;&gt;Nabble.com&lt;/A&gt;.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;------------------------------------------------------------------------------&lt;BR&gt;Return on Information:&lt;BR&gt;Google Enterprise Search pays you back&lt;BR&gt;Get the facts.&lt;BR&gt;http://p.sf.net/sfu/google-dev2dev&lt;BR&gt;_______________________________________________&lt;BR&gt;Htmlunit-user mailing list&lt;BR&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806385&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; rel=&quot;nofollow&quot; target=_blank&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR clear=all&gt;&lt;BR&gt;-- &lt;BR&gt;Sander A. Smith&lt;BR&gt;President&lt;BR&gt;&lt;BR&gt;Sericon Technology Inc.&lt;BR&gt;71 Marquette Ave.&lt;BR&gt;Toronto, Ontario M6A 1X8&lt;BR&gt;(416)781-3988&lt;BR&gt;&lt;BR&gt;Link to
 me on LinkedIn&lt;BR&gt;http://www.linkedin.com/in/sandersmith&lt;BR&gt;&lt;BR&gt;Join our community of people interested in testing Facebook applications&lt;BR&gt;http://www.TestFacebook.com&lt;BR&gt;&lt;BR&gt;Learn about advanced tools for testing social networking applications&lt;BR&gt;http://www.FriendRunner.com&lt;BR&gt;&lt;BR&gt;http://www.sericontech.com&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!-- cg37.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 12 08:18:28 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;

      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806385&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/facebook-login-tp26780472p26806385.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806064</id>
	<title>Re: List of files downloaded</title>
	<published>2009-12-15T20:09:57Z</published>
	<updated>2009-12-15T20:09:57Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Sander,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;You can subclass HttpWebConnection, and override&amp;nbsp;getResponse() method, something like:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webClient.setWebConnection(new HttpWebConnection(webClient) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public WebResponse getResponse(WebRequestSettings settings)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throws IOException {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(settings.getUrl());&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return super.getResponse(settings);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;Yours,&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&lt;/DIV&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;
&lt;HR SIZE=1&gt;
&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/SPAN&gt;&lt;/B&gt; Sander A. Smith &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806064&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;smithsa@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/SPAN&gt;&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806064&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/SPAN&gt;&lt;/B&gt; Wed, December 16, 2009 6:00:26 AM&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/SPAN&gt;&lt;/B&gt; [Htmlunit-user] List of files downloaded&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;DIV style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;DIV&gt;I'm trying to create a list of the files (and their URLs) that are downloaded in response to an action to load a page. I can see how to get the JavaScript files by registering a ScriptPreProcessor, but what do I do about the JPGs, CSSs, etc.? How can I be notified when they load?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Sander&lt;BR clear=all&gt;&lt;BR&gt;-- &lt;BR&gt;Sander A. Smith&lt;BR&gt;President&lt;BR&gt;&lt;BR&gt;Sericon Technology Inc.&lt;BR&gt;71 Marquette Ave.&lt;BR&gt;Toronto, Ontario M6A 1X8&lt;BR&gt;(416)781-3988&lt;BR&gt;&lt;BR&gt;Link to me on LinkedIn&lt;BR&gt;http://www.linkedin.com/in/sandersmith&lt;BR&gt;&lt;BR&gt;Join our community of people interested in testing Facebook applications&lt;BR&gt;http://www.TestFacebook.com&lt;BR&gt;&lt;BR&gt;Learn about advanced tools for testing social networking applications&lt;BR&gt;http://www.FriendRunner.com&lt;BR&gt;&lt;BR&gt;http://www.sericontech.com&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!-- cg37.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 12 08:18:28 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;

      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806064&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/List-of-files-downloaded-tp26805562p26806064.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26805562</id>
	<title>List of files downloaded</title>
	<published>2009-12-15T19:00:26Z</published>
	<updated>2009-12-15T19:00:26Z</updated>
	<author>
		<name>Sander A. Smith</name>
	</author>
	<content type="html">&lt;div&gt;I&amp;#39;m trying to create a list of the files (and their URLs) that are downloaded in response to an action to load a page. I can see how to get the JavaScript files by registering a ScriptPreProcessor, but what do I do about the JPGs, CSSs, etc.? How can I be notified when they load?&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Sander&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Sander A. Smith&lt;br&gt;President&lt;br&gt;&lt;br&gt;Sericon Technology Inc.&lt;br&gt;71 Marquette Ave.&lt;br&gt;Toronto, Ontario M6A 1X8&lt;br&gt;(416)781-3988&lt;br&gt;&lt;br&gt;Link to me on LinkedIn&lt;br&gt;&lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;
&lt;br&gt;Join our community of people interested in testing Facebook applications&lt;br&gt;&lt;a href=&quot;http://www.TestFacebook.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Learn about advanced tools for testing social networking applications&lt;br&gt;
&lt;a href=&quot;http://www.FriendRunner.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.sericontech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26805562&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/List-of-files-downloaded-tp26805562p26805562.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800107</id>
	<title>Re: facebook login</title>
	<published>2009-12-15T11:11:31Z</published>
	<updated>2009-12-15T11:11:31Z</updated>
	<author>
		<name>Sander A. Smith</name>
	</author>
	<content type="html">&lt;div&gt;Okay, I&amp;#39;m a bit confused here, maybe someone can clue me in.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;My understanding was that Htmlunit has a problem with Facebook because the JavaScript that Facebook uses is known to be problematic. The browsers are able to deal with this, but Htmlunit can&amp;#39;t. Of course, it&amp;#39;s open source built by volunteers, so I&amp;#39;ll give you guys some slack and appreciate all of the stuff that DOES work.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;But now it sounds like things may work depending on how the HTML elements are addressed. Access them one way and things fail, but if you use XPath they work. Seems to me that this is competely separate from any JavaScript issues - what&amp;#39;s going on?&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Sander&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Dec 15, 2009 at 9:15 AM, Ahmed Ashour &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800107&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asashour@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote style=&quot;BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex&quot; class=&quot;gmail_quote&quot;&gt;&lt;br&gt;Great news.&lt;br&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;ihavealegohead wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ihavealegohead wrote:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; I am testing htmlunit with facebook.  I try a login, but fails:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; run:&lt;br&gt;
&amp;gt;&amp;gt; Dec 14, 2009 5:50:12 PM&lt;br&gt;&amp;gt;&amp;gt; com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify&lt;br&gt;&amp;gt;&amp;gt; WARNING: Expected content type of &amp;#39;application/javascript&amp;#39; or&lt;br&gt;&amp;gt;&amp;gt; &amp;#39;application/ecmascript&amp;#39; for remotely loaded JavaScript element at&lt;br&gt;
&amp;gt;&amp;gt; &amp;#39;&lt;a href=&quot;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js&lt;/a&gt;&amp;#39;, but got&lt;br&gt;&amp;gt;&amp;gt; &amp;#39;application/x-javascript&amp;#39;.&lt;br&gt;
&amp;gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot;&lt;br&gt;&amp;gt;&amp;gt; com.gargoylesoftware.htmlunit.ElementNotFoundException:&lt;br&gt;&amp;gt;&amp;gt; elementName=[form] attributeName=[name] attributeValue=[login_form]&lt;br&gt;&amp;gt;&amp;gt;         at&lt;br&gt;&amp;gt;&amp;gt; com.gargoylesoftware.htmlunit.html.HtmlPage.getFormByName(HtmlPage.java:588)&lt;br&gt;
&amp;gt;&amp;gt;         at fblogin.Main.main(Main.java:36)&lt;br&gt;&amp;gt;&amp;gt; Java Result: 1&lt;br&gt;&amp;gt;&amp;gt; BUILD SUCCESSFUL (total time: 10 seconds)&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Indeed, the login form attribute is login_form:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;lt;form method=&amp;quot;POST&amp;quot;&lt;br&gt;&amp;gt;&amp;gt; action=&amp;quot;&lt;a href=&quot;https://login.facebook.com/login.php?login_attempt=1&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://login.facebook.com/login.php?login_attempt=1&lt;/a&gt;&amp;quot;&lt;br&gt;&amp;gt;&amp;gt; id=&amp;quot;login_form&amp;quot;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Here is my source:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; package fblogin;&lt;br&gt;&amp;gt;&amp;gt; import java.io.IOException;&lt;br&gt;&amp;gt;&amp;gt; import java.net.URL;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.BrowserVersion;&lt;br&gt;
&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.Page;&lt;br&gt;&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.RefreshHandler;&lt;br&gt;&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.WebClient;&lt;br&gt;&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.html.HtmlForm;&lt;br&gt;
&amp;gt;&amp;gt; import com.gargoylesoftware.htmlunit.html.HtmlPage;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; /**&lt;br&gt;&amp;gt;&amp;gt;  *&lt;br&gt;&amp;gt;&amp;gt;  * @author me&lt;br&gt;&amp;gt;&amp;gt;  */&lt;br&gt;&amp;gt;&amp;gt; public class Main {&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;     /**&lt;/div&gt;
&amp;gt;&amp;gt;      * @param args the command line arguments&lt;br&gt;&amp;gt;&amp;gt;      */&lt;br&gt;&amp;gt;&amp;gt;     public static void main(String[] args) throws Exception {&lt;br&gt;&amp;gt;&amp;gt;         // Create and initialize WebClient object&lt;br&gt;&amp;gt;&amp;gt;          WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);&lt;br&gt;
&amp;gt;&amp;gt;          webClient.setThrowExceptionOnScriptError(false);&lt;br&gt;&amp;gt;&amp;gt;          webClient.setRefreshHandler(new RefreshHandler() {&lt;br&gt;&amp;gt;&amp;gt;                      public void handleRefresh(Page page, URL url, int arg) throws&lt;br&gt;
&amp;gt;&amp;gt; IOException {&lt;br&gt;&amp;gt;&amp;gt;                              System.out.println(&amp;quot;handleRefresh&amp;quot;);&lt;br&gt;&amp;gt;&amp;gt;                      }&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;          });&lt;br&gt;&amp;gt;&amp;gt;          // visit Facebook login page and get the Form object&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;          HtmlPage page = (HtmlPage)&lt;br&gt;&amp;gt;&amp;gt; webClient.getPage(&amp;quot;&lt;a href=&quot;http://www.facebook.com/login.php&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.facebook.com/login.php&lt;/a&gt;&amp;quot;);&lt;br&gt;&amp;gt;&amp;gt;          HtmlForm form = page.getFormByName(&amp;quot;login_form&amp;quot;);&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;                  // Enter login and passwd&lt;br&gt;&amp;gt;&amp;gt;          form.getInputByName(&amp;quot;email&amp;quot;).setValueAttribute(&amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800107&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;me@...&lt;/a&gt;&amp;quot;);&lt;br&gt;&amp;gt;&amp;gt;          form.getInputByName(&amp;quot;pass&amp;quot;).setValueAttribute(&amp;quot;PASS&amp;quot;);&lt;br&gt;
&amp;gt;&amp;gt;                  // Click &amp;quot;Login&amp;quot; button/link&lt;br&gt;&amp;gt;&amp;gt;          page = (HtmlPage) form.getInputByValue(&amp;quot;Login&amp;quot;).click();&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;     }&lt;br&gt;&amp;gt;&amp;gt; }&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Any idea how I messed this up?&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&amp;gt; I wasn&amp;#39;t able to get that code to work, so I switched it to Xpath:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;             HtmlForm form =&lt;br&gt;&amp;gt; page.getFirstByXPath(&amp;quot;.//*[@id=&amp;#39;login_form&amp;#39;]&amp;quot;);&lt;br&gt;

&lt;div class=&quot;im&quot;&gt;&amp;gt;           form.getInputByName(&amp;quot;email&amp;quot;).setValueAttribute(&amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800107&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;me@...&lt;/a&gt;&amp;quot;);&lt;br&gt;&lt;/div&gt;&amp;gt;           form.getInputByName(&amp;quot;pass&amp;quot;).setValueAttribute(&amp;quot;pass&amp;quot;);&lt;br&gt;

&lt;div class=&quot;im&quot;&gt;&amp;gt;             page = (HtmlPage) form.getInputByValue(&amp;quot;Login&amp;quot;).click();&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&lt;/div&gt;&amp;gt; -Thank You-&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;--&lt;br&gt;View this message in context: &lt;a href=&quot;http://old.nabble.com/facebook-login-tp26780472p26795475.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/facebook-login-tp26780472p26795475.html&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;h5&quot;&gt;Sent from the HtmlUnit - General mailing list archive at Nabble.com.&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;Return on Information:&lt;br&gt;Google Enterprise Search pays you back&lt;br&gt;
Get the facts.&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;Htmlunit-user mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800107&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Sander A. Smith&lt;br&gt;
President&lt;br&gt;&lt;br&gt;Sericon Technology Inc.&lt;br&gt;71 Marquette Ave.&lt;br&gt;Toronto, Ontario M6A 1X8&lt;br&gt;(416)781-3988&lt;br&gt;&lt;br&gt;Link to me on LinkedIn&lt;br&gt;&lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;
&lt;br&gt;Join our community of people interested in testing Facebook applications&lt;br&gt;&lt;a href=&quot;http://www.TestFacebook.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Learn about advanced tools for testing social networking applications&lt;br&gt;
&lt;a href=&quot;http://www.FriendRunner.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.sericontech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800107&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/facebook-login-tp26780472p26800107.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795475</id>
	<title>Re: facebook login</title>
	<published>2009-12-15T06:15:04Z</published>
	<updated>2009-12-15T06:15:04Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">Great news.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;ihavealegohead wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;ihavealegohead wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I am testing htmlunit with facebook. &amp;nbsp;I try a login, but fails:
&lt;br&gt;&lt;br&gt;run:
&lt;br&gt;Dec 14, 2009 5:50:12 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
&lt;br&gt;WARNING: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at '&lt;a href=&quot;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js'&lt;/a&gt;, but got 'application/x-javascript'.
&lt;br&gt;Exception in thread &amp;quot;main&amp;quot; com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[form] attributeName=[name] attributeValue=[login_form]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.HtmlPage.getFormByName(HtmlPage.java:588)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at fblogin.Main.main(Main.java:36)
&lt;br&gt;Java Result: 1
&lt;br&gt;BUILD SUCCESSFUL (total time: 10 seconds)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Indeed, the login form attribute is login_form:
&lt;br&gt;&lt;br&gt;&amp;lt;form method=&amp;quot;POST&amp;quot; action=&amp;quot;&lt;a href=&quot;https://login.facebook.com/login.php?login_attempt=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://login.facebook.com/login.php?login_attempt=1&lt;/a&gt;&amp;quot; id=&amp;quot;login_form&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;Here is my source:
&lt;br&gt;&lt;br&gt;package fblogin;
&lt;br&gt;import java.io.IOException;
&lt;br&gt;import java.net.URL;
&lt;br&gt;&lt;br&gt;import com.gargoylesoftware.htmlunit.BrowserVersion;
&lt;br&gt;import com.gargoylesoftware.htmlunit.Page;
&lt;br&gt;import com.gargoylesoftware.htmlunit.RefreshHandler;
&lt;br&gt;import com.gargoylesoftware.htmlunit.WebClient;
&lt;br&gt;import com.gargoylesoftware.htmlunit.html.HtmlForm;
&lt;br&gt;import com.gargoylesoftware.htmlunit.html.HtmlPage;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;/**
&lt;br&gt;&amp;nbsp;*
&lt;br&gt;&amp;nbsp;* @author me
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;public class Main {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param args the command line arguments
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) throws Exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Create and initialize WebClient object
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setThrowExceptionOnScriptError(false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setRefreshHandler(new RefreshHandler() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void handleRefresh(Page page, URL url, int arg) throws IOException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;handleRefresh&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // visit Facebook login page and get the Form object
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlPage page = (HtmlPage) webClient.getPage(&amp;quot;&lt;a href=&quot;http://www.facebook.com/login.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.facebook.com/login.php&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlForm form = page.getFormByName(&amp;quot;login_form&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp;// Enter login and passwd
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;email&amp;quot;).setValueAttribute(&amp;quot;me@email.com&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;pass&amp;quot;).setValueAttribute(&amp;quot;PASS&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp;// Click &amp;quot;Login&amp;quot; button/link
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = (HtmlPage) form.getInputByValue(&amp;quot;Login&amp;quot;).click();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Any idea how I messed this up?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;br&gt;I wasn't able to get that code to work, so I switched it to Xpath:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlForm form = page.getFirstByXPath(&amp;quot;.//*[@id='login_form']&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;email&amp;quot;).setValueAttribute(&amp;quot;me@email.com&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;pass&amp;quot;).setValueAttribute(&amp;quot;pass&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = (HtmlPage) form.getInputByValue(&amp;quot;Login&amp;quot;).click();
&lt;br&gt;&lt;br&gt;&lt;br&gt;-Thank You-
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/facebook-login-tp26780472p26795475.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795333</id>
	<title>Re: facebook login</title>
	<published>2009-12-15T06:05:11Z</published>
	<updated>2009-12-15T06:05:11Z</updated>
	<author>
		<name>ihavealegohead</name>
	</author>
	<content type="html">&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;ihavealegohead wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I am testing htmlunit with facebook. &amp;nbsp;I try a login, but fails:
&lt;br&gt;&lt;br&gt;run:
&lt;br&gt;Dec 14, 2009 5:50:12 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
&lt;br&gt;WARNING: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at '&lt;a href=&quot;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js'&lt;/a&gt;, but got 'application/x-javascript'.
&lt;br&gt;Exception in thread &amp;quot;main&amp;quot; com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[form] attributeName=[name] attributeValue=[login_form]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.HtmlPage.getFormByName(HtmlPage.java:588)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at fblogin.Main.main(Main.java:36)
&lt;br&gt;Java Result: 1
&lt;br&gt;BUILD SUCCESSFUL (total time: 10 seconds)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Indeed, the login form attribute is login_form:
&lt;br&gt;&lt;br&gt;&amp;lt;form method=&amp;quot;POST&amp;quot; action=&amp;quot;&lt;a href=&quot;https://login.facebook.com/login.php?login_attempt=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://login.facebook.com/login.php?login_attempt=1&lt;/a&gt;&amp;quot; id=&amp;quot;login_form&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;Here is my source:
&lt;br&gt;&lt;br&gt;package fblogin;
&lt;br&gt;import java.io.IOException;
&lt;br&gt;import java.net.URL;
&lt;br&gt;&lt;br&gt;import com.gargoylesoftware.htmlunit.BrowserVersion;
&lt;br&gt;import com.gargoylesoftware.htmlunit.Page;
&lt;br&gt;import com.gargoylesoftware.htmlunit.RefreshHandler;
&lt;br&gt;import com.gargoylesoftware.htmlunit.WebClient;
&lt;br&gt;import com.gargoylesoftware.htmlunit.html.HtmlForm;
&lt;br&gt;import com.gargoylesoftware.htmlunit.html.HtmlPage;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;/**
&lt;br&gt;&amp;nbsp;*
&lt;br&gt;&amp;nbsp;* @author me
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;public class Main {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param args the command line arguments
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) throws Exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Create and initialize WebClient object
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setThrowExceptionOnScriptError(false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setRefreshHandler(new RefreshHandler() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void handleRefresh(Page page, URL url, int arg) throws IOException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;handleRefresh&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // visit Facebook login page and get the Form object
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlPage page = (HtmlPage) webClient.getPage(&amp;quot;&lt;a href=&quot;http://www.facebook.com/login.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.facebook.com/login.php&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlForm form = page.getFormByName(&amp;quot;login_form&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp;// Enter login and passwd
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;email&amp;quot;).setValueAttribute(&amp;quot;me@email.com&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;pass&amp;quot;).setValueAttribute(&amp;quot;PASS&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp;// Click &amp;quot;Login&amp;quot; button/link
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = (HtmlPage) form.getInputByValue(&amp;quot;Login&amp;quot;).click();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Any idea how I messed this up?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;br&gt;I wasn't able to get that code to work, so I switched it to Xpath:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlForm form = page.getFirstByXPath(&amp;quot;.//*[@id='login_form']&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;email&amp;quot;).setValueAttribute(&amp;quot;me@email.com&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;pass&amp;quot;).setValueAttribute(&amp;quot;pass&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = (HtmlPage) form.getInputByValue(&amp;quot;Login&amp;quot;).click();
&lt;br&gt;&lt;br&gt;&lt;br&gt;-Thank You-
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/facebook-login-tp26780472p26795333.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26790613</id>
	<title>Re: wrong content encoding</title>
	<published>2009-12-14T23:20:18Z</published>
	<updated>2009-12-14T23:20:18Z</updated>
	<author>
		<name>reinhard schwab</name>
	</author>
	<content type="html">the encoding sniffer returns charset null.
&lt;br&gt;it extracts 8859-1 from
&lt;br&gt;content=&amp;quot;text/html; charset=8859-1&amp;quot;
&lt;br&gt;&lt;br&gt;but Charset.isSupported(charset); returns false.
&lt;br&gt;it seems than to take the
&lt;br&gt;&lt;br&gt;TextUtil.DEFAULT_CHARSET = &amp;quot;ISO-8859-1&amp;quot;;
&lt;br&gt;&lt;br&gt;if i add
&lt;br&gt;response.getRequestSettings().setCharset(charset);
&lt;br&gt;to my test code, my problem is fixed in this special case.
&lt;br&gt;this could be also done in the constructor of StringWebResponse.
&lt;br&gt;&lt;br&gt;&amp;nbsp;public StringWebResponse(final String content, final String charset,
&lt;br&gt;final URL originatingURL) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(getWebResponseData(content, charset), new
&lt;br&gt;WebRequestSettings(originatingURL, HttpMethod.GET), 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;regards
&lt;br&gt;reinhard
&lt;br&gt;&lt;br&gt;reinhard schwab schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; the content of
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.donauwirt.at/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.donauwirt.at/&lt;/a&gt;&lt;br&gt;&amp;gt; is in UTF-8, but meta tag in document claims to be ISO-8859-1.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; htmlunit overrules the encoding i provide, UTF-8, detected by some
&lt;br&gt;&amp;gt; charset detection tool.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; here the sample code and the output.
&lt;br&gt;&amp;gt; i use a recent svn version and also a 2.7 snapshot.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; String charset = encoding;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; String content = null;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; content = new String(contentBytes, charset);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (UnsupportedEncodingException e) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebResponse response = new StringWebResponse(content, charset, base);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlPage page = null;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = createHtmlPage(response, window);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // LOG.info(page.getInputEncoding());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;charset &amp;quot; + charset);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;page.getEncoding() &amp;quot; + page.getPageEncoding());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;title &amp;quot; + page.getTitleText());
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; INFO &amp;nbsp;06:54:08,366 Test2: charset UTF-8
&lt;br&gt;&amp;gt; INFO &amp;nbsp;06:54:08,369 Test2: page.getEncoding() ISO-8859-1
&lt;br&gt;&amp;gt; INFO &amp;nbsp;06:54:08,867 Test2: title Donauwirt online - Herbst - die Zeit
&lt;br&gt;&amp;gt; des GenieÃens
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; there exists a similar bug
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2860732&amp;group_id=47038&amp;atid=448266&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2860732&amp;group_id=47038&amp;atid=448266&lt;/a&gt;&lt;br&gt;&amp;gt; which is closed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; regards
&lt;br&gt;&amp;gt; reinhard
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790613&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790613&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wrong-content-encoding-tp26789916p26790613.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26789916</id>
	<title>wrong content encoding</title>
	<published>2009-12-14T22:05:42Z</published>
	<updated>2009-12-14T22:05:42Z</updated>
	<author>
		<name>reinhard schwab</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;the content of
&lt;br&gt;&lt;a href=&quot;http://www.donauwirt.at/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.donauwirt.at/&lt;/a&gt;&lt;br&gt;is in UTF-8, but meta tag in document claims to be ISO-8859-1.
&lt;br&gt;&lt;br&gt;htmlunit overrules the encoding i provide, UTF-8, detected by some
&lt;br&gt;charset detection tool.
&lt;br&gt;&lt;br&gt;here the sample code and the output.
&lt;br&gt;i use a recent svn version and also a 2.7 snapshot.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; String charset = encoding;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; String content = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; content = new String(contentBytes, charset);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (UnsupportedEncodingException e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; WebResponse response = new StringWebResponse(content, charset, base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlPage page = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = createHtmlPage(response, window);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // LOG.info(page.getInputEncoding());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;charset &amp;quot; + charset);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;page.getEncoding() &amp;quot; + page.getPageEncoding());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;title &amp;quot; + page.getTitleText());
&lt;br&gt;&lt;br&gt;&lt;br&gt;INFO &amp;nbsp;06:54:08,366 Test2: charset UTF-8
&lt;br&gt;INFO &amp;nbsp;06:54:08,369 Test2: page.getEncoding() ISO-8859-1
&lt;br&gt;INFO &amp;nbsp;06:54:08,867 Test2: title Donauwirt online - Herbst - die Zeit
&lt;br&gt;des GenieÃens
&lt;br&gt;&lt;br&gt;there exists a similar bug
&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2860732&amp;group_id=47038&amp;atid=448266&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2860732&amp;group_id=47038&amp;atid=448266&lt;/a&gt;&lt;br&gt;which is closed.
&lt;br&gt;&lt;br&gt;regards
&lt;br&gt;reinhard
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26789916&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wrong-content-encoding-tp26789916p26789916.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26789180</id>
	<title>Re: facebook login</title>
	<published>2009-12-14T20:14:54Z</published>
	<updated>2009-12-14T20:14:54Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;* You must subscribe to the list before posting.
&lt;br&gt;* The last time Facebook was checked, there were errors in Facebook website (as shown by JS errors in real browsers), which could be 'ignored' in real browsers, but not with HtmlUnit.
&lt;br&gt;&lt;br&gt;If you think HtmlUnit is incorrect, please open a bug report, preferably with minimal test case as hinted in &lt;a href=&quot;http://htmlunit.sourceforge.net/submittingJSBugs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://htmlunit.sourceforge.net/submittingJSBugs.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Yours,
&lt;br&gt;Ahmed
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;ihavealegohead wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I am testing htmlunit with facebook. &amp;nbsp;I try a login, but fails:
&lt;br&gt;&lt;br&gt;run:
&lt;br&gt;Dec 14, 2009 5:50:12 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
&lt;br&gt;WARNING: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at '&lt;a href=&quot;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js'&lt;/a&gt;, but got 'application/x-javascript'.
&lt;br&gt;Exception in thread &amp;quot;main&amp;quot; com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[form] attributeName=[name] attributeValue=[login_form]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.HtmlPage.getFormByName(HtmlPage.java:588)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at fblogin.Main.main(Main.java:36)
&lt;br&gt;Java Result: 1
&lt;br&gt;BUILD SUCCESSFUL (total time: 10 seconds)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Indeed, the login form attribute is login_form:
&lt;br&gt;&lt;br&gt;&amp;lt;form method=&amp;quot;POST&amp;quot; action=&amp;quot;&lt;a href=&quot;https://login.facebook.com/login.php?login_attempt=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://login.facebook.com/login.php?login_attempt=1&lt;/a&gt;&amp;quot; id=&amp;quot;login_form&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;Here is my source:
&lt;br&gt;&lt;br&gt;package fblogin;
&lt;br&gt;import java.io.IOException;
&lt;br&gt;import java.net.URL;
&lt;br&gt;&lt;br&gt;import com.gargoylesoftware.htmlunit.BrowserVersion;
&lt;br&gt;import com.gargoylesoftware.htmlunit.Page;
&lt;br&gt;import com.gargoylesoftware.htmlunit.RefreshHandler;
&lt;br&gt;import com.gargoylesoftware.htmlunit.WebClient;
&lt;br&gt;import com.gargoylesoftware.htmlunit.html.HtmlForm;
&lt;br&gt;import com.gargoylesoftware.htmlunit.html.HtmlPage;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;/**
&lt;br&gt;&amp;nbsp;*
&lt;br&gt;&amp;nbsp;* @author me
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;public class Main {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param args the command line arguments
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) throws Exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Create and initialize WebClient object
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setThrowExceptionOnScriptError(false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setRefreshHandler(new RefreshHandler() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void handleRefresh(Page page, URL url, int arg) throws IOException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;handleRefresh&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // visit Facebook login page and get the Form object
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlPage page = (HtmlPage) webClient.getPage(&amp;quot;&lt;a href=&quot;http://www.facebook.com/login.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.facebook.com/login.php&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlForm form = page.getFormByName(&amp;quot;login_form&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp;// Enter login and passwd
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;email&amp;quot;).setValueAttribute(&amp;quot;me@email.com&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;pass&amp;quot;).setValueAttribute(&amp;quot;PASS&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp;// Click &amp;quot;Login&amp;quot; button/link
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = (HtmlPage) form.getInputByValue(&amp;quot;Login&amp;quot;).click();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Any idea how I messed this up?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/facebook-login-tp26780472p26789180.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26780472</id>
	<title>facebook login</title>
	<published>2009-12-14T16:54:43Z</published>
	<updated>2009-12-14T16:54:43Z</updated>
	<author>
		<name>ihavealegohead</name>
	</author>
	<content type="html">I am testing htmlunit with facebook. &amp;nbsp;I try a login, but fails:
&lt;br&gt;&lt;br&gt;run:
&lt;br&gt;Dec 14, 2009 5:50:12 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
&lt;br&gt;WARNING: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at '&lt;a href=&quot;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://b.static.ak.fbcdn.net/rsrc.php/zCOXE/hash/dbni8t78.js'&lt;/a&gt;, but got 'application/x-javascript'.
&lt;br&gt;Exception in thread &amp;quot;main&amp;quot; com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[form] attributeName=[name] attributeValue=[login_form]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.html.HtmlPage.getFormByName(HtmlPage.java:588)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at fblogin.Main.main(Main.java:36)
&lt;br&gt;Java Result: 1
&lt;br&gt;BUILD SUCCESSFUL (total time: 10 seconds)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Indeed, the login form attribute is login_form:
&lt;br&gt;&lt;br&gt;&amp;lt;form method=&amp;quot;POST&amp;quot; action=&amp;quot;&lt;a href=&quot;https://login.facebook.com/login.php?login_attempt=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://login.facebook.com/login.php?login_attempt=1&lt;/a&gt;&amp;quot; id=&amp;quot;login_form&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;Here is my source:
&lt;br&gt;&lt;br&gt;package fblogin;
&lt;br&gt;import java.io.IOException;
&lt;br&gt;import java.net.URL;
&lt;br&gt;&lt;br&gt;import com.gargoylesoftware.htmlunit.BrowserVersion;
&lt;br&gt;import com.gargoylesoftware.htmlunit.Page;
&lt;br&gt;import com.gargoylesoftware.htmlunit.RefreshHandler;
&lt;br&gt;import com.gargoylesoftware.htmlunit.WebClient;
&lt;br&gt;import com.gargoylesoftware.htmlunit.html.HtmlForm;
&lt;br&gt;import com.gargoylesoftware.htmlunit.html.HtmlPage;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;/**
&lt;br&gt;&amp;nbsp;*
&lt;br&gt;&amp;nbsp;* @author me
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;public class Main {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param args the command line arguments
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) throws Exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Create and initialize WebClient object
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setThrowExceptionOnScriptError(false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setRefreshHandler(new RefreshHandler() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void handleRefresh(Page page, URL url, int arg) throws IOException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;handleRefresh&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // visit Facebook login page and get the Form object
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlPage page = (HtmlPage) webClient.getPage(&amp;quot;&lt;a href=&quot;http://www.facebook.com/login.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.facebook.com/login.php&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlForm form = page.getFormByName(&amp;quot;login_form&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp;// Enter login and passwd
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;email&amp;quot;).setValueAttribute(&amp;quot;me@email.com&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; form.getInputByName(&amp;quot;pass&amp;quot;).setValueAttribute(&amp;quot;PASS&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp;// Click &amp;quot;Login&amp;quot; button/link
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = (HtmlPage) form.getInputByValue(&amp;quot;Login&amp;quot;).click();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Any idea how I messed this up?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/facebook-login-tp26780472p26780472.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26778520</id>
	<title>possible bug?</title>
	<published>2009-12-14T06:18:18Z</published>
	<updated>2009-12-14T06:18:18Z</updated>
	<author>
		<name>Ster Lob</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am using htmlunit to simulate a user selecting a drop
&lt;br&gt;down menu item on &lt;a href=&quot;http://www.hsbc.com.hk/1/2/hk/mortgages/valuation. &quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.hsbc.com.hk/1/2/hk/mortgages/valuation. &lt;/a&gt;&lt;br&gt;The page loads fine on a real browser, but htmlunit appears to choke by
&lt;br&gt;running out of heap space of 1GB.  Here's the code I used:
&lt;br&gt;&lt;br&gt;WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_7);
&lt;br&gt;// load the page
&lt;br&gt;HtmlPage selectZonePage = webClient.getPage(&amp;quot;&lt;a href=&quot;http://www.hsbc.com.hk/1/2/hk/mortgages/valuation&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.hsbc.com.hk/1/2/hk/mortgages/valuation&lt;/a&gt;&amp;quot;);
&lt;br&gt;&lt;br&gt;// get the selector
&lt;br&gt;HtmlSelect zoneSelector = (HtmlSelect) selectZonePage.getByXPath(&amp;quot;//select[@name='PC_7_2_IEP_locateinput.zone']&amp;quot;).get(0);
&lt;br&gt;&lt;br&gt;HtmlOption option = zoneSelector.getOption(1);
&lt;br&gt;        
&lt;br&gt;// select an item from the menu
&lt;br&gt;&amp;nbsp;HtmlPage newPage = (HtmlPage)zoneSelector.setSelectedAttribute(option.getValueAttribute(),
&lt;br&gt;&amp;nbsp;true);
&lt;br&gt;&lt;br&gt;// never returns
&lt;br&gt;&lt;br&gt;I looked at the debug output and it appears that it is continuously
&lt;br&gt;loading some javascript code and doesn't return.  So I am wondering if
&lt;br&gt;that is because of a problem with the javascript on the site or a
&lt;br&gt;possible bug or perhaps my misuse of the API?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Lob
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Yahoo!香港提供網上安全攻略，教你如何防範黑客! 請前往 &lt;a href=&quot;http://hk.promo.yahoo.com/security/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hk.promo.yahoo.com/security/&lt;/a&gt;&amp;nbsp;了解更多!
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26778520&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/possible-bug--tp26778520p26778520.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26775439</id>
	<title>Re: A error when htmlunit-2.7-SNAPSHOT used for parsing GoogleCodeSearch result's Webpages</title>
	<published>2009-12-14T02:01:03Z</published>
	<updated>2009-12-14T02:01:03Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Dai,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please open a bug report.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The smaller the html/js involved, the quicker it should be fixed.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please try to isolate a minimal case as hinted in &lt;A href=&quot;http://htmlunit.sourceforge.net/submittingJSBugs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://htmlunit.sourceforge.net/submittingJSBugs.html&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&amp;nbsp;&lt;/DIV&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;
&lt;HR SIZE=1&gt;
&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/SPAN&gt;&lt;/B&gt; Dai Phan the &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26775439&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bigword7681@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/SPAN&gt;&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26775439&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-develop@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Cc:&lt;/SPAN&gt;&lt;/B&gt; htmlunit user &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26775439&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/SPAN&gt;&lt;/B&gt; Sun, December 13, 2009 9:05:21 PM&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/SPAN&gt;&lt;/B&gt; [Htmlunit-user] A error when htmlunit-2.7-SNAPSHOT used for parsing GoogleCodeSearch result's Webpages&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;Dear everyone,&lt;BR&gt;I am trying use htmlunit-2.7-SNAPSHOT,&lt;BR&gt;to parse some of result's webpages of GoogleCodeSearch, &lt;BR&gt;for instance &quot;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&quot;.&lt;BR&gt;&lt;BR&gt;This is my code, and the attached file with Log of error. I am very grateful to you for your explanation for this issue. How I should correct it?&lt;BR&gt;&lt;BR&gt;import &lt;A href=&quot;http://java.io.io/&quot; target=_blank rel=&quot;nofollow&quot;&gt;java.io&lt;/A&gt;.IOException;&lt;BR&gt;import &lt;A href=&quot;http://java.net.ma/&quot; target=_blank rel=&quot;nofollow&quot;&gt;java.net&lt;/A&gt;.MalformedURLException;&lt;BR&gt;&lt;BR&gt;import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException;&lt;BR&gt;import com.gargoylesoftware.htmlunit.WebClient;&lt;BR&gt;import com.gargoylesoftware.htmlunit.html.HtmlPage;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; public class TestGooglePaser {&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static void main(String[] args)&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throws FailingHttpStatusCodeException, MalformedURLException, IOException {&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final WebClient webClient = new WebClient();&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final HtmlPage page = webClient&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .getPage(&quot;&lt;A href=&quot;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&lt;/A&gt;&quot;);&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.waitForBackgroundJavaScriptStartingBefore(10000);&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.waitForBackgroundJavaScript(10000);&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(page.asXml());&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR&gt;&amp;nbsp; &amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;This is sumary of error:&lt;BR&gt;SEVERE: Job run failed with unexpected RuntimeException: TypeError: Cannot read property &quot;caller&quot; from undefined (http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317)&lt;BR&gt;&lt;BR&gt;======= EXCEPTION START ========&lt;BR&gt;EcmaError: lineNumber=[2317] column=[0] lineSource=[null] name=[TypeError] sourceName=[http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js] &lt;BR&gt;message=[TypeError: Cannot read property &quot;caller&quot; from undefined (&lt;A href=&quot;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&lt;/A&gt;)]&lt;BR&gt;com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property &quot;caller&quot; from undefined (&lt;A href=&quot;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&lt;/A&gt;)&lt;BR&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:526)&lt;BR&gt;....&lt;BR&gt;== CALLING JAVASCRIPT ==&lt;BR&gt;&amp;nbsp; function () {&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (/loaded|complete/.test(k.readyState)) {&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A();&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;======= EXCEPTION END ========&lt;BR&gt;&lt;BR&gt;Thank you very much !&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;
 &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;!-- cg37.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 12 08:18:28 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;



      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26775439&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-error-when-htmlunit-2.7-SNAPSHOT-used-for-parsing-GoogleCodeSearch-result%27s-Webpages-tp26774530p26775439.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26774530</id>
	<title>A error when htmlunit-2.7-SNAPSHOT used for parsing GoogleCodeSearch result's Webpages</title>
	<published>2009-12-13T10:05:21Z</published>
	<updated>2009-12-13T10:05:21Z</updated>
	<author>
		<name>Dai Phan the</name>
	</author>
	<content type="html">Dear everyone,
&lt;br&gt;I am trying use htmlunit-2.7-SNAPSHOT,
&lt;br&gt;to parse some of result's webpages of GoogleCodeSearch, 
&lt;br&gt;for instance &amp;quot;&lt;a href=&quot;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&lt;/a&gt;&amp;quot;.
&lt;br&gt;&lt;br&gt;This is my code, and the attached file with Log of error. I am very grateful to you for your explanation for this issue. How I should correct it?
&lt;br&gt;&lt;br&gt;import java.io.IOException;
&lt;br&gt;import java.net.MalformedURLException;
&lt;br&gt;&lt;br&gt;import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException;
&lt;br&gt;import com.gargoylesoftware.htmlunit.WebClient;
&lt;br&gt;import com.gargoylesoftware.htmlunit.html.HtmlPage;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public class TestGooglePaser {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static void main(String[] args)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throws FailingHttpStatusCodeException, MalformedURLException, IOException {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final WebClient webClient = new WebClient();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final HtmlPage page = webClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .getPage(&amp;quot;&lt;a href=&quot;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.waitForBackgroundJavaScriptStartingBefore(10000);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.waitForBackgroundJavaScript(10000);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(page.asXml());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;This is sumary of error:
&lt;br&gt;SEVERE: Job run failed with unexpected RuntimeException: TypeError: Cannot read property &amp;quot;caller&amp;quot; from undefined (&lt;a href=&quot;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&lt;/a&gt;)
&lt;br&gt;&lt;br&gt;======= EXCEPTION START ========
&lt;br&gt;EcmaError: lineNumber=[2317] column=[0] lineSource=[null] name=[TypeError] sourceName=[&lt;a href=&quot;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js&lt;/a&gt;] 
&lt;br&gt;message=[TypeError: Cannot read property &amp;quot;caller&amp;quot; from undefined (&lt;a href=&quot;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&lt;/a&gt;)]
&lt;br&gt;com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property &amp;quot;caller&amp;quot; from undefined (&lt;a href=&quot;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/js/BrowsePage/B1C9F2A3FB805855187D6A49CB08D19B.cache.js#2317&lt;/a&gt;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:526)
&lt;br&gt;....
&lt;br&gt;== CALLING JAVASCRIPT ==
&lt;br&gt;&amp;nbsp; function () {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (/loaded|complete/.test(k.readyState)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;======= EXCEPTION END ========
&lt;br&gt;&lt;br&gt;Thank you very much !
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26774530&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;log_run_with_GoogleCodeSearch.doc&lt;/strong&gt; (54K) &lt;a href=&quot;http://old.nabble.com/attachment/26774530/0/log_run_with_GoogleCodeSearch.doc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-error-when-htmlunit-2.7-SNAPSHOT-used-for-parsing-GoogleCodeSearch-result%27s-Webpages-tp26774530p26774530.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26765167</id>
	<title>Leong 想跟您聊天</title>
	<published>2009-12-13T03:11:06Z</published>
	<updated>2009-12-13T03:11:06Z</updated>
	<author>
		<name>LEILEI HE</name>
	</author>
	<content type="html">-----------------------------------------------------------------------
&lt;br&gt;Leong希望通过 Google 的一些最炫的新产品与您保持更密切的联系。
&lt;br&gt;&lt;br&gt;如果您已经拥有 Gmail 或 Google Talk，请访问：
&lt;br&gt;&lt;a href=&quot;http://mail.google.com/mail/b-be4f6af167-de3e23a671-3952c05ea98ba9ad&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.google.com/mail/b-be4f6af167-de3e23a671-3952c05ea98ba9ad&lt;/a&gt;&lt;br&gt;您需要点击此链接才能与Leong聊天。
&lt;br&gt;&lt;br&gt;要获取 Gmail（Google 提供的免费电子邮件帐户，存储空间超过 2,800 MB）并与Leong聊天，请访问：
&lt;br&gt;&lt;a href=&quot;http://mail.google.com/mail/a-be4f6af167-de3e23a671-3952c05ea98ba9ad&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.google.com/mail/a-be4f6af167-de3e23a671-3952c05ea98ba9ad&lt;/a&gt;&lt;br&gt;&lt;br&gt;Gmail 提供以下功能：
&lt;br&gt;- 直接在 Gmail 中进行即时消息传递
&lt;br&gt;- 强大的垃圾邮件防护功能
&lt;br&gt;- 可用于查找邮件的内置搜索功能，以及实用的邮件整理方法（将邮件整理到“会话”中）
&lt;br&gt;- 没有弹出式广告或不相干的横幅广告，只显示文字广告和与邮件内容相关的信息
&lt;br&gt;以上所有功能均免费为您提供。此外，我们还提供了更多服务！打开 Gmail 帐户后，您还可以访问 Google Talk（即时消息传输服务）：
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.google.com/talk/intl/zh-CN/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/talk/intl/zh-CN/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Google Talk 提供以下功能：
&lt;br&gt;- 无需下载即可供您在任何地方使用的基于网络的聊天功能
&lt;br&gt;- 与 Gmail 帐户同步的联系人列表
&lt;br&gt;- 免费、高品质的 PC 间语音呼叫服务（下载 Google Talk 客户端后）
&lt;br&gt;&lt;br&gt;我们一直致力于增加新的功能并不断改进服务，因此我们还可能会定期请您提供意见和建议。感谢您为我们的产品改进所提供的帮助！
&lt;br&gt;&lt;br&gt;此致
&lt;br&gt;Google 小组敬上
&lt;br&gt;&lt;br&gt;要了解有关 Gmail 和 Google Talk 的详细信息，请访问：
&lt;br&gt;&lt;a href=&quot;http://mail.google.com/mail/help/intl/zh_CN/about.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.google.com/mail/help/intl/zh_CN/about.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.google.com/talk/intl/zh-CN/about.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/talk/intl/zh-CN/about.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;（如果点击本邮件中提供的网址不起作用，请将其复制并粘贴到浏览器的地址栏中）。
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26765167&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Leong-%E6%83%B3%E8%B7%9F%E6%82%A8%E8%81%8A%E5%A4%A9-tp26765167p26765167.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26761823</id>
	<title>Re: Htmlunit + Flash</title>
	<published>2009-12-12T14:45:01Z</published>
	<updated>2009-12-12T14:45:01Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Sander,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;:) :)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;As you see in [1], there is no reply for one and a half year.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I don't know if it is legal, or no interest in such project. Obviously,&amp;nbsp;it needs a huge effort and time.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;[1] &lt;A href=&quot;http://forums.adobe.com/message/245779#245779&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://forums.adobe.com/message/245779#245779&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&amp;nbsp;&lt;/DIV&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;
&lt;HR SIZE=1&gt;
&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/SPAN&gt;&lt;/B&gt; Sander A. Smith &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761823&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;smithsa@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/SPAN&gt;&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761823&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/SPAN&gt;&lt;/B&gt; Sat, December 12, 2009 11:39:47 PM&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/SPAN&gt;&lt;/B&gt; Re: [Htmlunit-user] Htmlunit + Flash&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;DIV style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;DIV&gt;Hey Ahmed,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for the reply. I'm glad you did because I have a followup question for you about why there's no Open Source Flash component, based on something you posted to the Adobe site.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Is there no Flash component simply because no one has stepped up to create an Open Source one, or is the problem a legal/licensing issue from Adobe? I respect the fact that this is currently out of scope for Htmlunit - I'm just trying to understand for myself why that is.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Even without Flash, Htmlunit is great. Thanks to everyone who's a part of it.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Sander&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV class=gmail_quote&gt;On Sat, Dec 12, 2009 at 12:24 PM, Ahmed Ashour &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761823&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asashour@...&lt;/a&gt;&amp;gt;&lt;/SPAN&gt; wrote:&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex&quot; class=gmail_quote&gt;
&lt;DIV&gt;
&lt;DIV style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Sander,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;As mentioned previously, there is no OpenSource&amp;nbsp;runtime&amp;nbsp;environment for Flash in Java,&amp;nbsp;that's why it is out of scope of HtmlUnit currently.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&lt;/DIV&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com/ 
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;
&lt;HR SIZE=1&gt;

&lt;DIV class=hm&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/SPAN&gt;&lt;/B&gt; Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761823&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/SPAN&gt;&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761823&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/SPAN&gt;&lt;/B&gt; Fri, December 11, 2009 6:47:17 PM&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/SPAN&gt;&lt;/B&gt; Re: [Htmlunit-user] Htmlunit + Flash&lt;BR&gt;&lt;/DIV&gt;&lt;/FONT&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV class=h5&gt;&lt;BR&gt;Hi Sander&lt;BR&gt;&lt;BR&gt;HtmlUnit doesn't simulate Flash :-(&lt;BR&gt;No idea if it would be possible or not, but we have already enough to do &lt;BR&gt;with HTML ;-)&lt;BR&gt;&lt;BR&gt;Cheers,&lt;BR&gt;Marc.&lt;BR&gt;&lt;BR&gt;Sander A. Smith a écrit :&lt;div class='shrinkable-quote'&gt;&lt;BR&gt;&amp;gt; I need a way to automate the testing of a Flash-based game, and am &lt;BR&gt;&amp;gt; looking towards Htmlunit to see if it's possible. I've seen some mention &lt;BR&gt;&amp;gt; of this in the past, and it looks like there's no support for Flash &lt;BR&gt;&amp;gt; because Adobe doesn't want the content to be accessible in a headless &lt;BR&gt;&amp;gt; way. Is this still true? I've seen that Selenium has a way to &lt;BR&gt;&amp;gt; incorporate Flash, but they're using real browsers. However, ther are &lt;BR&gt;&amp;gt; other factors which make Htmlunit much more appealing than Selenium.&lt;BR&gt;&amp;gt;&amp;nbsp; &lt;BR&gt;&amp;gt; Any ideas?&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; -- &lt;BR&gt;&amp;gt; Sander A. Smith&lt;BR&gt;&amp;gt; President&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Sericon Technology Inc.&lt;BR&gt;&amp;gt; 71 Marquette Ave.&lt;BR&gt;&amp;gt; Toronto, Ontario M6A 1X8&lt;BR&gt;&amp;gt;
 (416)781-3988&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Link to me on LinkedIn&lt;BR&gt;&amp;gt; http://www.linkedin.com/in/sandersmith&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Join our community of people interested in testing Facebook applications&lt;BR&gt;&amp;gt; http://www.testfacebook.com/&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Learn about advanced tools for testing social networking applications&lt;BR&gt;&amp;gt; http://www.friendrunner.com/&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; http://www.sericontech.com/&lt;/div&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;BR&gt;------------------------------------------------------------------------------&lt;BR&gt;Return on Information:&lt;BR&gt;Google Enterprise Search pays you back&lt;BR&gt;Get the facts.&lt;BR&gt;http://p.sf.net/sfu/google-dev2dev&lt;BR&gt;&lt;BR&gt;_______________________________________________&lt;BR&gt;Htmlunit-user mailing list&lt;BR&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761823&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; rel=&quot;nofollow&quot; target=_blank&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR clear=all&gt;&lt;BR&gt;-- &lt;BR&gt;Sander A. Smith&lt;BR&gt;President&lt;BR&gt;&lt;BR&gt;Sericon Technology Inc.&lt;BR&gt;71 Marquette Ave.&lt;BR&gt;Toronto, Ontario M6A 1X8&lt;BR&gt;(416)781-3988&lt;BR&gt;&lt;BR&gt;Link to me on LinkedIn&lt;BR&gt;&lt;A href=&quot;http://www.linkedin.com/in/sandersmith&quot; rel=&quot;nofollow&quot; target=_blank&gt;http://www.linkedin.com/in/sandersmith&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;Join our community of people interested in testing Facebook applications&lt;BR&gt;&lt;A href=&quot;http://www.testfacebook.com/&quot; rel=&quot;nofollow&quot; target=_blank&gt;http://www.TestFacebook.com&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;Learn about advanced tools for testing social networking applications&lt;BR&gt;&lt;A href=&quot;http://www.friendrunner.com/&quot; rel=&quot;nofollow&quot; target=_blank&gt;http://www.FriendRunner.com&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;&lt;A href=&quot;http://www.sericontech.com/&quot; rel=&quot;nofollow&quot; target=_blank&gt;http://www.sericontech.com&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!-- cg37.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 12 08:18:28 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;

      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761823&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Htmlunit-%2B-Flash-tp26730014p26761823.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26761562</id>
	<title>Re: Htmlunit + Flash</title>
	<published>2009-12-12T14:04:05Z</published>
	<updated>2009-12-12T14:04:05Z</updated>
	<author>
		<name>Frank Cohen-3</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;Hi Sander:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I agree with Ahmed about a runtime environment for Flash. However, there are other ways to accomplish test automation of Flash/Flex applications. Here are some ideas:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;PushToTest TestMaker provides an AMF protocol handler to do functional testing and load and performance testing of a Flex backend. &lt;a href=&quot;http://www.pushtotest.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pushtotest.com&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;BrowserMob runs Selenium RC tests in the real browser in Amazon EC2 machine instances. You running the real browser in EC2 instances.&amp;nbsp;&lt;a href=&quot;http://browsermob.com/performance-testing&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://browsermob.com/performance-testing&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;FlexMonkey (&lt;a href=&quot;http://code.google.com/p/flexmonkey&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/flexmonkey&lt;/a&gt;) is a record/playback tool for Flex apps. It includes support to playback in a continuous integration environment.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;We are looking into building a FlexMonkey script runner for TestMaker too.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Frank&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On Dec 12, 2009, at 9:24 AM, Ahmed Ashour wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; &quot;&gt;&lt;div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;Hi Sander,&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;As mentioned previously, there is no OpenSource&amp;nbsp;runtime&amp;nbsp;environment for Flash in Java,&amp;nbsp;that's why it is out of scope of HtmlUnit currently.&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;Ahmed&lt;/div&gt;----&lt;br&gt;Blog:&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://asashour.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://asashour.blogspot.com&lt;/a&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;hr size=&quot;1&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold; &quot;&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761562&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold; &quot;&gt;To:&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761562&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold; &quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Fri, December 11, 2009 6:47:17 PM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold; &quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Re: [Htmlunit-user] Htmlunit + Flash&lt;br&gt;&lt;/font&gt;&lt;br&gt;Hi Sander&lt;br&gt;&lt;br&gt;HtmlUnit doesn't simulate Flash :-(&lt;br&gt;No idea if it would be possible or not, but we have already enough to do&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;with HTML ;-)&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Marc.&lt;br&gt;&lt;br&gt;Sander A. Smith a écrit :&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I need a way to automate the testing of a Flash-based game, and am&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; looking towards Htmlunit to see if it's possible. I've seen some mention&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; of this in the past, and it looks like there's no support for Flash&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; because Adobe doesn't want the content to be accessible in a headless&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; way. Is this still true? I've seen that Selenium has a way to&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; incorporate Flash, but they're using real browsers. However, ther are&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; other factors which make Htmlunit much more appealing than Selenium.&lt;br&gt;&amp;gt;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; Any ideas?&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; --&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; Sander A. Smith&lt;br&gt;&amp;gt; President&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; Sericon Technology Inc.&lt;br&gt;&amp;gt; 71 Marquette Ave.&lt;br&gt;&amp;gt; Toronto, Ontario M6A 1X8&lt;br&gt;&amp;gt; (416)781-3988&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; Link to me on LinkedIn&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; Join our community of people interested in testing Facebook applications&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.TestFacebook.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt; Learn about advanced tools for testing social networking applications&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.FriendRunner.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.sericontech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;Return on Information:&lt;br&gt;Google Enterprise Search pays you back&lt;br&gt;Get the facts.&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;Htmlunit-user mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761562&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; &quot;&gt;&lt;div style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; &quot;&gt;&lt;div style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;--&lt;br&gt;Frank Cohen,&amp;nbsp;&lt;a href=&quot;http://www.PushToTest.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.PushToTest.com&lt;/a&gt;, phone 408 871 0122&lt;br&gt;PushToTest, the open-source test automation company&lt;br&gt;Twitter: fcohen, LinkedIn: Frank Cohen&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt; &lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761562&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Htmlunit-%2B-Flash-tp26730014p26761562.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26760989</id>
	<title>Re: Htmlunit + Flash</title>
	<published>2009-12-12T12:39:47Z</published>
	<updated>2009-12-12T12:39:47Z</updated>
	<author>
		<name>Sander A. Smith</name>
	</author>
	<content type="html">&lt;div&gt;Hey Ahmed,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thanks for the reply. I&amp;#39;m glad you did because I have a followup question for you about why there&amp;#39;s no Open Source Flash component, based on something you posted to the Adobe site.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Is there no Flash component simply because no one has stepped up to create an Open Source one, or is the problem a legal/licensing issue from Adobe? I respect the fact that this is currently out of scope for Htmlunit - I&amp;#39;m just trying to understand for myself why that is.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Even without Flash, Htmlunit is great. Thanks to everyone who&amp;#39;s a part of it.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Sander&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Dec 12, 2009 at 12:24 PM, Ahmed Ashour &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760989&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asashour@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote style=&quot;BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex&quot; class=&quot;gmail_quote&quot;&gt;
&lt;div&gt;
&lt;div style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Hi Sander,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;As mentioned previously, there is no OpenSource runtime environment for Flash in Java, that&amp;#39;s why it is out of scope of HtmlUnit currently.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Ahmed&lt;/div&gt;----&lt;br&gt;Blog: &lt;a href=&quot;http://asashour.blogspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://asashour.blogspot.com&lt;/a&gt; 
&lt;div&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;
&lt;hr size=&quot;1&quot;&gt;

&lt;div class=&quot;hm&quot;&gt;&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760989&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760989&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Fri, December 11, 2009 6:47:17 PM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: [Htmlunit-user] Htmlunit + Flash&lt;br&gt;&lt;/div&gt;&lt;/font&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;Hi Sander&lt;br&gt;&lt;br&gt;HtmlUnit doesn&amp;#39;t simulate Flash :-(&lt;br&gt;No idea if it would be possible or not, but we have already enough to do &lt;br&gt;with HTML ;-)&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Marc.&lt;br&gt;&lt;br&gt;Sander A. Smith a écrit :&lt;br&gt;
&amp;gt; I need a way to automate the testing of a Flash-based game, and am &lt;br&gt;&amp;gt; looking towards Htmlunit to see if it&amp;#39;s possible. I&amp;#39;ve seen some mention &lt;br&gt;&amp;gt; of this in the past, and it looks like there&amp;#39;s no support for Flash &lt;br&gt;
&amp;gt; because Adobe doesn&amp;#39;t want the content to be accessible in a headless &lt;br&gt;&amp;gt; way. Is this still true? I&amp;#39;ve seen that Selenium has a way to &lt;br&gt;&amp;gt; incorporate Flash, but they&amp;#39;re using real browsers. However, ther are &lt;br&gt;
&amp;gt; other factors which make Htmlunit much more appealing than Selenium.&lt;br&gt;&amp;gt;  &lt;br&gt;&amp;gt; Any ideas?&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; -- &lt;br&gt;&amp;gt; Sander A. Smith&lt;br&gt;&amp;gt; President&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Sericon Technology Inc.&lt;br&gt;&amp;gt; 71 Marquette Ave.&lt;br&gt;
&amp;gt; Toronto, Ontario M6A 1X8&lt;br&gt;&amp;gt; (416)781-3988&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Link to me on LinkedIn&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Join our community of people interested in testing Facebook applications&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.testfacebook.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Learn about advanced tools for testing social networking applications&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.friendrunner.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.sericontech.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Return on Information:&lt;br&gt;Google Enterprise Search pays you back&lt;br&gt;Get the facts.&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Htmlunit-user mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760989&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Sander A. Smith&lt;br&gt;President&lt;br&gt;&lt;br&gt;Sericon Technology Inc.&lt;br&gt;71 Marquette Ave.&lt;br&gt;Toronto, Ontario M6A 1X8&lt;br&gt;(416)781-3988&lt;br&gt;&lt;br&gt;Link to me on LinkedIn&lt;br&gt;&lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;
&lt;br&gt;Join our community of people interested in testing Facebook applications&lt;br&gt;&lt;a href=&quot;http://www.TestFacebook.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Learn about advanced tools for testing social networking applications&lt;br&gt;
&lt;a href=&quot;http://www.FriendRunner.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.sericontech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760989&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Htmlunit-%2B-Flash-tp26730014p26760989.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26759475</id>
	<title>Re: Htmlunit + Flash</title>
	<published>2009-12-12T09:24:40Z</published>
	<updated>2009-12-12T09:24:40Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Sander,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;As mentioned previously, there is no OpenSource&amp;nbsp;runtime&amp;nbsp;environment for Flash in Java,&amp;nbsp;that's why it is out of scope of HtmlUnit currently.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&lt;/DIV&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;
&lt;HR SIZE=1&gt;
&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/SPAN&gt;&lt;/B&gt; Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26759475&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/SPAN&gt;&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26759475&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/SPAN&gt;&lt;/B&gt; Fri, December 11, 2009 6:47:17 PM&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/SPAN&gt;&lt;/B&gt; Re: [Htmlunit-user] Htmlunit + Flash&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;Hi Sander&lt;BR&gt;&lt;BR&gt;HtmlUnit doesn't simulate Flash :-(&lt;BR&gt;No idea if it would be possible or not, but we have already enough to do &lt;BR&gt;with HTML ;-)&lt;BR&gt;&lt;BR&gt;Cheers,&lt;BR&gt;Marc.&lt;BR&gt;&lt;BR&gt;Sander A. Smith a écrit :&lt;div class='shrinkable-quote'&gt;&lt;BR&gt;&amp;gt; I need a way to automate the testing of a Flash-based game, and am &lt;BR&gt;&amp;gt; looking towards Htmlunit to see if it's possible. I've seen some mention &lt;BR&gt;&amp;gt; of this in the past, and it looks like there's no support for Flash &lt;BR&gt;&amp;gt; because Adobe doesn't want the content to be accessible in a headless &lt;BR&gt;&amp;gt; way. Is this still true? I've seen that Selenium has a way
 to &lt;BR&gt;&amp;gt; incorporate Flash, but they're using real browsers. However, ther are &lt;BR&gt;&amp;gt; other factors which make Htmlunit much more appealing than Selenium.&lt;BR&gt;&amp;gt;&amp;nbsp; &lt;BR&gt;&amp;gt; Any ideas?&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; -- &lt;BR&gt;&amp;gt; Sander A. Smith&lt;BR&gt;&amp;gt; President&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Sericon Technology Inc.&lt;BR&gt;&amp;gt; 71 Marquette Ave.&lt;BR&gt;&amp;gt; Toronto, Ontario M6A 1X8&lt;BR&gt;&amp;gt; (416)781-3988&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Link to me on LinkedIn&lt;BR&gt;&amp;gt; http://www.linkedin.com/in/sandersmith&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Join our community of people interested in testing Facebook applications&lt;BR&gt;&amp;gt; http://www.TestFacebook.com&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Learn about advanced tools for testing social networking applications&lt;BR&gt;&amp;gt; http://www.FriendRunner.com&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; http://www.sericontech.com&lt;/div&gt;&lt;/DIV&gt;&lt;!-- cg37.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 12 08:18:28 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;

      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26759475&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Htmlunit-%2B-Flash-tp26730014p26759475.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26758913</id>
	<title>Fw: New implementation of document.lastModified is incorrect</title>
	<published>2009-12-12T08:23:05Z</published>
	<updated>2009-12-12T08:23:05Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Richard,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;* You must subscribe to the list before posting.&lt;/DIV&gt;
&lt;DIV&gt;* Please provide minimal case that shows HtmlUnit&amp;nbsp;behavior is different than real browsers,&amp;nbsp;patches are more than welcome.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&lt;/DIV&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;&lt;BR&gt;
&lt;DIV style=&quot;FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt&quot;&gt;&lt;FONT size=2 face=Tahoma&gt;----- Forwarded Message ----&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!-- cg37.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 12 08:18:28 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;



      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;I just noticed that the (newly-added in response to bug #2875273) implementation of document.lastModified is incorrect.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;From &lt;a href=&quot;https://htmlunit.svn.sourceforge.net/svnroot/htmlunit/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocument.java&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://htmlunit.svn.sourceforge.net/svnroot/htmlunit/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocument.java&lt;/a&gt;&amp;nbsp;:
&lt;br&gt;&amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Returns the last modification date of the document.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @see &amp;lt;a href=&amp;quot;&lt;a href=&quot;https://developer.mozilla.org/en/DOM/document.lastModified&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://developer.mozilla.org/en/DOM/document.lastModified&lt;/a&gt;&amp;quot;&amp;gt;Mozilla documentation&amp;lt;/a&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return the date as string
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; public String jsxGet_lastModified() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (lastModified_ == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final WebResponse webResponse = getPage().getWebResponse();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String stringDate = webResponse.getResponseHeaderValue(&amp;quot;Last-Modified&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (stringDate == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringDate = webResponse.getResponseHeaderValue(&amp;quot;Date&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final Date lastModified = parseDateOrNow(stringDate);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lastModified_ = formatHttpDate(lastModified);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return lastModified_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;From &lt;a href=&quot;https://htmlunit.svn.sourceforge.net/svnroot/htmlunit/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/util/StringUtils.java&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://htmlunit.svn.sourceforge.net/svnroot/htmlunit/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/util/StringUtils.java&lt;/a&gt;&amp;nbsp;:
&lt;br&gt;&amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Formats the specified date according to RFC 1123.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param date the date to format
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return the specified date, formatted according to RFC 1123
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; public static String formatHttpDate(final Date date) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebAssert.notNull(&amp;quot;date&amp;quot;, date);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return DateUtil.formatDate(date);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Note that formatHttpDate uses HttpClient's DateUtil.formatDate, which outputs in RFC 1123 (as noted in the comments), which is correct for HTTP headers but is NOT the format of document.lastModified.
&lt;br&gt;&lt;br&gt;According to &lt;a href=&quot;https://developer.mozilla.org/en/DOM/document.lastModified&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://developer.mozilla.org/en/DOM/document.lastModified&lt;/a&gt;&amp;nbsp;(mentioned in the comments above):
&lt;br&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
&lt;br&gt;document.lastModified
&lt;br&gt;Table of contents
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;1. 1. Summary
&lt;br&gt;&amp;nbsp; &amp;nbsp;2. 2. Syntax
&lt;br&gt;&amp;nbsp; &amp;nbsp;3. 3. Example
&lt;br&gt;&amp;nbsp; &amp;nbsp;4. 4. Notes
&lt;br&gt;&amp;nbsp; &amp;nbsp;5. 5. Specification
&lt;br&gt;&lt;br&gt;« Gecko DOM Reference
&lt;br&gt;Summary
&lt;br&gt;&lt;br&gt;Returns a string containing the date and time on which the current document was last modified.
&lt;br&gt;Syntax
&lt;br&gt;&lt;br&gt;var string = document.lastModified; 
&lt;br&gt;&lt;br&gt;Example
&lt;br&gt;&lt;br&gt;dump(document.lastModified); 
&lt;br&gt;// returns: Tuesday, July 10, 2001 10:19:42
&lt;br&gt;&lt;br&gt;Notes
&lt;br&gt;&lt;br&gt;Note that as a string, lastModified cannot easily be used for comparisions between the modified dates of documents.
&lt;br&gt;Specification
&lt;br&gt;&lt;br&gt;DOM Level 0. Not part of any standard.
&lt;br&gt;&lt;br&gt;MSDN: lastModified Property 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;This is full of lies! &amp;nbsp;Firefox follows the MSIE format, and MSIE follows the format documented by MSDN (which, ironically, is referenced by the erroneous Mozilla documentation):
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;From &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms533946(VS.85).aspx:&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://msdn.microsoft.com/en-us/library/ms533946(VS.85).aspx:&lt;/a&gt;&lt;br&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
&lt;br&gt;&lt;br&gt;lastModified Property
&lt;br&gt;&lt;br&gt;Gets the date that the page was last modified, if the page supplies one.
&lt;br&gt;&lt;br&gt;Syntax
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; [ sModified = ] object.lastModified
&lt;br&gt;&lt;br&gt;Possible Values
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; sModified	String that receives the most recent date the page was modified, in the form &amp;quot;MM/DD/YY hh:mm:ss&amp;quot;.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; The property is read-only. The property has no default value.
&lt;br&gt;&lt;br&gt;Standards Information
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; There is no public standard that applies to this property. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Note that the correct format, as listed above, is &amp;quot;MM/DD/YY hh:mm:ss&amp;quot;, and not RFC 1123 (which is &amp;quot;EEE, dd MMM yyyy HH:mm:ss zzz&amp;quot;, according to HttpClient's constants).
&lt;br&gt;Open this in a browser and see for yourself!
&lt;br&gt;&lt;br&gt;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.writeln(document.lastModified);
&lt;br&gt;&amp;lt;/script&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Rich Eggert
&lt;br&gt;&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26758913&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fw%3A-New-implementation-of-document.lastModified-is-incorrect-tp26758913p26758913.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26747923</id>
	<title>Re: Free javascript threads	when	closing	the	WebClient</title>
	<published>2009-12-11T08:59:55Z</published>
	<updated>2009-12-11T08:59:55Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">Adi,
&lt;br&gt;I've committed my changes. If you check out sources from SVN or give a 
&lt;br&gt;bit time to the build server to produce a new snapshot, you should have 
&lt;br&gt;a better closeAllWindows.
&lt;br&gt;&lt;br&gt;Btw, you can thanks Frank Cohen for this fix: he paid me (I hope that I 
&lt;br&gt;get my money ;-)) to fix an other issue and I could start working on 
&lt;br&gt;closeAllWindows in the remaining time as he had problem with it too (in 
&lt;br&gt;fact it took me far more time, but I wanted to see it fixed, or at least 
&lt;br&gt;improved).
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;Adim a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Try this one as well is think it behave the same: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.homeless.co.il/sale/default.asp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.homeless.co.il/sale/default.asp&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Adi.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Marc Guillemot wrote:
&lt;br&gt;&amp;gt;&amp;gt; Do you have other examples? I think that I've found a simple fix in this 
&lt;br&gt;&amp;gt;&amp;gt; case.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt; Marc.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Adim a écrit :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You can use:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.winwin.co.il/RealEstate/ForSale/RealEstatePage.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.winwin.co.il/RealEstate/ForSale/RealEstatePage.aspx&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adi.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Marc Guillemot wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; your example contains:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; HtmlPage page = (HtmlPage) webClient.getPage(&amp;quot;some website that uses
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; JS&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and the problem surely doesn't appear for all sites that uses JS ;-)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Marc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adim a écrit :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; My post example does reproduce the problem, please remove the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; deregisterWebWindow() call and run it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adi.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Marc Guillemot wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; closeAllWindows should do the job. If it doesn't, it may be due to an 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; incorrect usage (call to deregisterWebWindow?) or to a bug. If it is a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; but, it should be fixed ;-)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Jason, Adi: can you produce a simple example where not all threads are 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; stopped?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Marc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; jason franklin-stokes a écrit :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; closeallwindows definately does not always do the job - that is 100%
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; certain.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; i will definately give
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.getCurrentWindow().getJobManager().shutdown(); this a shot
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; afternoon and let you know if this did anything on my end. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; thanks a million for the info - i was considering catching still
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; running
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; threads from htmunit afterclose all windows and then terminating them
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; that would be an awful thing to have to do - so i really hope this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; works
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; out. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; let you know
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; jason.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Dec 9, 2009, at 1:05 PM, Adim wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks a good question...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Somehow it stayed there, so does closeAllWindows() do the job? what
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; different between a window and a top level window?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adi.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Marc Guillemot wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; why do you use:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.deregisterWebWindow(webClient.getCurrentWindow());
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Marc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adim a écrit :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I want to share we you a problem I solved:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; After running a profiler I notice that after I closed the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; WebClient
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; still
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; have some javascript job thread waiting...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Here is the simple code:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; final WebClient webClient = new
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; WebClient(BrowserVersion.INTERNET_EXPLORER_7);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.setThrowExceptionOnScriptError(false);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.setCssEnabled(false);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.setRefreshHandler(new RefreshHandler() {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 	public void handleRefresh(Page page, URL url, int seconds) throws
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; IOException {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 	}
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; });
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.setJavaScriptEnabled(true);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.setThrowExceptionOnFailingStatusCode(false);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; HtmlPage page = (HtmlPage) webClient.getPage(&amp;quot;some website that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; uses
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; JS&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; // Close the client
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.deregisterWebWindow(webClient.getCurrentWindow());
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.closeAllWindows();
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I solved the problem by adding the following line at the beginning
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; close client section:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webClient.getCurrentWindow().getJobManager().shutdown();
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; This line shutdown the waiting JS threads.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Enjoy.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26747923&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Free-javascript-threads-when-closing-the-WebClient-tp26708191p26709199.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Free-javascript-threads-when-closing-the-WebClient-tp26708191p26709199.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sent from the HtmlUnit - General mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26747923&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26747923&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26747923&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26747923&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26747923&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26747923&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Free-javascript-threads-when-closing-the-WebClient-tp26708191p26747923.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26746551</id>
	<title>Re: Htmlunit + Flash</title>
	<published>2009-12-11T07:47:17Z</published>
	<updated>2009-12-11T07:47:17Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">Hi Sander
&lt;br&gt;&lt;br&gt;HtmlUnit doesn't simulate Flash :-(
&lt;br&gt;No idea if it would be possible or not, but we have already enough to do 
&lt;br&gt;with HTML ;-)
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;Sander A. Smith a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I need a way to automate the testing of a Flash-based game, and am 
&lt;br&gt;&amp;gt; looking towards Htmlunit to see if it's possible. I've seen some mention 
&lt;br&gt;&amp;gt; of this in the past, and it looks like there's no support for Flash 
&lt;br&gt;&amp;gt; because Adobe doesn't want the content to be accessible in a headless 
&lt;br&gt;&amp;gt; way. Is this still true? I've seen that Selenium has a way to 
&lt;br&gt;&amp;gt; incorporate Flash, but they're using real browsers. However, ther are 
&lt;br&gt;&amp;gt; other factors which make Htmlunit much more appealing than Selenium.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Any ideas?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Sander A. Smith
&lt;br&gt;&amp;gt; President
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sericon Technology Inc.
&lt;br&gt;&amp;gt; 71 Marquette Ave.
&lt;br&gt;&amp;gt; Toronto, Ontario M6A 1X8
&lt;br&gt;&amp;gt; (416)781-3988
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Link to me on LinkedIn
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Join our community of people interested in testing Facebook applications
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.TestFacebook.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Learn about advanced tools for testing social networking applications
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.FriendRunner.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.sericontech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746551&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746551&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Htmlunit-%2B-Flash-tp26730014p26746551.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26746656</id>
	<title>Re: Free javascript threads when	closing	the	WebClient</title>
	<published>2009-12-11T07:45:56Z</published>
	<updated>2009-12-11T07:45:56Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">Thanks for the feedback. This is always good to know that HtmlUnit's 
&lt;br&gt;code is not that bad ;-)
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;jason franklin-stokes a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear all, 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am &amp;nbsp;please to announce that I have found the culprit for my problems - of course it has nothing to do with the htmlunit code. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am using the jruby htmlunit wrapper called celerity. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; it has two methods which are causing problems. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; click_and_attach in the Browser class
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; add_listner in the Listner class
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I will be letting the celerity guys know - but i thought i would let you know first. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; best and thanks for the help. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jason
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Dec 9, 2009, at 3:21 PM, Marc Guillemot wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; can you provide it as Java code?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt; Marc.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; jason franklin-stokes a écrit :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; here my example;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; . goto: &lt;a href=&quot;http://www.swisspost.ch/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.swisspost.ch/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2. click and sycronize javascript: element with the path 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /html/body/div[2]/div/div[4]/div[1]/ul[2]/li[2]/a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3. click and syncronize javascript: element with the path 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /html/body/div[2]/div/div[4]/div[1]/ul[1]/li[1]/a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 4. click and syncronise javascript: element with the path 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /html/body/div[2]/div/div[3]/div[3]/div[1]/div/div/ul[3]/li/div[2]/div[5]/ul/li/div/ul/li[7]/ul/li[2]/a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 5. close all windows
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the result is a javascript thread alive and kicking.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746656&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Free-javascript-threads-when-closing-the-WebClient-tp26708191p26746656.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26741428</id>
	<title>How to get current page when click() doesn't return new one?</title>
	<published>2009-12-11T01:45:56Z</published>
	<updated>2009-12-11T01:45:56Z</updated>
	<author>
		<name>Marcin Cetnarski-2</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;I&amp;#39;m writing a test for my richfaces application. I use rich:panelMenu (and panelMenuItems - &lt;a href=&quot;http://docs.jboss.org/richfaces/3.3.2.GA/en/devguide/html/rich_panelMenuItem.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://docs.jboss.org/richfaces/3.3.2.GA/en/devguide/html/rich_panelMenuItem.html&lt;/a&gt;) for page navigation. PanelMenuItem component is repersented in html as &amp;lt;td&amp;gt; tag, and this is a clickable element.&lt;br&gt;
&lt;br&gt;&lt;i&gt;&amp;lt;td style=&amp;quot;width: 100%;&amp;quot; id=&amp;quot;iconinvoices&amp;quot; class=&amp;quot;dr-pmenu-group-self-label rich-pmenu-item-label&amp;quot;&amp;gt;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;panelMenuActioninvoices&amp;quot;/&amp;gt;Invoices&amp;lt;/td&amp;gt;&lt;/i&gt;&lt;br&gt;
&lt;br&gt;This html element (id=&amp;quot;iconinvoices&amp;quot;) hasn&amp;#39;t got onclick attribute but in richfaces events are invoked by other JS code&lt;br&gt;&lt;br&gt;&lt;span class=&quot;sourceRowText&quot;&gt;var params = new
Object();params[&amp;#39;current&amp;#39;] = &amp;#39;invoices&amp;#39;;new PanelMenuItem(ids,
params,{myId:&amp;#39;invoices&amp;#39;,parentId:&amp;#39;j_id16&amp;#39;},{type:&amp;quot;item&amp;quot;,onopen:&amp;quot;&amp;quot;,onclose:&amp;quot;&amp;quot;&lt;b&gt;,event:&amp;quot;click&amp;quot;&lt;/b&gt;,mode:&amp;quot;server&amp;quot;,target:&amp;quot;&amp;quot;,disabled:false,target:&amp;quot;&amp;quot;,name:&amp;quot;invoices&amp;quot;},{},new
Array(&amp;quot;dr-pmenu-hovered-element&amp;quot;,&amp;quot;rich-pmenu-hovered-element&amp;quot;),1,false,true,false,&amp;quot;A4J.AJAX.Submit(&amp;#39;_viewRoot&amp;#39;,null,event,{&amp;#39;similarityGroupingId&amp;#39;:&amp;#39;invoices&amp;#39;,&amp;#39;parameters&amp;#39;:{&amp;#39;current&amp;#39;:&amp;#39;invoices&amp;#39;,&amp;#39;invoices&amp;#39;:&amp;#39;invoices&amp;#39;}
,&amp;#39;actionUrl&amp;#39;:&amp;#39;/web\x2Dcompany/&lt;b&gt;pages/invoiceslist.jsf&amp;#39;&lt;/b&gt;}
)&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;left&amp;quot;,&amp;quot;/web-company/a4j/g/3_3_1.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconGrid/DATB/eAFLP78AAAN2Adc_.jsf&amp;quot;,&amp;quot;/web-company/a4j/g/3_3_1.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconGrid/DATB/eAFLP78AAAN2Adc_.jsf&amp;quot;
,&amp;quot;&amp;quot;
,&amp;quot;/web-company/a4j/g/3_3_1.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFLP78AAAN2Adc_.jsf&amp;quot;);
&lt;/span&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;&lt;span class=&quot;sourceRowText&quot;&gt;PanelMenuItem class can be found here - &lt;/span&gt;&lt;a href=&quot;http://anonsvn.jboss.org/repos/richfaces/tags/3.3.1.GA/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://anonsvn.jboss.org/repos/richfaces/tags/3.3.1.GA/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js&lt;/a&gt;&lt;br&gt;
&lt;br&gt;so after click on id=&amp;quot;iconinvoices&amp;quot; elements new page is loaded.&lt;br&gt;&lt;br&gt;In HtmlElements class method click() is following code&lt;br&gt;&lt;br&gt;&lt;br&gt;        final ScriptResult scriptResult = fireEvent(event);&lt;br&gt;        final Page currentPage;&lt;br&gt;
        if (scriptResult == null) {&lt;br&gt;            currentPage = page;&lt;br&gt;        }&lt;br&gt;        else {&lt;br&gt;            currentPage = scriptResult.getNewPage();&lt;br&gt;        }&lt;br&gt;&lt;br&gt;In my case, scriptResult is always null.&lt;br&gt;
&lt;br&gt;My, question is how to receive a reference to new current page and test panelMenu navigation case?&lt;br&gt;&lt;br&gt;-- &lt;br&gt;Best regards,&lt;br&gt;Marcin Cetnarski&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26741428&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-get-current-page-when-click%28%29-doesn%27t-return-new-one--tp26741428p26741428.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26729747</id>
	<title>Re: Free javascript threads when closing	the	WebClient</title>
	<published>2009-12-10T07:52:27Z</published>
	<updated>2009-12-10T07:52:27Z</updated>
	<author>
		<name>jason franklin-stokes</name>
	</author>
	<content type="html">Dear all, 
&lt;br&gt;&lt;br&gt;I am &amp;nbsp;please to announce that I have found the culprit for my problems - of course it has nothing to do with the htmlunit code. 
&lt;br&gt;&lt;br&gt;I am using the jruby htmlunit wrapper called celerity. 
&lt;br&gt;&lt;br&gt;it has two methods which are causing problems. 
&lt;br&gt;&lt;br&gt;click_and_attach in the Browser class
&lt;br&gt;&lt;br&gt;and 
&lt;br&gt;&lt;br&gt;add_listner in the Listner class
&lt;br&gt;&lt;br&gt;I will be letting the celerity guys know - but i thought i would let you know first. 
&lt;br&gt;&lt;br&gt;best and thanks for the help. 
&lt;br&gt;&lt;br&gt;Jason
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 9, 2009, at 3:21 PM, Marc Guillemot wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; can you provide it as Java code?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Marc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; jason franklin-stokes a écrit :
&lt;br&gt;&amp;gt;&amp;gt; here my example;
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; . goto: &lt;a href=&quot;http://www.swisspost.ch/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.swisspost.ch/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; 2. click and sycronize javascript: element with the path 
&lt;br&gt;&amp;gt;&amp;gt; /html/body/div[2]/div/div[4]/div[1]/ul[2]/li[2]/a 
&lt;br&gt;&amp;gt;&amp;gt; 3. click and syncronize javascript: element with the path 
&lt;br&gt;&amp;gt;&amp;gt; /html/body/div[2]/div/div[4]/div[1]/ul[1]/li[1]/a
&lt;br&gt;&amp;gt;&amp;gt; 4. click and syncronise javascript: element with the path 
&lt;br&gt;&amp;gt;&amp;gt; /html/body/div[2]/div/div[3]/div[3]/div[1]/div/div/ul[3]/li/div[2]/div[5]/ul/li/div/ul/li[7]/ul/li[2]/a
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 5. close all windows
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; the result is a javascript thread alive and kicking.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26729747&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26729747&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Free-javascript-threads-when-closing-the-WebClient-tp26708191p26729747.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26730014</id>
	<title>Htmlunit + Flash</title>
	<published>2009-12-10T07:13:01Z</published>
	<updated>2009-12-10T07:13:01Z</updated>
	<author>
		<name>Sander A. Smith</name>
	</author>
	<content type="html">&lt;div&gt;I need a way to automate the testing of a Flash-based game, and am looking towards Htmlunit to see if it&amp;#39;s possible. I&amp;#39;ve seen some mention of this in the past, and it looks like there&amp;#39;s no support for Flash because Adobe doesn&amp;#39;t want the content to be accessible in a headless way. Is this still true? I&amp;#39;ve seen that Selenium has a way to incorporate Flash, but they&amp;#39;re using real browsers. However, ther are other factors which make Htmlunit much more appealing than Selenium.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Any ideas?&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Sander A. Smith&lt;br&gt;President&lt;br&gt;&lt;br&gt;Sericon Technology Inc.&lt;br&gt;71 Marquette Ave.&lt;br&gt;Toronto, Ontario M6A 1X8&lt;br&gt;(416)781-3988&lt;br&gt;&lt;br&gt;Link to me on LinkedIn&lt;br&gt;&lt;a href=&quot;http://www.linkedin.com/in/sandersmith&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/sandersmith&lt;/a&gt;&lt;br&gt;
&lt;br&gt;Join our community of people interested in testing Facebook applications&lt;br&gt;&lt;a href=&quot;http://www.TestFacebook.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.TestFacebook.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Learn about advanced tools for testing social networking applications&lt;br&gt;
&lt;a href=&quot;http://www.FriendRunner.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FriendRunner.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.sericontech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sericontech.com&lt;/a&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26730014&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Htmlunit-%2B-Flash-tp26730014p26730014.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26719414</id>
	<title>Re: GWT and htmunit</title>
	<published>2009-12-09T15:09:36Z</published>
	<updated>2009-12-09T15:09:36Z</updated>
	<author>
		<name>Ahmed Ashour</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Vishal,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Try to put alerts() in various places&amp;nbsp;in JavaScript, please read more in &lt;A href=&quot;http://htmlunit.sourceforge.net/submittingJSBugs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://htmlunit.sourceforge.net/submittingJSBugs.html&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If you can't debug furuther, provide your GWT application (with&amp;nbsp;-PRETTY style), but it will take some time for someone to verify.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&lt;/DIV&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com
&lt;DIV&gt;&lt;FONT size=2 face=Tahoma&gt;
&lt;HR SIZE=1&gt;
&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/SPAN&gt;&lt;/B&gt; &quot;Santoshi, Vishal&quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Vishal_Santoshi@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/SPAN&gt;&lt;/B&gt; &quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/SPAN&gt;&lt;/B&gt; Wed, December 9, 2009 8:44:43 PM&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/SPAN&gt;&lt;/B&gt; Re: [Htmlunit-user] GWT and htmunit&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;I have this small code snippet&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static void main(String[] args) throws FailingHttpStatusCodeException, MalformedURLException, IOException{&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final WebClient webClient = new WebClient();&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.waitForBackgroundJavaScriptStartingBefore(20000);&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
 webClient.waitForBackgroundJavaScript(40000);&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.getProperties().put(&quot;org.apache.commons.logging.simplelog.defaultlog&quot;, &quot;trace&quot;);&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final HtmlPage page = webClient.getPage(&quot;http://localhost:8080/g-control/gwtc/wellbeing/WellbeingEntryPoint.html#wbs/welcome&quot;);&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(page.asXml());&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;The url &quot;&lt;A href=&quot;http://localhost:8080/g-control/gwtc/wellbeing/WellbeingEntryPoint.html#wbs/welcome&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://localhost:8080/g-control/gwtc/wellbeing/WellbeingEntryPoint.html#wbs/welcome&lt;/A&gt;&quot;&amp;nbsp; should load up a compiled GWT JS and execute it, from within the html.&lt;BR&gt;A lot of Place change events occur ( events ), and at least one GWT Deffered Command are executed , with at
 least 2 Browser History change events created and interecpted&lt;BR&gt;I need to get to the contents ( that I know are rendered on the browser ). When I execute the above code , I get this ( I am putting&amp;nbsp; the log that are relevant)&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; [java]&amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;wellbeing.nocache.js&quot;&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; [java]&amp;nbsp; &amp;nbsp; &amp;lt;/script&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; [java]&amp;nbsp; &amp;nbsp; &amp;lt;script defer=&quot;defer&quot;&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; [java] //&amp;lt;![CDATA[&lt;BR&gt;&amp;nbsp; &amp;nbsp; [java] wellbeing.onInjectionDone('wellbeing')&lt;BR&gt;&amp;nbsp; &amp;nbsp; [java] //]]&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; [java]&amp;nbsp; &amp;nbsp; &amp;lt;/script&amp;gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Now I am sure I am missing something here.&amp;nbsp; I see the &amp;lt;script defer=&quot;defer&quot;&amp;gt; added. I also see the onInjectionDone(..) blurted out. I do not see the content however.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;________________________________________&lt;BR&gt;From: Ahmed Ashour [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asashour@...&lt;/a&gt;]&lt;BR&gt;Sent: Wednesday, December 09, 2009 11:31 AM&lt;BR&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&lt;BR&gt;Subject: Re: [Htmlunit-user] GWT and htmunit&lt;BR&gt;&lt;BR&gt;Hi Vishal,&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&amp;gt;&amp;gt; * Are there examples to hit a url , load up GWT JS ( asynchronous )&amp;nbsp; , wait for all executions ( asynchrnoous ) to do their magic and feed the specific parts&lt;BR&gt;&lt;BR&gt;Sure, GWT tests are already include in HtmlUnit test suite, have a look at:&lt;BR&gt;http://htmlunit.svn.sf.net/viewvc/htmlunit/trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/libraries/GWT17Test.java?revision=5220&amp;amp;view=markup#l_61&lt;BR&gt;If AJAX doesn't work, have a look at http://htmlunit.sourceforge.net/faq.html#AJAXDoesNotWork&lt;BR&gt;&lt;BR&gt;Don't hesitate to ask if you have an
 issue.&lt;BR&gt;&lt;BR&gt;Yours,&lt;BR&gt;Ahmed&lt;BR&gt;----&lt;BR&gt;Blog: http://asashour.blogspot.com&lt;BR&gt;________________________________&lt;BR&gt;From: &quot;Santoshi, Vishal&quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Vishal_Santoshi@...&lt;/a&gt;&amp;gt;&lt;BR&gt;To: &quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-user@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Sent: Wed, December 9, 2009 7:01:59 PM&lt;BR&gt;Subject: [Htmlunit-user] GWT and htmunit&lt;BR&gt;&lt;BR&gt;I am new to htmlunit and thus need some advise.&lt;BR&gt;&lt;BR&gt;We want to use&amp;nbsp; htmlunit for raw html scraping. Ours is a GWT application that shows reports based on some usecase ( included images through JFree&amp;nbsp; and some fancy GWT canvas etc , the data being fed through asynchronous RPC calls
 ).&lt;BR&gt;A user may decide to export the GWT Page they see as a pdf, and we would like to be able to export the Page as html and feed it to a &quot;pdf creating &quot; engine ( Yes html -&amp;gt; pdf engine).&lt;BR&gt;This brings one question ( especially due to the asynchrnous nature of GWT/ AJAX ) .&lt;BR&gt;&lt;BR&gt;* Are there examples to hit a url , load up GWT JS ( asynchronous )&amp;nbsp; , wait for all executions ( asynchrnoous ) to do their magic and feed the specific parts of the JS with data through RPC&amp;nbsp; ,&amp;nbsp; and finally&amp;nbsp; get the raw html.&lt;BR&gt;* Is it even possible?&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;I have seen GWT7 example, but that seems an iota of the functionality we may need ( even though I should say that have not gone deep into it ) .&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;IMPORTANT NOTICE: This e-mail message and all attachments, if any, may contain confidential and privileged material and are intended only for the person or entity to which the message is addressed. If you are not an intended recipient,
 you are hereby notified that any use, dissemination, distribution, disclosure, or copying of this information is unauthorized and strictly prohibited. If you have received this communication in error, please contact the sender immediately by reply e-mail, and destroy all copies of the original message.&lt;BR&gt;&lt;BR&gt;------------------------------------------------------------------------------&lt;BR&gt;Return on Information:&lt;BR&gt;Google Enterprise Search pays you back&lt;BR&gt;Get the facts.&lt;BR&gt;http://p.sf.net/sfu/google-dev2dev&lt;BR&gt;_______________________________________________&lt;BR&gt;Htmlunit-user mailing list&lt;BR&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;IMPORTANT NOTICE: This e-mail message and all attachments, if any, may contain confidential and privileged material and are intended only for the person or entity to which the message is addressed. If you are not an intended recipient, you are hereby notified that any use, dissemination, distribution, disclosure, or copying of this information is unauthorized and strictly prohibited. If you have received this communication in error, please contact the sender immediately by reply e-mail, and destroy all copies of the original message.&lt;BR&gt;&lt;BR&gt;------------------------------------------------------------------------------&lt;BR&gt;Return on Information:&lt;BR&gt;Google Enterprise Search pays you back&lt;BR&gt;Get the facts.&lt;BR&gt;&lt;A href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/A&gt;&lt;BR&gt;_______________________________________________&lt;BR&gt;Htmlunit-user mailing list&lt;BR&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;!-- cg14.c4.mail.gq1.yahoo.com compressed/chunked Fri Dec  4 03:24:25 PST 2009 --&gt;&lt;/div&gt;&lt;br&gt;

      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Htmlunit-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719414&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GWT-and-htmunit-tp26713220p26719414.html" />
</entry>

</feed>
