<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2597</id>
	<title>Nabble - HtmlUnit</title>
	<updated>2009-12-07T19:29:31Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/HtmlUnit-f2597.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HtmlUnit-f2597.html" />
	<subtitle type="html">HtmlUnit is a java unit testing framework for testing web based applications. It is similar in concept to httpunit but is very different in implementation. Which one is better for you depends on how you like to write your tests. HttpUnit models the http protocol so you deal with request and response objects. HtmlUnit on the other hand, models the returned document so that you deal with pages and forms and tables. HtmlUnit home is &lt;a href=&quot;http://htmlunit.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26688184</id>
	<title>Re: [HtmlUnit] Forking Proxy</title>
	<published>2009-12-07T19:29:31Z</published>
	<updated>2009-12-07T19:29:31Z</updated>
	<author>
		<name>gredler</name>
	</author>
	<content type="html">Hi Ahmed,&lt;br&gt;&lt;br&gt;I have a private codebase (&amp;quot;huxy&amp;quot;) that uses JRuby to run Ruby&amp;#39;s WEBrick (which comes with Ruby) as a proxy server, and uses a recent Rhino snapshot (with the new AST) to reformat JS on the fly (idea stolen from Marc ;-). So essentially it&amp;#39;s JRuby + Rhino + WEBrick. It&amp;#39;s probably about 500 lines of code total. I can look into open sourcing it, but of course it&amp;#39;s mostly Ruby code :-)&lt;br&gt;
&lt;br&gt;Take care,&lt;br&gt;&lt;br&gt;Daniel&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Dec 7, 2009 at 5:29 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=26688184&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 class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt; color: rgb(102, 0, 0);&quot;&gt;&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Hi all,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;As you know, one of the challenges is to compare JavaScript execution difference between HtmlUnit and real browsers.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;FYI, I am starting to evaluate open-source Proxy servers, which can be used to instrument JavaScript before reaching the browsers, and then collect execution details about each and every JS statement.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;By quickly searching the net, there are:&lt;/div&gt;
&lt;div&gt;    - &lt;a href=&quot;http://www.dwgold.com/Projects/Networking/ProxyServer/Default.aspx&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.dwgold.com/Projects/Networking/ProxyServer/Default.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;    - &lt;a href=&quot;http://www.dfr.ch/en/proxy.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.dfr.ch/en/proxy.html&lt;/a&gt; (GPL)&lt;/div&gt;
&lt;div&gt;    - &lt;a href=&quot;http://www.cs.technion.ac.il/Labs/Lccn/projects/spring97/project1/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.technion.ac.il/Labs/Lccn/projects/spring97/project1/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;As always, your feedback is more than welcome.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Ahmed&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-develop mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688184&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&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;Daniel Gredler&lt;br&gt;&lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&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-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688184&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Forking-Proxy-tp26685410p26688184.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26685410</id>
	<title>[HtmlUnit] Forking Proxy</title>
	<published>2009-12-07T14:29:07Z</published>
	<updated>2009-12-07T14:29:07Z</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;color:#660000;&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi all,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;As you know, one of the challenges is to compare JavaScript execution difference between&amp;nbsp;HtmlUnit and real browsers.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;FYI, I&amp;nbsp;am starting to evaluate open-source Proxy servers, which can be used to instrument JavaScript before&amp;nbsp;reaching the browsers, and then collect execution details about each and every JS statement.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;By&amp;nbsp;quickly searching the net, there&amp;nbsp;are:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - &lt;A href=&quot;http://www.dwgold.com/Projects/Networking/ProxyServer/Default.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dwgold.com/Projects/Networking/ProxyServer/Default.aspx&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - &lt;A href=&quot;http://www.dfr.ch/en/proxy.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dfr.ch/en/proxy.html&lt;/A&gt;&amp;nbsp;(GPL)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - &lt;A href=&quot;http://www.cs.technion.ac.il/Labs/Lccn/projects/spring97/project1/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.technion.ac.il/Labs/Lccn/projects/spring97/project1/&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;As always, your feedback is more than welcome.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&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-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685410&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Forking-Proxy-tp26685410p26685410.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26684523</id>
	<title>Re: htmlunit charset problem</title>
	<published>2009-12-07T13:28:04Z</published>
	<updated>2009-12-07T13:28:04Z</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 Elias,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;In order to help investigate further, please provide minimal case that shows that behavior (preferably a small web&amp;nbsp;application).&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ahmed&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: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&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; Ηλιας Τσικουρης &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26684523&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;etsik@...&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=26684523&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; Mon, December 7, 2009 7:15:08 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] htmlunit charset problem&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;


&lt;DIV class=Section1&gt;
&lt;P class=MsoNormal&gt;I use HtmlUnit 2.6&lt;/P&gt;
&lt;P class=MsoNormal&gt;I try &amp;nbsp;to post Greek letters (128-255 ASCII or UTF-8) via setValueAttribute.&lt;/P&gt;
&lt;P class=MsoNormal&gt;Before posting I verify that the letters are correct.&lt;/P&gt;
&lt;P class=MsoNormal&gt;Then I sent the page.&lt;/P&gt;
&lt;P class=MsoNormal&gt;The incoming page shows the letters scrabbled (value=&quot;&amp;amp;#915;?&amp;amp;#915;?&amp;amp;#915;?)&lt;/P&gt;
&lt;P class=MsoNormal&gt;If I do the same with English characters there is no problem.&lt;/P&gt;
&lt;P class=MsoNormal&gt;Is it possible to adjust HtmlUnit to handle Greek chars?&lt;/P&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal&gt;Thanks&lt;/P&gt;
&lt;P class=MsoNormal&gt;Elias&lt;/P&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&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=26684523&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;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/htmlunit-charset-problem-tp26679624p26684523.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26681505</id>
	<title>Re: [HtmlUnit] Change visibility of TopLevelWindow's constructor?</title>
	<published>2009-12-07T10:14:27Z</published>
	<updated>2009-12-07T10:14:27Z</updated>
	<author>
		<name>gredler</name>
	</author>
	<content type="html">Go for it.&lt;br&gt;&lt;br&gt;Do we need to (or can we) do the same for the other Window implementations?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Dec 7, 2009 at 6:24 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=26681505&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 class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&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 class=&quot;im&quot;&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;gt;&amp;gt;therefore I would like to change it to protected.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;/div&gt;&lt;div&gt;+1&lt;br&gt;&lt;div class=&quot;hm&quot;&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;hm&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 class=&quot;hm&quot;&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: arial,helvetica,sans-serif; font-size: 10pt;&quot;&gt;&lt;div class=&quot;hm&quot;&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&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; Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26681505&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=26681505&amp;i=2&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;Sent:&lt;/span&gt;&lt;/b&gt; Mon, December 7, 2009 10:42:57 AM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; [HtmlUnit] Change visibility of TopLevelWindow&amp;#39;s constructor?&lt;br&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;Hi,&lt;br&gt;&lt;br&gt;you&amp;#39;ve surely seen the issue reported on the user list that was due to a &lt;br&gt;wrong usage of TopLevelWindow (instantiation by user).&lt;br&gt;&lt;br&gt;Do we really need to have TopLevelWindow&amp;#39;s constructor public? Looking &lt;br&gt;
quickly at the sources, it is only used in WebClient therefore I would &lt;br&gt;like to change it to protected.&lt;br&gt;&lt;br&gt;Thoughts?&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Marc.&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;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
HtmlUnit-develop mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26681505&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&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;Daniel Gredler&lt;br&gt;&lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26681505&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Change-visibility-of-TopLevelWindow%27s-constructor--tp26673701p26681505.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26679624</id>
	<title>htmlunit charset problem</title>
	<published>2009-12-07T08:15:08Z</published>
	<updated>2009-12-07T08:15:08Z</updated>
	<author>
		<name>Ηλιας Τσικουρης</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-7&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;I use HtmlUnit 2.6&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;I try  to post Greek letters (128-255 ASCII or UTF-8) via setValueAttribute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Before posting I verify that the letters are correct.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Then I sent the page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;The incoming page shows the letters scrabbled (value=&amp;quot;&amp;amp;#915;?&amp;amp;#915;?&amp;amp;#915;?)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;If I do the same with English characters there is no
problem.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Is it possible to adjust HtmlUnit to handle Greek chars?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Thanks&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Elias&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26679624&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;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/htmlunit-charset-problem-tp26679624p26679624.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26679521</id>
	<title>[HtmlUnit] htmlunit Build Failed</title>
	<published>2009-12-07T08:09:09Z</published>
	<updated>2009-12-07T08:09:09Z</updated>
	<author>
		<name>build-support</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
&lt;META http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
&lt;title&gt;CruiseControl Build Result&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1 xmlns:xslt=&quot;http://xml.apache.org/xslt&quot;&gt;BUILD FAILED&lt;/h1&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;Date of build&lt;/th&gt;&lt;td&gt;12/07/2009 16:23:01&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Time to build&lt;/th&gt;&lt;td&gt;45 minute(s) 51 second(s)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Last changed&lt;/th&gt;&lt;td&gt;12/07/2009 16:19:51&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Last log entry&lt;/th&gt;&lt;td&gt;CSS: don't override rules with a higher specificity.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;h2&gt;Ant Error Message&lt;/h2&gt;
&lt;pre&gt;Return code is 1&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;h2&gt;Unit Tests&lt;/h2&gt;
&lt;p&gt;Test cases: &lt;b&gt;10897&lt;/b&gt;, passed: &lt;b&gt;10896&lt;/b&gt;, failures: &lt;b&gt;1&lt;/b&gt;, errors: &lt;b&gt;0&lt;/b&gt;.&lt;/p&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bgcolor=&quot;white&quot; id=&quot;utests&quot;&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;green&quot; width=&quot;99.99082316233826%&quot;&gt;
						&amp;nbsp;
					&lt;/td&gt;&lt;td bgcolor=&quot;#FFFFA0&quot; width=&quot;0.009176837661741764%&quot;&gt;
						&amp;nbsp;
					&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;h3&gt;Failures&lt;/h3&gt;
&lt;ul&gt;
&lt;li class=&quot;oddrow&quot;&gt;waitForBackgroundJavaScriptStartingBefore_hangs&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Unit Test Error Details: (1)&lt;/h3&gt;
&lt;h4&gt;Test: waitForBackgroundJavaScriptStartingBefore_hangs&lt;/h4&gt;
&lt;p&gt;Type:org.junit.ComparisonFailure&lt;/p&gt;
&lt;p&gt;Message:expected:&amp;lt;[test]&amp;gt; but was:&amp;lt;[failed]&amp;gt;&lt;/p&gt;
&lt;PRE&gt;
      
&lt;/PRE&gt;
&lt;h2&gt;Functional Tests&lt;/h2&gt;
&lt;p&gt;Szenarios: &lt;b&gt;0&lt;/b&gt;, passed: &lt;b&gt;0&lt;/b&gt;, failed: &lt;b&gt;0&lt;/b&gt;, including &lt;b&gt;0&lt;/b&gt; single steps.&lt;/p&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bgcolor=&quot;white&quot; id=&quot;ftests&quot;&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;h2&gt;Modifications&lt;/h2&gt;
&lt;p&gt;7 modifications since last build.&lt;/p&gt;
&lt;h3&gt;mguillem: CSS: don't override rules with a higher specificity. (12/07/2009 16:19:51)&lt;/h3&gt;
&lt;ul&gt;
&lt;li class=&quot;oddrow&quot;&gt;
&lt;span class=&quot;modifificationType&quot;&gt;+&lt;/span&gt;

		&amp;nbsp;
	/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificity.java&lt;/li&gt;
&lt;li class=&quot;evenrow&quot;&gt;
&lt;span class=&quot;modifificationType&quot;&gt;&amp;gt;&lt;/span&gt;

		&amp;nbsp;
	/trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StyleSheetTest.java&lt;/li&gt;
&lt;li class=&quot;oddrow&quot;&gt;
&lt;span class=&quot;modifificationType&quot;&gt;&amp;gt;&lt;/span&gt;

		&amp;nbsp;
	/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java&lt;/li&gt;
&lt;li class=&quot;evenrow&quot;&gt;
&lt;span class=&quot;modifificationType&quot;&gt;&amp;gt;&lt;/span&gt;

		&amp;nbsp;
	/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java&lt;/li&gt;
&lt;li class=&quot;oddrow&quot;&gt;
&lt;span class=&quot;modifificationType&quot;&gt;&amp;gt;&lt;/span&gt;

		&amp;nbsp;
	/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Stylesheet.java&lt;/li&gt;
&lt;li class=&quot;evenrow&quot;&gt;
&lt;span class=&quot;modifificationType&quot;&gt;+&lt;/span&gt;

		&amp;nbsp;
	/trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificityTest.java&lt;/li&gt;
&lt;li class=&quot;oddrow&quot;&gt;
&lt;span class=&quot;modifificationType&quot;&gt;&amp;gt;&lt;/span&gt;

		&amp;nbsp;
	/trunk/htmlunit/src/changes/changes.xml&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26679521&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--htmlunit-Build-Failed-tp26679521p26679521.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678796</id>
	<title>[HtmlUnit] [ htmlunit-Bugs-2910057 ] Cannot acquire form input wrapped in &lt;noscript&gt;</title>
	<published>2009-12-07T07:23:50Z</published>
	<updated>2009-12-07T07:23:50Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2910057, was opened at 2009-12-07 16:16
&lt;br&gt;Message generated for change (Comment added) made by mguillem
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2910057&amp;group_id=47038&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2910057&amp;group_id=47038&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: None
&lt;br&gt;Group: 2.5
&lt;br&gt;&amp;gt;Status: Closed
&lt;br&gt;&amp;gt;Resolution: Invalid
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Mark (ae6rt)
&lt;br&gt;&amp;gt;Assigned to: Marc Guillemot (mguillem)
&lt;br&gt;Summary: Cannot acquire form input wrapped in &amp;lt;noscript&amp;gt;
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Per this thread on the users mailing list:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/mailarchive/forum.php?thread_name=ffe1e27a0912061920x5213cfc2kdd0390a22805b6f8%40mail.gmail.com&amp;forum_name=htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/mailarchive/forum.php?thread_name=ffe1e27a0912061920x5213cfc2kdd0390a22805b6f8%40mail.gmail.com&amp;forum_name=htmlunit-user&lt;/a&gt;&lt;br&gt;&lt;br&gt;If a form input is wrapped in &amp;lt;noscript&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;noscript&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; name=&amp;quot;cancel.x&amp;quot; value=&amp;quot;some value&amp;quot; class= &amp;quot;transparentButton&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/noscript&amp;gt;
&lt;br&gt;&lt;br&gt;the select
&lt;br&gt;&lt;br&gt;page = (HtmlPage) form.getInputByValue(&amp;quot;some value&amp;quot;).click();
&lt;br&gt;&lt;br&gt;fails.
&lt;br&gt;&lt;br&gt;Daniel Gedler suggested turning off Javascript 
&lt;br&gt;&lt;br&gt;webClient.setJavaScriptEnabled(false) 
&lt;br&gt;&lt;br&gt;which actually does work. &amp;nbsp;He asked that I file this bug.
&lt;br&gt;&lt;br&gt;Mark Petrovic
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Marc Guillemot (mguillem)
&lt;br&gt;Date: 2009-12-07 16:23
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;if JavaScript is enabled, the content of a &amp;lt;noscript&amp;gt; node is just plain
&lt;br&gt;text that is ignored by the browser. HtmlUnit behaves just like &amp;quot;real&amp;quot;
&lt;br&gt;browsers here.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2910057&amp;group_id=47038&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2910057&amp;group_id=47038&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678796&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit----htmlunit-Bugs-2910057---Cannot-acquire-form-input-wrapped-in-%3Cnoscript%3E-tp26678796p26678796.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678721</id>
	<title>[HtmlUnit] SF.net SVN: htmlunit:[5219] trunk/htmlunit/src</title>
	<published>2009-12-07T07:19:51Z</published>
	<updated>2009-12-07T07:19:51Z</updated>
	<author>
		<name>mguillem</name>
	</author>
	<content type="html">Revision: 5219
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://htmlunit.svn.sourceforge.net/htmlunit/?rev=5219&amp;view=rev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://htmlunit.svn.sourceforge.net/htmlunit/?rev=5219&amp;view=rev&lt;/a&gt;&lt;br&gt;Author: &amp;nbsp; mguillem
&lt;br&gt;Date: &amp;nbsp; &amp;nbsp; 2009-12-07 15:19:51 +0000 (Mon, 07 Dec 2009)
&lt;br&gt;&lt;br&gt;Log Message:
&lt;br&gt;-----------
&lt;br&gt;CSS: don't override rules with a higher specificity.
&lt;br&gt;&lt;br&gt;Modified Paths:
&lt;br&gt;--------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; trunk/htmlunit/src/changes/changes.xml
&lt;br&gt;&amp;nbsp; &amp;nbsp; trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Stylesheet.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StyleSheetTest.java
&lt;br&gt;&lt;br&gt;Added Paths:
&lt;br&gt;-----------
&lt;br&gt;&amp;nbsp; &amp;nbsp; trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificity.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificityTest.java
&lt;br&gt;&lt;br&gt;Modified: trunk/htmlunit/src/changes/changes.xml
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/htmlunit/src/changes/changes.xml	2009-12-04 13:12:43 UTC (rev 5218)
&lt;br&gt;+++ trunk/htmlunit/src/changes/changes.xml	2009-12-07 15:19:51 UTC (rev 5219)
&lt;br&gt;@@ -7,6 +7,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;release version=&amp;quot;2.7&amp;quot; date=&amp;quot;?&amp;quot; description=&amp;quot;Bugfixes, initial IE8 support, HttpClient 4 migration&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;action type=&amp;quot;fix&amp;quot; dev=&amp;quot;mguillem&amp;quot;&amp;gt;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CSS: don't override rules with a higher specificity.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/action&amp;gt;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;action type=&amp;quot;fix&amp;quot; dev=&amp;quot;mguillem&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JavaScript: window.getSelection() returns null for frame windows that are not displayed (FF only).
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/action&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;action type=&amp;quot;fix&amp;quot; dev=&amp;quot;asashour&amp;quot; issue=&amp;quot;2906062&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Stylesheet.java
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Stylesheet.java	2009-12-04 13:12:43 UTC (rev 5218)
&lt;br&gt;+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Stylesheet.java	2009-12-07 15:19:51 UTC (rev 5219)
&lt;br&gt;@@ -170,12 +170,7 @@
&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;final boolean selected = selects(selector, e);
&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;if (selected) {
&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;final org.w3c.dom.css.CSSStyleDeclaration dec = styleRule.getStyle();
&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;for (int k = 0; k &amp;lt; dec.getLength(); k++) {
&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;final String name = dec.item(k);
&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;final String value = dec.getPropertyValue(name);
&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;final String priority = dec.getPropertyPriority(name);
&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;style.setLocalStyleAttribute(name, value, priority);
&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;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style.applyStyleFromSelector(dec, selector);
&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; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -452,7 +447,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * @param source the source from which to retrieve the selectors to be parsed
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * @return the selectors parsed from the specified input source
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;- &amp;nbsp; &amp;nbsp;SelectorList parseSelectors(final InputSource source) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;public SelectorList parseSelectors(final InputSource source) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SelectorList selectors;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final ErrorHandler errorHandler = getWindow().getWebWindow().getWebClient().getCssErrorHandler();
&lt;br&gt;&lt;br&gt;Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java	2009-12-04 13:12:43 UTC (rev 5218)
&lt;br&gt;+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java	2009-12-07 15:19:51 UTC (rev 5219)
&lt;br&gt;@@ -4587,18 +4587,23 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private final String value_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private final String priority_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private final long index_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private final SelectorSpecificity specificity_;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * Creates a new instance.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @param name the style element's name
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @param value the style element's value
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @param priority the style element's priority like &amp;quot;important&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @param specificity the specifity of the rule providign this style information
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @param index the style element's index
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;protected StyleElement(final String name, final String value, final String priority, final long index) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;protected StyleElement(final String name, final String value, final String priority,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificity, final long index) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.name_ = name;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.value_ = value;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.priority_ = priority;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.index_ = index;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.specificity_ = specificity;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * Creates a new instance.
&lt;br&gt;@@ -4607,7 +4612,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @param index the style element's index
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;protected StyleElement(final String name, final String value, final long index) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this(name, value, &amp;quot;&amp;quot;, index);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this(name, value, &amp;quot;&amp;quot;, SelectorSpecificity.FROM_STYLE_ATTRIBUTE, index);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;@@ -4641,6 +4646,13 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return priority_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * Returns the specificity of the rule specifying this element.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @return the specificity
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public SelectorSpecificity getSpecificity() {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return specificity_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * Returns the style element's index.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @return the style element's index
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&lt;br&gt;Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java	2009-12-04 13:12:43 UTC (rev 5218)
&lt;br&gt;+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java	2009-12-07 15:19:51 UTC (rev 5219)
&lt;br&gt;@@ -27,6 +27,7 @@
&lt;br&gt;&amp;nbsp;import net.sourceforge.htmlunit.corejs.javascript.Context;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;import org.apache.commons.lang.StringUtils;
&lt;br&gt;+import org.w3c.css.sac.Selector;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;import com.gargoylesoftware.htmlunit.html.DomNode;
&lt;br&gt;&amp;nbsp;import com.gargoylesoftware.htmlunit.html.HtmlElement;
&lt;br&gt;@@ -159,18 +160,33 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * Makes a local, &amp;quot;computed&amp;quot;, modification to this CSS style.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; *
&lt;br&gt;- &amp;nbsp; &amp;nbsp; * @param name the name of the style attribute to set
&lt;br&gt;- &amp;nbsp; &amp;nbsp; * @param newValue the value of the style attribute to set
&lt;br&gt;- &amp;nbsp; &amp;nbsp; * @param priority the priority of the style attribute to set
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * @param declaration the style declaration
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * @param selector the selector determining that the style applies to this element
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;- &amp;nbsp; &amp;nbsp;public void setLocalStyleAttribute(final String name, final String newValue, final String priority) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;public void applyStyleFromSelector(final org.w3c.dom.css.CSSStyleDeclaration declaration, final Selector selector) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificity = new SelectorSpecificity(selector);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int k = 0; k &amp;lt; declaration.getLength(); k++) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final String name = declaration.item(k);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final String value = declaration.getPropertyValue(name);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final String priority = declaration.getPropertyPriority(name);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;applyLocalStyleAttribute(name, value, priority, specificity);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private void applyLocalStyleAttribute(final String name, final String newValue, final String priority,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificity) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!&amp;quot;important&amp;quot;.equals(priority)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final StyleElement existingElement = localModifications_.get(name);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (existingElement != null &amp;&amp; &amp;quot;important&amp;quot;.equals(existingElement.getPriority())) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return; // can't override a !important rule by a normal rule. Ignore it!
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (existingElement != null) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (&amp;quot;important&amp;quot;.equals(existingElement.getPriority())) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return; // can't override a !important rule by a normal rule. Ignore it!
&lt;br&gt;+ &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; &amp;nbsp;else if (specificity.compareTo(existingElement.getSpecificity()) &amp;lt; 0) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return; // can't override a rule with a rule having higher specificity
&lt;br&gt;+ &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;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final StyleElement element = new StyleElement(name, newValue, priority, getCurrentElementIndex());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final StyleElement element = new StyleElement(name, newValue, priority, specificity, getCurrentElementIndex());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;localModifications_.put(name, element);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Added: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificity.java
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificity.java	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(rev 0)
&lt;br&gt;+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificity.java	2009-12-07 15:19:51 UTC (rev 5219)
&lt;br&gt;@@ -0,0 +1,149 @@
&lt;br&gt;+/*
&lt;br&gt;+ * Copyright (c) 2002-2009 Gargoyle Software Inc.
&lt;br&gt;+ *
&lt;br&gt;+ * Licensed under the Apache License, Version 2.0 (the &amp;quot;License&amp;quot;);
&lt;br&gt;+ * you may not use this file except in compliance with the License.
&lt;br&gt;+ * You may obtain a copy of the License at
&lt;br&gt;+ * &lt;a href=&quot;http://www.apache.org/licenses/LICENSE-2.0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/a&gt;&lt;br&gt;+ *
&lt;br&gt;+ * Unless required by applicable law or agreed to in writing, software
&lt;br&gt;+ * distributed under the License is distributed on an &amp;quot;AS IS&amp;quot; BASIS,
&lt;br&gt;+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
&lt;br&gt;+ * See the License for the specific language governing permissions and
&lt;br&gt;+ * limitations under the License.
&lt;br&gt;+ */
&lt;br&gt;+package com.gargoylesoftware.htmlunit.javascript.host.css;
&lt;br&gt;+
&lt;br&gt;+import org.apache.commons.logging.Log;
&lt;br&gt;+import org.apache.commons.logging.LogFactory;
&lt;br&gt;+import org.w3c.css.sac.AttributeCondition;
&lt;br&gt;+import org.w3c.css.sac.CombinatorCondition;
&lt;br&gt;+import org.w3c.css.sac.Condition;
&lt;br&gt;+import org.w3c.css.sac.ConditionalSelector;
&lt;br&gt;+import org.w3c.css.sac.DescendantSelector;
&lt;br&gt;+import org.w3c.css.sac.ElementSelector;
&lt;br&gt;+import org.w3c.css.sac.Selector;
&lt;br&gt;+import org.w3c.css.sac.SiblingSelector;
&lt;br&gt;+
&lt;br&gt;+/**
&lt;br&gt;+ * Calculates a selector's specificity.
&lt;br&gt;+ * @see &amp;lt;a href=&amp;quot;&lt;a href=&quot;http://www.w3.org/TR/CSS2/cascade.html#specificity&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/CSS2/cascade.html#specificity&lt;/a&gt;&amp;quot;&amp;gt;W3C CSS2&amp;lt;/a&amp;gt;
&lt;br&gt;+ * @version $Revision$
&lt;br&gt;+ * @author Marc Guillemot
&lt;br&gt;+ */
&lt;br&gt;+class SelectorSpecificity implements Comparable&amp;lt;SelectorSpecificity&amp;gt; {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private static final Log LOG = LogFactory.getLog(SelectorSpecificity.class);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * The specificity for declarations made in the style attributes of an element.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;public static final SelectorSpecificity FROM_STYLE_ATTRIBUTE = new SelectorSpecificity(1, 0, 0, 0);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private int fieldA_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private int fieldB_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private int fieldC_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private int fieldD_;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;SelectorSpecificity(final Selector selector) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readSelectorSpecificity(selector);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private SelectorSpecificity(final int a, final int b, final int c, final int d) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldA_ = a;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldB_ = b;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldC_ = c;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldD_ = d;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;void readSelectorSpecificity(final Selector selector) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switch (selector.getSelectorType()) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Selector.SAC_ANY_NODE_SELECTOR:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Selector.SAC_DESCENDANT_SELECTOR:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final DescendantSelector ds = (DescendantSelector) selector;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readSelectorSpecificity(ds.getAncestorSelector());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readSelectorSpecificity(ds.getSimpleSelector());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Selector.SAC_CONDITIONAL_SELECTOR:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final ConditionalSelector conditional = (ConditionalSelector) selector;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final Condition condition = conditional.getCondition();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readSelectorSpecificity(conditional.getSimpleSelector());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readSelectorSpecificity(condition);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Selector.SAC_ELEMENT_NODE_SELECTOR:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final ElementSelector es = (ElementSelector) selector;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final String name = es.getLocalName();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (name != null) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldD_++;
&lt;br&gt;+ &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; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Selector.SAC_DIRECT_ADJACENT_SELECTOR:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SiblingSelector ss = (SiblingSelector) selector;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readSelectorSpecificity(ss.getSelector());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readSelectorSpecificity(ss.getSiblingSelector());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;default:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOG.warn(&amp;quot;Unhandled CSS selector type for specificity computation: '&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;+ selector.getSelectorType() + &amp;quot;'.&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private void readSelectorSpecificity(final Condition condition) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switch (condition.getConditionType()) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Condition.SAC_ID_CONDITION:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldB_++;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Condition.SAC_CLASS_CONDITION:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldC_++;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Condition.SAC_AND_CONDITION:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final CombinatorCondition cc1 = (CombinatorCondition) condition;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readSelectorSpecificity(cc1.getFirstCondition());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readSelectorSpecificity(cc1.getSecondCondition());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Condition.SAC_ATTRIBUTE_CONDITION:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final AttributeCondition ac1 = (AttributeCondition) condition;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (&amp;quot;id&amp;quot;.equalsIgnoreCase(ac1.getLocalName())) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldB_++;
&lt;br&gt;+ &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; &amp;nbsp;else {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldC_++;
&lt;br&gt;+ &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; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case Condition.SAC_PSEUDO_CLASS_CONDITION:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldD_++;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;default:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOG.warn(&amp;quot;Unhandled CSS condition type for specifity computation: '&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;+ condition.getConditionType() + &amp;quot;'.&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * {@inheritDoc}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;@Override
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;public String toString() {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return fieldA_ + &amp;quot;,&amp;quot; + fieldB_ + &amp;quot;,&amp;quot; + fieldC_ + &amp;quot;,&amp;quot; + fieldD_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * {@inheritDoc}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;public int compareTo(final SelectorSpecificity other) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (fieldA_ != other.fieldA_) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return fieldA_ - other.fieldA_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (fieldB_ != other.fieldB_) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return fieldB_ - other.fieldB_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (fieldC_ != other.fieldC_) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return fieldC_ - other.fieldC_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (fieldD_ != other.fieldD_) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return fieldD_ - other.fieldD_;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Property changes on: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificity.java
&lt;br&gt;___________________________________________________________________
&lt;br&gt;Added: svn:keywords
&lt;br&gt;&amp;nbsp; &amp;nbsp;+ Author Date Id Revision
&lt;br&gt;Added: svn:eol-style
&lt;br&gt;&amp;nbsp; &amp;nbsp;+ native
&lt;br&gt;&lt;br&gt;Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StyleSheetTest.java
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StyleSheetTest.java	2009-12-04 13:12:43 UTC (rev 5218)
&lt;br&gt;+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StyleSheetTest.java	2009-12-07 15:19:51 UTC (rev 5219)
&lt;br&gt;@@ -77,7 +77,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final HTMLStyleElement host = (HTMLStyleElement) node.getScriptObject();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final Stylesheet sheet = host.jsxGet_sheet();
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Selector selector = sheet.parseSelectors(new InputSource(new StringReader(&amp;quot;*.yui-log input { }&amp;quot;))).item(0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Selector selector = parseSelector(sheet, &amp;quot;*.yui-log input { }&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;assertFalse(sheet.selects(selector, body));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;assertFalse(sheet.selects(selector, form));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;assertTrue(sheet.selects(selector, input1));
&lt;br&gt;@@ -85,11 +85,15 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;assertFalse(sheet.selects(selector, button1));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;assertFalse(sheet.selects(selector, button2));
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;selector = sheet.parseSelectors(new InputSource(new StringReader(&amp;quot;#m1 { margin: 3px; }&amp;quot;))).item(0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;selector = parseSelector(sheet, &amp;quot;#m1 { margin: 3px; }&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;assertTrue(sheet.selects(selector, input1));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;assertFalse(sheet.selects(selector, input2));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private Selector parseSelector(final Stylesheet sheet, final String rule) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return sheet.parseSelectors(new InputSource(new StringReader(rule))).item(0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * @throws Exception if an error occurs
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;@@ -469,4 +473,84 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;loadPageWithAlerts2(html);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * Test that the rule with higher specifity wins.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * @throws Exception on test failure
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;@Test
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;@Alerts(&amp;quot;60&amp;quot;)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;public void rulePriority_specificity() throws Exception {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final String html = &amp;quot;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;style&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;div { z-index: 60 }\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;* { z-index: 10 }\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/style&amp;gt;&amp;lt;/head&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;body&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;div id='it'&amp;gt;hello&amp;lt;/div&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;script&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;var getStyle = function(e) {\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;return window.getComputedStyle ? window.getComputedStyle(e,'') : e.currentStyle; \n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;};\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;alert(getStyle(document.getElementById('it')).zIndex);\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/script&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;quot;;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;loadPageWithAlerts2(html);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * Test that the rule with higher specifity wins. More comple case.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * @throws Exception on test failure
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;@Test
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;@Alerts(&amp;quot;60&amp;quot;)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;public void rulePriority_specificity2() throws Exception {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final String html = &amp;quot;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;style&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;.classA .classB .classC { z-index: 60 }\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;.classA .classC { z-index: 10 }\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/style&amp;gt;&amp;lt;/head&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;body&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;div class='classA'&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;div class='classB'&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;div id='it' class='classC'&amp;gt;hello&amp;lt;/div&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/div&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/div&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;script&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;var getStyle = function(e) {\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;return window.getComputedStyle ? window.getComputedStyle(e,'') : e.currentStyle; \n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;};\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;alert(getStyle(document.getElementById('it')).zIndex);\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/script&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;quot;;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;loadPageWithAlerts2(html);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * Test that the last one wins when selectors have the same specificity.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * @throws Exception on test failure
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;@Test
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;@Alerts({ &amp;quot;10&amp;quot;, &amp;quot;10&amp;quot; })
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;public void rulePriority_position() throws Exception {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final String html = &amp;quot;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;style&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;.classA { z-index: 60 }\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;.classB { z-index: 10 }\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/style&amp;gt;&amp;lt;/head&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;body&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;div id='it1' class='classA classB'&amp;gt;hello&amp;lt;/div&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;div id='it2' class='classA classB'&amp;gt;hello&amp;lt;/div&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;script&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;var getStyle = function(e) {\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;return window.getComputedStyle ? window.getComputedStyle(e,'') : e.currentStyle; \n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;};\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;alert(getStyle(document.getElementById('it1')).zIndex);\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;alert(getStyle(document.getElementById('it2')).zIndex);\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/script&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;quot;;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;loadPageWithAlerts2(html);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;Added: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificityTest.java
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificityTest.java	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(rev 0)
&lt;br&gt;+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificityTest.java	2009-12-07 15:19:51 UTC (rev 5219)
&lt;br&gt;@@ -0,0 +1,100 @@
&lt;br&gt;+/*
&lt;br&gt;+ * Copyright (c) 2002-2009 Gargoyle Software Inc.
&lt;br&gt;+ *
&lt;br&gt;+ * Licensed under the Apache License, Version 2.0 (the &amp;quot;License&amp;quot;);
&lt;br&gt;+ * you may not use this file except in compliance with the License.
&lt;br&gt;+ * You may obtain a copy of the License at
&lt;br&gt;+ * &lt;a href=&quot;http://www.apache.org/licenses/LICENSE-2.0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/a&gt;&lt;br&gt;+ *
&lt;br&gt;+ * Unless required by applicable law or agreed to in writing, software
&lt;br&gt;+ * distributed under the License is distributed on an &amp;quot;AS IS&amp;quot; BASIS,
&lt;br&gt;+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
&lt;br&gt;+ * See the License for the specific language governing permissions and
&lt;br&gt;+ * limitations under the License.
&lt;br&gt;+ */
&lt;br&gt;+package com.gargoylesoftware.htmlunit.javascript.host.css;
&lt;br&gt;+
&lt;br&gt;+import java.io.StringReader;
&lt;br&gt;+
&lt;br&gt;+import org.junit.Assert;
&lt;br&gt;+import org.junit.Test;
&lt;br&gt;+import org.w3c.css.sac.InputSource;
&lt;br&gt;+import org.w3c.css.sac.Selector;
&lt;br&gt;+
&lt;br&gt;+import com.gargoylesoftware.htmlunit.WebTestCase;
&lt;br&gt;+import com.gargoylesoftware.htmlunit.BrowserRunner.Browser;
&lt;br&gt;+import com.gargoylesoftware.htmlunit.BrowserRunner.Browsers;
&lt;br&gt;+import com.gargoylesoftware.htmlunit.html.HtmlPage;
&lt;br&gt;+import com.gargoylesoftware.htmlunit.html.HtmlStyle;
&lt;br&gt;+import com.gargoylesoftware.htmlunit.javascript.host.Stylesheet;
&lt;br&gt;+import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLStyleElement;
&lt;br&gt;+
&lt;br&gt;+/**
&lt;br&gt;+ * Tests for {@link SelectorSpecificity}.
&lt;br&gt;+ *
&lt;br&gt;+ * @version $Revision$
&lt;br&gt;+ * @author Marc Guillemot
&lt;br&gt;+ */
&lt;br&gt;+public class SelectorSpecificityTest extends WebTestCase {
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * @throws Exception if the test fails
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;@Test
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;@Browsers(Browser.NONE)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;public void selectorSpecifity() throws Exception {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificy0 = selectorSpecifity(&amp;quot;*&amp;quot;, &amp;quot;0,0,0,0&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificy1 = selectorSpecifity(&amp;quot;li&amp;quot;, &amp;quot;0,0,0,1&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificy2a = selectorSpecifity(&amp;quot;li:first-line&amp;quot;, &amp;quot;0,0,0,2&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificy2b = selectorSpecifity(&amp;quot;ul li&amp;quot;, &amp;quot;0,0,0,2&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificy3 = selectorSpecifity(&amp;quot;ul ol+li&amp;quot;, &amp;quot;0,0,0,3&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificy11 = selectorSpecifity(&amp;quot;h1 + *[rel=up]&amp;quot;, &amp;quot;0,0,1,1&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificy13 = selectorSpecifity(&amp;quot;ul ol li.red&amp;quot;, &amp;quot;0,0,1,3&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificy21 = selectorSpecifity(&amp;quot;li.red.level&amp;quot;, &amp;quot;0,0,2,1&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificy100 = selectorSpecifity(&amp;quot;#x34y&amp;quot;, &amp;quot;0,1,0,0&amp;quot;);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertEquals(0, specificy0.compareTo(specificy0));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy0.compareTo(specificy1) &amp;lt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy0.compareTo(specificy2a) &amp;lt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy0.compareTo(specificy13) &amp;lt; 0);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertEquals(0, specificy1.compareTo(specificy1));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy1.compareTo(specificy0) &amp;gt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy1.compareTo(specificy2a) &amp;lt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy1.compareTo(specificy13) &amp;lt; 0);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertEquals(0, specificy2a.compareTo(specificy2b));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy2a.compareTo(specificy0) &amp;gt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy2a.compareTo(specificy3) &amp;lt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy2a.compareTo(specificy11) &amp;lt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy2a.compareTo(specificy13) &amp;lt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy2a.compareTo(specificy100) &amp;lt; 0);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertEquals(0, specificy11.compareTo(specificy11));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy11.compareTo(specificy0) &amp;gt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy11.compareTo(specificy13) &amp;lt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy11.compareTo(specificy21) &amp;lt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assert.assertTrue(specificy11.compareTo(specificy100) &amp;lt; 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private SelectorSpecificity selectorSpecifity(final String selector, final String expectedSpecificity)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;throws Exception {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final String html =
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;&amp;lt;html&amp;gt;&amp;lt;body id='b'&amp;gt;&amp;lt;style&amp;gt;&amp;lt;/style&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;div id='d' class='foo bar'&amp;gt;&amp;lt;span&amp;gt;x&amp;lt;/span&amp;gt;&amp;lt;span id='s'&amp;gt;a&amp;lt;/span&amp;gt;b&amp;lt;/div&amp;gt;\n&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;quot;;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final HtmlPage page = loadPage(html);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final HtmlStyle node = (HtmlStyle) page.getElementsByTagName(&amp;quot;style&amp;quot;).item(0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final HTMLStyleElement host = (HTMLStyleElement) node.getScriptObject();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final Stylesheet sheet = host.jsxGet_sheet();
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final Selector selectorObject = parseSelector(sheet, selector);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final SelectorSpecificity specificity = new SelectorSpecificity(selectorObject);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;assertEquals(expectedSpecificity, specificity.toString());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return specificity;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;private Selector parseSelector(final Stylesheet sheet, final String rule) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return sheet.parseSelectors(new InputSource(new StringReader(rule))).item(0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Property changes on: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificityTest.java
&lt;br&gt;___________________________________________________________________
&lt;br&gt;Added: svn:keywords
&lt;br&gt;&amp;nbsp; &amp;nbsp;+ Author Date Id Revision
&lt;br&gt;Added: svn:eol-style
&lt;br&gt;&amp;nbsp; &amp;nbsp;+ native
&lt;br&gt;&lt;br&gt;&lt;br&gt;This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678721&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--SF.net-SVN%3A-htmlunit%3A-5219--trunk-htmlunit-src-tp26678721p26678721.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678673</id>
	<title>[HtmlUnit] [ htmlunit-Bugs-2910057 ] Cannot acquire form input wrapped in &lt;noscript&gt;</title>
	<published>2009-12-07T07:16:20Z</published>
	<updated>2009-12-07T07:16:20Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2910057, was opened at 2009-12-07 07:16
&lt;br&gt;Message generated for change (Tracker Item Submitted) made by ae6rt
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2910057&amp;group_id=47038&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2910057&amp;group_id=47038&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: None
&lt;br&gt;Group: 2.5
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Mark (ae6rt)
&lt;br&gt;Assigned to: Nobody/Anonymous (nobody)
&lt;br&gt;Summary: Cannot acquire form input wrapped in &amp;lt;noscript&amp;gt;
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Per this thread on the users mailing list:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/mailarchive/forum.php?thread_name=ffe1e27a0912061920x5213cfc2kdd0390a22805b6f8%40mail.gmail.com&amp;forum_name=htmlunit-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/mailarchive/forum.php?thread_name=ffe1e27a0912061920x5213cfc2kdd0390a22805b6f8%40mail.gmail.com&amp;forum_name=htmlunit-user&lt;/a&gt;&lt;br&gt;&lt;br&gt;If a form input is wrapped in &amp;lt;noscript&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;noscript&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; name=&amp;quot;cancel.x&amp;quot; value=&amp;quot;some value&amp;quot; class= &amp;quot;transparentButton&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/noscript&amp;gt;
&lt;br&gt;&lt;br&gt;the select
&lt;br&gt;&lt;br&gt;page = (HtmlPage) form.getInputByValue(&amp;quot;some value&amp;quot;).click();
&lt;br&gt;&lt;br&gt;fails.
&lt;br&gt;&lt;br&gt;Daniel Gedler suggested turning off Javascript 
&lt;br&gt;&lt;br&gt;webClient.setJavaScriptEnabled(false) 
&lt;br&gt;&lt;br&gt;which actually does work. &amp;nbsp;He asked that I file this bug.
&lt;br&gt;&lt;br&gt;Mark Petrovic
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2910057&amp;group_id=47038&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2910057&amp;group_id=47038&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678673&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit----htmlunit-Bugs-2910057---Cannot-acquire-form-input-wrapped-in-%3Cnoscript%3E-tp26678673p26678673.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678332</id>
	<title>Re: [HtmlUnit] Please correct this snippet for me. when I get the code result from GoogleCodeSearch</title>
	<published>2009-12-07T06:54:04Z</published>
	<updated>2009-12-07T06:54:04Z</updated>
	<author>
		<name>Dai Phan the</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;Thanks to Frank, your information is very useful for me.&lt;br&gt;I still meet a following problem, &lt;br&gt;although I got the Google webpage's content, but I can not see result content (a code sample) of GoogleCodeSearch.&lt;br&gt;Using getPage().asXML, I saw GoogleCodeSearch uses some JavaScripts &lt;br&gt;to display search result that is class sourcecode (example for sourcecode file is java class).&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;As the below snippet, the java file is &lt;a href=&quot;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;yshortcuts&quot; id=&quot;lw_1260196827_0&quot;&gt;HelloWorld.java&lt;/span&gt;&lt;/a&gt;.&lt;br&gt;&lt;br&gt;With wish checking HtmlUnit completing javascripts on the Google page.&lt;br&gt;I set
 &quot;webClient.waitForBackgroundJavaScriptStartingBefore(10000)&quot; &lt;br&gt;But I still could not get the result of GooglecodeSearch (content of &lt;a href=&quot;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;yshortcuts&quot; id=&quot;lw_1260196827_0&quot;&gt;HelloWorld.java&lt;/span&gt;&lt;/a&gt;).&lt;br&gt;Please help me one more.&lt;br&gt;Thank you very much !&lt;br&gt;&lt;br&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&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; Frank Cohen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678332&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;frank@...&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=26678332&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;Sent:&lt;/span&gt;&lt;/b&gt; Mon, December 7, 2009 9:59:32 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] Please correct this snippet for me. when I get the code result from GoogleCodeSearch&lt;br&gt;&lt;/font&gt;&lt;br&gt;
Hi Dai Phan:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Your XPath express is invalid for the search page results. So when you do a get(0) then Java throws the IndexOutOfBoundsException.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I recommend you do the getPage() and then use asXml() and see what Google is actually returning.&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 7, 2009, at 2:27 AM, Dai Phan the wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;Dear every developer,&lt;br&gt;I am a newcomer in this area and finding a way using HtmlUnit 2.6 to parse the GoogleCodeSearch's result. I want to get source code in the result. Last week, the following snippet is Ok, but now It has errors. Please help me to correct it as soon as or explain the detail reason.&lt;br&gt;Thanks much!&lt;br&gt;&lt;br&gt;WebClient webClient = new WebClient();&lt;br&gt;&amp;nbsp;  String url = &quot;&lt;a href=&quot;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;yshortcuts&quot; id=&quot;lw_1260196827_0&quot;&gt;http://www.google.com/codesearch/p?hl=en#OsXOG0jgXZ8/make/test/HelloWorld.java&lt;/span&gt;&lt;/a&gt;&quot;;&lt;br&gt;&amp;nbsp;  HtmlPage page = webClient.getPage(url);&lt;br&gt;&amp;nbsp; webClient.waitForBackgroundJavaScriptStartingBefore(10000);&lt;br&gt;&amp;nbsp;  HtmlPreformattedText pre = (HtmlPreformattedText) page.getByXPath&lt;br&gt;(&quot;//html/body/div/div[2]/div/div/div[3]/div/div[2]/div/div/div/div/div/&lt;br&gt;div[2]/pre&quot;).get(0);&lt;br&gt;&amp;nbsp;  System.out.println(pre.getTextContent());&lt;br&gt;&lt;br&gt;===============================&lt;br&gt;The following error occurred.&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Exception in thread &quot;main&quot;&lt;br&gt;java.lang.IndexOutOfBoundsException: Index: 0, Size: 0&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.RangeCheck(Unknown Source)&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.get(Unknown
 Source)...&quot;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;a free event focused on virtualization and cloud computing. &lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;&lt;span&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;/span&gt;&lt;br&gt;_______________________________________________&lt;br&gt;HtmlUnit-develop mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678332&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;br&gt;&lt;span&gt;&lt;a target=&quot;_blank&quot; href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;/span&gt;&lt;br&gt;&lt;/div&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-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;div style=&quot;word-wrap: break-word;&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;&quot;&gt;&lt;div style=&quot;word-wrap: break-word;&quot;&gt;&lt;div&gt;--&lt;br&gt;&lt;span&gt;Frank Cohen,&amp;nbsp;&lt;a target=&quot;_blank&quot; href=&quot;http://www.PushToTest.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.PushToTest.com/&lt;/a&gt;, phone 408 871 0122&lt;/span&gt;&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;/div&gt;&lt;/div&gt;
&lt;!-- cg8.c1.mail.mud.yahoo.com compressed/chunked Mon Dec  7 02:34:41 PST 2009 --&gt;
&lt;/div&gt;&lt;br&gt;

      &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678332&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Please-correct-this-snippet-for-me.-when-I-get-the-code-result-from-GoogleCodeSearch-tp26675297p26678332.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26677461</id>
	<title>Re: [HtmlUnit] Assosiation to another htmlunit that i have found</title>
	<published>2009-12-07T05:44:03Z</published>
	<updated>2009-12-07T05:44:03Z</updated>
	<author>
		<name>Stephen Coughlan-2</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
Thanks everybody for the information. your all good guys &lt;BR&gt;&amp;nbsp;&lt;div class='shrinkable-quote'&gt;&lt;BR&gt;&amp;gt; Date: Mon, 7 Dec 2009 08:27:33 +0100&lt;BR&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677461&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&lt;BR&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677461&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;htmlunit-develop@...&lt;/a&gt;&lt;BR&gt;&amp;gt; Subject: Re: [HtmlUnit] Assosiation to another htmlunit that i have found&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; If you look at the download page, you'll see that this project is... not &lt;BR&gt;&amp;gt; very active.&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; Daniel Gredler a écrit :&lt;BR&gt;&amp;gt; &amp;gt; Hi Stephen,&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; They're not affiliated with HtmlUnit, but I believe they have a &lt;BR&gt;&amp;gt; &amp;gt; HtmlUnit-based test runner:&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; http://developer.spikesource.com/wiki/index.php/Projects:TestGen4WebDocs#Using_HTMLUnit-Interpreter&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; Take care,&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; Daniel&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; On Sat, Dec 5, 2009 at 6:50 AM, Stephen Coughlan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677461&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;s_coughlan@...&lt;/a&gt; &lt;BR&gt;&amp;gt; &amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677461&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;s_coughlan@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; When doing a google i found this website&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; http://dev.spikesource.com/wiki/index.php/Projects:TestGen4Web&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; Isthis affiliated with this list or in any way are they compatible.&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; Kindest regards&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; Stephen&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; ------------------------------------------------------------------------&lt;BR&gt;&amp;gt; &amp;gt; Windows Live Hotmail: Your friends can get your Facebook updates,&lt;BR&gt;&amp;gt; &amp;gt; right from Hotmail®.&lt;BR&gt;&amp;gt; &amp;gt; &amp;lt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009&amp;gt;&lt;BR&gt;&amp;gt; &amp;gt; &lt;BR&gt;&amp;gt; &amp;gt; ------------------------------------------------------------------------------&lt;BR&gt;&amp;gt; &amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;BR&gt;&amp;gt; &amp;gt; a free event focused on virtualization and cloud computing.&lt;BR&gt;&amp;gt; &amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;BR&gt;&amp;gt; &amp;gt; http://p.sf.net/sfu/redhat-sfdev2dev&lt;BR&gt;&amp;gt; &amp;gt; _______________________________________________&lt;BR&gt;&amp;gt; &amp;gt; HtmlUnit-develop mailing list&lt;BR&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677461&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;BR&gt;&amp;gt; &amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677461&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&amp;gt; &amp;gt; https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&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; Daniel Gredler&lt;BR&gt;&amp;gt; &amp;gt; http://daniel.gredler.net/&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; Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;BR&gt;&amp;gt; &amp;gt; a free event focused on virtualization and cloud computing. &lt;BR&gt;&amp;gt; &amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;BR&gt;&amp;gt; &amp;gt; http://p.sf.net/sfu/redhat-sfdev2dev&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; HtmlUnit-develop mailing list&lt;BR&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677461&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;BR&gt;&amp;gt; &amp;gt; https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; ------------------------------------------------------------------------------&lt;BR&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;BR&gt;&amp;gt; a free event focused on virtualization and cloud computing. &lt;BR&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;BR&gt;&amp;gt; http://p.sf.net/sfu/redhat-sfdev2dev&lt;BR&gt;&amp;gt; _______________________________________________&lt;BR&gt;&amp;gt; HtmlUnit-develop mailing list&lt;BR&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677461&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;BR&gt;&amp;gt; https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/div&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Windows Live: Keep your friends up to date &lt;a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010' target='_new' rel=&quot;nofollow&quot;&gt;with what you do online.&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677461&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Assosiation-to-another-htmlunit-that-i-have-found-tp26654936p26677461.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26676926</id>
	<title>Re: [HtmlUnit] Please correct this snippet for me. when I get the code result from GoogleCodeSearch</title>
	<published>2009-12-07T04:59:32Z</published>
	<updated>2009-12-07T04:59:32Z</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 Dai Phan:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Your XPath express is invalid for the search page results. So when you do a get(0) then Java throws the IndexOutOfBoundsException.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I recommend you do the getPage() and then use asXml() and see what Google is actually returning.&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 7, 2009, at 2:27 AM, Dai Phan the wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;Dear every developer,&lt;br&gt;I am a newcomer in this area and finding a way using HtmlUnit 2.6 to parse the GoogleCodeSearch's result. I want to get source code in the result. Last week, the following snippet is Ok, but now It has errors. Please help me to correct it as soon as or explain the detail reason.&lt;br&gt;Thanks much!&lt;br&gt;&lt;br&gt;WebClient webClient = new WebClient();&lt;br&gt; &amp;nbsp;&amp;nbsp;HtmlPage page = webClient.getPage(url);&lt;br&gt; &amp;nbsp;&amp;nbsp;HtmlPreformattedText pre = (HtmlPreformattedText) page.getByXPath&lt;br&gt;(&quot;//html/body/div/div[2]/div/div/div[3]/div/div[2]/div/div/div/div/div/&lt;br&gt;div[2]/pre&quot;).get(0);&lt;br&gt; &amp;nbsp;&amp;nbsp;System.out.println(pre.getTextContent());&lt;br&gt;&lt;br&gt;&lt;br&gt;The following error occurred.&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Exception in thread &quot;main&quot;&lt;br&gt;java.lang.IndexOutOfBoundsException: Index: 0, Size: 0&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.ArrayList.RangeCheck(Unknown Source)&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.ArrayList.get(Unknown Source)...&quot; &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;a free event focused on virtualization and cloud computing. &lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;HtmlUnit-develop mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26676926&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;br&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;br&gt;&lt;/div&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;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26676926&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Please-correct-this-snippet-for-me.-when-I-get-the-code-result-from-GoogleCodeSearch-tp26675297p26676926.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675880</id>
	<title>Re: [HtmlUnit] Change visibility of TopLevelWindow's constructor?</title>
	<published>2009-12-07T03:24:02Z</published>
	<updated>2009-12-07T03:24:02Z</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;&amp;gt;&amp;gt;therefore I would like to change it to protected.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;+1&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;
&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=26675880&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=26675880&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;Sent:&lt;/SPAN&gt;&lt;/B&gt; Mon, December 7, 2009 10:42:57 AM&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/SPAN&gt;&lt;/B&gt; [HtmlUnit] Change visibility of TopLevelWindow's constructor?&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;Hi,&lt;BR&gt;&lt;BR&gt;you've surely seen the issue reported on the user list that was due to a &lt;BR&gt;wrong usage of TopLevelWindow (instantiation by user).&lt;BR&gt;&lt;BR&gt;Do we really need to have TopLevelWindow's constructor public? Looking &lt;BR&gt;quickly at the sources, it is only used in WebClient therefore I would &lt;BR&gt;like to change it to protected.&lt;BR&gt;&lt;BR&gt;Thoughts?&lt;BR&gt;&lt;BR&gt;Cheers,&lt;BR&gt;Marc.&lt;BR&gt;&lt;/DIV&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;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675880&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Change-visibility-of-TopLevelWindow%27s-constructor--tp26673701p26675880.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675583</id>
	<title>Re: [HtmlUnit] Please correct this snippet for me. when I use HtmlUnit to get the code result from GoogleCodeSearch</title>
	<published>2009-12-07T02:57:32Z</published>
	<updated>2009-12-07T02:57:32Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">Cross posting is very bad. Please avoid it in the future.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Dai Phan the a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; (Sorry, I forgot the fill out url)
&lt;br&gt;&amp;gt; Dear every developer,
&lt;br&gt;&amp;gt; I am a newcomer in this area and finding a way using HtmlUnit 2.6 to parse the GoogleCodeSearch's result. I want to get source code in the result. Last week, the following snippet is Ok, but now It has errors. Please help me to correct it as soon as.
&lt;br&gt;&amp;gt; Thanks much:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; WebClient webClient = new WebClient();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;String url = &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;gt; &amp;nbsp; &amp;nbsp;HtmlPage page = webClient.getPage(url);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;HtmlPreformattedText pre = (HtmlPreformattedText) page.getByXPath
&lt;br&gt;&amp;gt; (&amp;quot;//html/body/div/div[2]/div/div/div[3]/div/div[2]/div/div/div/div/div/
&lt;br&gt;&amp;gt; div[2]/pre&amp;quot;).get(0);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;System.out.println(pre.getTextContent());
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ===============================
&lt;br&gt;&amp;gt; The following error occurred.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Exception in thread &amp;quot;main&amp;quot;
&lt;br&gt;&amp;gt; java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.RangeCheck(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.get(Unknown Source)...&amp;quot; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; HtmlUnit-develop mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675583&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675583&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Please-correct-this-snippet-for-me.-when-I-use-HtmlUnit-to-get-the-code-result-from-GoogleCodeSearch-tp26675345p26675583.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675345</id>
	<title>[HtmlUnit] Please correct this snippet for me. when I use HtmlUnit to get the code result from GoogleCodeSearch</title>
	<published>2009-12-07T02:32:28Z</published>
	<updated>2009-12-07T02:32:28Z</updated>
	<author>
		<name>Dai Phan the</name>
	</author>
	<content type="html">(Sorry, I forgot the fill out url)
&lt;br&gt;Dear every developer,
&lt;br&gt;I am a newcomer in this area and finding a way using HtmlUnit 2.6 to parse the GoogleCodeSearch's result. I want to get source code in the result. Last week, the following snippet is Ok, but now It has errors. Please help me to correct it as soon as.
&lt;br&gt;Thanks much:
&lt;br&gt;&lt;br&gt;WebClient webClient = new WebClient();
&lt;br&gt;&amp;nbsp; &amp;nbsp;String url = &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;HtmlPage page = webClient.getPage(url);
&lt;br&gt;&amp;nbsp; &amp;nbsp;HtmlPreformattedText pre = (HtmlPreformattedText) page.getByXPath
&lt;br&gt;(&amp;quot;//html/body/div/div[2]/div/div/div[3]/div/div[2]/div/div/div/div/div/
&lt;br&gt;div[2]/pre&amp;quot;).get(0);
&lt;br&gt;&amp;nbsp; &amp;nbsp;System.out.println(pre.getTextContent());
&lt;br&gt;&lt;br&gt;===============================
&lt;br&gt;The following error occurred.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Exception in thread &amp;quot;main&amp;quot;
&lt;br&gt;java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.RangeCheck(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.get(Unknown Source)...&amp;quot; 
&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;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675345&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Please-correct-this-snippet-for-me.-when-I-use-HtmlUnit-to-get-the-code-result-from-GoogleCodeSearch-tp26675345p26675345.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675360</id>
	<title>Please fix this problem when I use HtmlUnit to get code result from GoogleCodeSearch.</title>
	<published>2009-12-07T02:31:44Z</published>
	<updated>2009-12-07T02:31:44Z</updated>
	<author>
		<name>Dai Phan the</name>
	</author>
	<content type="html">(Sorry, I forgot the fill out url)
&lt;br&gt;Dear every developer,
&lt;br&gt;I am a newcomer in this area and finding a way using HtmlUnit 2.6 to parse the GoogleCodeSearch's result. I want to get source code in the result. Last week, the following snippet is Ok, but now It has errors. Please help me to correct it as soon as.
&lt;br&gt;Thanks much:
&lt;br&gt;&lt;br&gt;WebClient webClient = new WebClient();
&lt;br&gt;&amp;nbsp; &amp;nbsp;String url = &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;HtmlPage page = webClient.getPage(url);
&lt;br&gt;&amp;nbsp; &amp;nbsp;HtmlPreformattedText pre = (HtmlPreformattedText) page.getByXPath
&lt;br&gt;(&amp;quot;//html/body/div/div[2]/div/div/div[3]/div/div[2]/div/div/div/div/div/
&lt;br&gt;div[2]/pre&amp;quot;).get(0);
&lt;br&gt;&amp;nbsp; &amp;nbsp;System.out.println(pre.getTextContent());
&lt;br&gt;&lt;br&gt;==============================
&lt;br&gt;The following error occurred.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Exception in thread &amp;quot;main&amp;quot;
&lt;br&gt;java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.RangeCheck(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.get(Unknown Source)...&amp;quot; 
&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;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26675360&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;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Please-fix-this-problem-when-I-use-HtmlUnit-to-get-code-result-from-GoogleCodeSearch.-tp26675360p26675360.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675297</id>
	<title>[HtmlUnit] Please correct this snippet for me. when I get the code result from GoogleCodeSearch</title>
	<published>2009-12-07T02:27:29Z</published>
	<updated>2009-12-07T02:27:29Z</updated>
	<author>
		<name>Dai Phan the</name>
	</author>
	<content type="html">Dear every developer,
&lt;br&gt;I am a newcomer in this area and finding a way using HtmlUnit 2.6 to parse the GoogleCodeSearch's result. I want to get source code in the result. Last week, the following snippet is Ok, but now It has errors. Please help me to correct it as soon as or explain the detail reason.
&lt;br&gt;Thanks much!
&lt;br&gt;&lt;br&gt;WebClient webClient = new WebClient();
&lt;br&gt;&amp;nbsp; &amp;nbsp;HtmlPage page = webClient.getPage(url);
&lt;br&gt;&amp;nbsp; &amp;nbsp;HtmlPreformattedText pre = (HtmlPreformattedText) page.getByXPath
&lt;br&gt;(&amp;quot;//html/body/div/div[2]/div/div/div[3]/div/div[2]/div/div/div/div/div/
&lt;br&gt;div[2]/pre&amp;quot;).get(0);
&lt;br&gt;&amp;nbsp; &amp;nbsp;System.out.println(pre.getTextContent());
&lt;br&gt;&lt;br&gt;&lt;br&gt;The following error occurred.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Exception in thread &amp;quot;main&amp;quot;
&lt;br&gt;java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.RangeCheck(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.get(Unknown Source)...&amp;quot; 
&lt;br&gt;&lt;br&gt;&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;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675297&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Please-correct-this-snippet-for-me.-when-I-get-the-code-result-from-GoogleCodeSearch-tp26675297p26675297.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675289</id>
	<title>Please fix this problem when I get code result from GoogleCodeSearch.</title>
	<published>2009-12-07T02:23:58Z</published>
	<updated>2009-12-07T02:23:58Z</updated>
	<author>
		<name>Dai Phan the</name>
	</author>
	<content type="html">Dear every developer,
&lt;br&gt;I am a newcomer in this area and finding a way using HtmlUnit 2.6 to parse the GoogleCodeSearch's result. I want to get source code in the result. Last week, the following snippet is Ok, but now It has errors. Please help me to correct it as soon as.
&lt;br&gt;Thanks much:
&lt;br&gt;&lt;br&gt;WebClient webClient = new WebClient();
&lt;br&gt;&amp;nbsp; &amp;nbsp;HtmlPage page = webClient.getPage(url);
&lt;br&gt;&amp;nbsp; &amp;nbsp;HtmlPreformattedText pre = (HtmlPreformattedText) page.getByXPath
&lt;br&gt;(&amp;quot;//html/body/div/div[2]/div/div/div[3]/div/div[2]/div/div/div/div/div/
&lt;br&gt;div[2]/pre&amp;quot;).get(0);
&lt;br&gt;&amp;nbsp; &amp;nbsp;System.out.println(pre.getTextContent());
&lt;br&gt;&lt;br&gt;&lt;br&gt;The following error occurred.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Exception in thread &amp;quot;main&amp;quot;
&lt;br&gt;java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.RangeCheck(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.get(Unknown Source)...&amp;quot; 
&lt;br&gt;&lt;br&gt;&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;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26675289&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;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Please-fix-this-problem-when-I-get-code-result-from-GoogleCodeSearch.-tp26675289p26675289.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673701</id>
	<title>[HtmlUnit] Change visibility of TopLevelWindow's constructor?</title>
	<published>2009-12-06T23:42:57Z</published>
	<updated>2009-12-06T23:42:57Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;you've surely seen the issue reported on the user list that was due to a 
&lt;br&gt;wrong usage of TopLevelWindow (instantiation by user).
&lt;br&gt;&lt;br&gt;Do we really need to have TopLevelWindow's constructor public? Looking 
&lt;br&gt;quickly at the sources, it is only used in WebClient therefore I would 
&lt;br&gt;like to change it to protected.
&lt;br&gt;&lt;br&gt;Thoughts?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673701&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Change-visibility-of-TopLevelWindow%27s-constructor--tp26673701p26673701.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673697</id>
	<title>Re: JavaScript Job Thread</title>
	<published>2009-12-06T23:40:09Z</published>
	<updated>2009-12-06T23:40:09Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;thanks for reporting that the problem doesn't come from HtmlUnit.
&lt;br&gt;&lt;br&gt;In fact I doesn't see why the constructor of TopLevelWindow is public. 
&lt;br&gt;Perhaps should we change it to avoid such mistakes.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;reinhard schwab a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; this seems to be my failure - too creative usage of the API.
&lt;br&gt;&amp;gt; i have fixed this with
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; List&amp;lt;TopLevelWindow&amp;gt; windows = webClient.getTopLevelWindows();
&lt;br&gt;&amp;gt; TopLevelWindow window = windows.get(0);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; instead of
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; WebWindow window = new TopLevelWindow(&amp;quot;name&amp;quot;, webClient);
&lt;br&gt;&amp;gt; 
&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; reinhard schwab schrieb:
&lt;br&gt;&amp;gt;&amp;gt; i will reply again without attached files.
&lt;br&gt;&amp;gt;&amp;gt; should i open an issue and attach the files there?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; content is from
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.wachauclimbing.net/2006/03/wachauclimbingnet-in-klettern-magazin/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wachauclimbing.net/2006/03/wachauclimbingnet-in-klettern-magazin/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; this is some test code
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; public void outlinks(URL base, byte[] contentBytes, String encoding) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;outlinks&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebClient webClient = null;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient = new WebClient();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setThrowExceptionOnFailingStatusCode(false);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &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; &amp;nbsp; webClient.setIncorrectnessListener(new
&lt;br&gt;&amp;gt;&amp;gt; IncorrectnessListenerImpl() {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp; &amp;nbsp;*
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; private static final long serialVersionUID =
&lt;br&gt;&amp;gt;&amp;gt; 2632798911037172593L;
&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; public void notify(String message, Object origin) {
&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; }
&lt;br&gt;&amp;gt;&amp;gt; &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; &amp;nbsp; WebWindow window = new TopLevelWindow(&amp;quot;name&amp;quot;, webClient);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String charset = encoding;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String content = null;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; content = new String(contentBytes, charset);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (UnsupportedEncodingException e) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;gt;&amp;gt; &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; &amp;nbsp; WebResponse response = new StringWebResponse(content,
&lt;br&gt;&amp;gt;&amp;gt; charset, base);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlPage page = null;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; page = createHtmlPage(response, window);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (IOException e) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(e);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &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; &amp;nbsp; LOG.info(page);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (Throwable t) {
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (webClient != null) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.closeAllWindows();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;closed all windows&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient = null;
&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; regards
&lt;br&gt;&amp;gt;&amp;gt; reinhard
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Marc Guillemot schrieb:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Reinhard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; closeAllWindows() should cause all background jobs to finish. If it is 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; not the case, it is clearly a bug. In this case a tiny test case is 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; welcome ;-)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Marc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; reinhard schwab a écrit :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; i have switched on debugging and i see in the logs some statements never
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ending
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; after having closed all windows. is this a synchronization issue?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; i have reproduced this by loading a page several times in a loop.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; according to the api, closeAllWindows should stop background processing.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; public void *closeAllWindows*()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; Closes all opened windows, stopping all background JavaScript
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; processing. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/WebClient.html#closeAllWindows(&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/WebClient.html#closeAllWindows(&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;&amp;gt;&amp;gt; the log:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.wpdesigner.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wpdesigner.com/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 2.7-SNAPSHOT
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; HTMLUnit
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; CLOSED ALL WINDOWS
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Running job JavaScript Execution Job 629: window.setTimeout(100)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Running job JavaScript Execution Job 629: window.setTimeout(100)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Executing JavaScript Execution Job 629: window.setTimeout(100).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Running job JavaScript Execution Job 630: window.setTimeout(100)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Running job JavaScript Execution Job 630: window.setTimeout(100)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Executing JavaScript Execution Job 630: window.setTimeout(100).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Added job: JavaScript Execution Job 632: window.setTimeout(100).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Added job: JavaScript Execution Job 632: window.setTimeout(100).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Finished executing JavaScript Execution Job 630: window.setTimeout(100).
&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;&amp;gt;&amp;gt; regards
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; reinhard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; reinhard schwab schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; i have some troubles with an ever growing memory need for the jvm.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; by jconsole i see a growing number of threads.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this may explain why the memory need constantly grows.
&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; they have names like JavaScript Job Thread 142.
&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; stacktrace is
&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; Name: JavaScript Job Thread 142
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; State: TIMED_WAITING on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@f15818c
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Total blocked: 7 &amp;nbsp;Total waited: 623
&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; Stack trace:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; sun.misc.Unsafe.park(Native Method)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:583)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:576)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.lang.Thread.run(Thread.java:619)
&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; i have searched the svn sources of htmlunit and have discovered
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; JavaScriptJobManagerImpl
&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; what is the condition that these threads finish?
&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; reinhard
&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;
&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; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&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; Htmlunit-user mailing list
&lt;br&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=26673697&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; &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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&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=26673697&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; &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; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673697&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; &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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26673697&amp;i=3&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; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26673697&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;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JavaScript-Job-Thread-tp26528858p26673697.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673594</id>
	<title>Re: URL encoding problems</title>
	<published>2009-12-06T23:31:23Z</published>
	<updated>2009-12-06T23:31:23Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;you can probably implement your own WebConnection (in fact wrap the 
&lt;br&gt;existing one) to correct the URL before it gets processed.
&lt;br&gt;Please open an issue for that.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;Daniel Gredler a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Marko,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I can't think of a workaround (short of checking out the HtmlUnit source 
&lt;br&gt;&amp;gt; code, patching it, and running a custom build for a while), but can you 
&lt;br&gt;&amp;gt; file a bug for this? We'll try to get it fixed as soon as we can.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Take care,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Daniel
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Fri, Dec 4, 2009 at 3:48 PM, Marko Asplund &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673594&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;marko.asplund@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673594&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;marko.asplund@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; I'm trying to use HtmlUnit v2.6 for fetching data from a web site.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; I've ran into problems that seem to be related with the way the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; request URL query parameters are handled on the server side.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Everything works fine when I use the service through a browser but
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; not with HtmlUnit.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; When I start a search on the site I get a results page containing
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; links to result items. The links look like this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.foo.bar/bin/hx5000.sh?$&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.foo.bar/bin/hx5000.sh?$&lt;/a&gt;{APPL}=hetekaue&amp;${BASE}=hetekaue&amp;${THWIDS}=0.55/1259957035_475364&amp;${oohtml}=hex/hx3510&amp;${html}=hex/hx3510&amp;${snhtml}=hex/hxnosynk
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://www.foo.bar/bin/hx5000.sh?$%7BAPPL%7D=hetekaue&amp;$%7BBASE%7D=hetekaue&amp;$%7BTHWIDS%7D=0.55/1259957035_475364&amp;$%7Boohtml%7D=hex/hx3510&amp;$%7Bhtml%7D=hex/hx3510&amp;$%7Bsnhtml%7D=hex/hxnosynk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.foo.bar/bin/hx5000.sh?$%7BAPPL%7D=hetekaue&amp;$%7BBASE%7D=hetekaue&amp;$%7BTHWIDS%7D=0.55/1259957035_475364&amp;$%7Boohtml%7D=hex/hx3510&amp;$%7Bhtml%7D=hex/hx3510&amp;$%7Bsnhtml%7D=hex/hxnosynk&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; When I click the link in Firefox the request URL that gets sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; looks exactly like the one above but when I simulate this with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; HtmlUnit the &amp;quot;{&amp;quot; and &amp;quot;}&amp;quot; characters get URL encoded in the query
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; string and the service returns an error. The request URL looks like
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.foo.bar/bin/hx5000.sh?$%7BAPPL%7D=hetekaue&amp;$%7BBASE%7D=hetekaue&amp;$%7BTHWIDS%7D=0.3/1259956863_413801&amp;$%7Boohtml%7D=hex/hx3510&amp;$%7Bhtml%7D=hex/hx3510&amp;$%7Bsnhtml%7D=hex/hxnosynk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.foo.bar/bin/hx5000.sh?$%7BAPPL%7D=hetekaue&amp;$%7BBASE%7D=hetekaue&amp;$%7BTHWIDS%7D=0.3/1259956863_413801&amp;$%7Boohtml%7D=hex/hx3510&amp;$%7Bhtml%7D=hex/hx3510&amp;$%7Bsnhtml%7D=hex/hxnosynk&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://www.foo.bar/bin/hx5000.sh?$%7BAPPL%7D=hetekaue&amp;$%7BBASE%7D=hetekaue&amp;$%7BTHWIDS%7D=0.3/1259956863_413801&amp;$%7Boohtml%7D=hex/hx3510&amp;$%7Bhtml%7D=hex/hx3510&amp;$%7Bsnhtml%7D=hex/hxnosynk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.foo.bar/bin/hx5000.sh?$%7BAPPL%7D=hetekaue&amp;$%7BBASE%7D=hetekaue&amp;$%7BTHWIDS%7D=0.3/1259956863_413801&amp;$%7Boohtml%7D=hex/hx3510&amp;$%7Bhtml%7D=hex/hx3510&amp;$%7Bsnhtml%7D=hex/hxnosynk&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Now I know that according the URL RFC specification this seems to be
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; the right thing to do but unfortunately I can't change the remote end.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; What would be the best way to work around this issue?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; marko
&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; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; _______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Htmlunit-user mailing list
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673594&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673594&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Htmlunit-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &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; 
&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; Daniel Gredler
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26673594&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;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URL-encoding-problems-tp26649041p26673594.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673496</id>
	<title>Re: [HtmlUnit] Assosiation to another htmlunit that i have found</title>
	<published>2009-12-06T23:27:33Z</published>
	<updated>2009-12-06T23:27:33Z</updated>
	<author>
		<name>Marc Guillemot</name>
	</author>
	<content type="html">If you look at the download page, you'll see that this project is... not 
&lt;br&gt;very active.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Marc.
&lt;br&gt;&lt;br&gt;Daniel Gredler a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Stephen,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; They're not affiliated with HtmlUnit, but I believe they have a 
&lt;br&gt;&amp;gt; HtmlUnit-based test runner:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://developer.spikesource.com/wiki/index.php/Projects:TestGen4WebDocs#Using_HTMLUnit-Interpreter&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://developer.spikesource.com/wiki/index.php/Projects:TestGen4WebDocs#Using_HTMLUnit-Interpreter&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Take care,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Daniel
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Sat, Dec 5, 2009 at 6:50 AM, Stephen Coughlan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673496&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;s_coughlan@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673496&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;s_coughlan@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; When doing a google i found this website
&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; &lt;a href=&quot;http://dev.spikesource.com/wiki/index.php/Projects:TestGen4Web&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.spikesource.com/wiki/index.php/Projects:TestGen4Web&lt;/a&gt;&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; Isthis affiliated with this list or in any way are they compatible.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Kindest regards
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Stephen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Windows Live Hotmail: Your friends can get your Facebook updates,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; right from Hotmail®.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; _______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; HtmlUnit-develop mailing list
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673496&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673496&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&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; Daniel Gredler
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&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; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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-develop mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673496&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673496&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Assosiation-to-another-htmlunit-that-i-have-found-tp26654936p26673496.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673333</id>
	<title>Re: [HtmlUnit] Assosiation to another htmlunit that i have found</title>
	<published>2009-12-06T23:00:58Z</published>
	<updated>2009-12-06T23:00:58Z</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 Everyone:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;TestGen4Web is also fully integrated into TestMaker. When you playback TestGen4Web tests you are using HtmlUnit. Plus, TestMaker data-enables the tests, and records transaction and step timing for results analysis reporting. Details are at &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;, and a tutorial are in the example_agents/webrecordplayback directory when you install TestMaker.&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;On Dec 6, 2009, at 7:25 PM, Daniel Gredler wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;Hi Stephen,&lt;br&gt;&lt;br&gt;They're not affiliated with HtmlUnit, but I believe they have a HtmlUnit-based test runner:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://developer.spikesource.com/wiki/index.php/Projects:TestGen4WebDocs#Using_HTMLUnit-Interpreter&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://developer.spikesource.com/wiki/index.php/Projects:TestGen4WebDocs#Using_HTMLUnit-Interpreter&lt;/a&gt;&lt;br&gt; &lt;br&gt;Take care,&lt;br&gt;&lt;br&gt;Daniel&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Dec 5, 2009 at 6:50 AM, Stephen Coughlan &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673333&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;s_coughlan@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt; &lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt; &lt;div&gt; &amp;nbsp;&lt;br&gt; When doing a google i found this website &lt;br&gt; &amp;nbsp;&lt;br&gt; &amp;nbsp;&lt;br&gt; &lt;a href=&quot;http://dev.spikesource.com/wiki/index.php/Projects:TestGen4Web&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://dev.spikesource.com/wiki/index.php/Projects:TestGen4Web&lt;/a&gt;&lt;br&gt; &amp;nbsp;&lt;br&gt; &amp;nbsp;&lt;br&gt; Isthis affiliated with this list or in any way are they compatible.&lt;br&gt; &amp;nbsp;&lt;br&gt; Kindest regards&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt; &amp;nbsp;&lt;br&gt; Stephen&lt;br&gt; 		 	   		  &lt;/font&gt;&lt;div class=&quot;hm&quot;&gt;&lt;br&gt;&lt;hr&gt;Windows Live Hotmail:  &lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Your friends can get your Facebook updates, right from Hotmail®.&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;br&gt;------------------------------------------------------------------------------&lt;br&gt; Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt; a free event focused on virtualization and cloud computing.&lt;br&gt; Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt; HtmlUnit-develop mailing list&lt;br&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673333&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;br&gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&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;Daniel Gredler&lt;br&gt;&lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&lt;/a&gt;&lt;br&gt; ------------------------------------------------------------------------------&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;a free event focused on virtualization and cloud computing. &lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________&lt;/a&gt;&lt;br&gt;HtmlUnit-develop mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673333&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;br&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;br&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;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673333&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Assosiation-to-another-htmlunit-that-i-have-found-tp26654936p26673333.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26672010</id>
	<title>Re: [HtmlUnit] Assosiation to another htmlunit that i have found</title>
	<published>2009-12-06T19:25:42Z</published>
	<updated>2009-12-06T19:25:42Z</updated>
	<author>
		<name>gredler</name>
	</author>
	<content type="html">Hi Stephen,&lt;br&gt;&lt;br&gt;They&amp;#39;re not affiliated with HtmlUnit, but I believe they have a HtmlUnit-based test runner:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://developer.spikesource.com/wiki/index.php/Projects:TestGen4WebDocs#Using_HTMLUnit-Interpreter&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://developer.spikesource.com/wiki/index.php/Projects:TestGen4WebDocs#Using_HTMLUnit-Interpreter&lt;/a&gt;&lt;br&gt;
&lt;br&gt;Take care,&lt;br&gt;&lt;br&gt;Daniel&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Dec 5, 2009 at 6:50 AM, Stephen Coughlan &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672010&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;s_coughlan@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



&lt;div&gt;
 &lt;br&gt;
When doing a google i found this website &lt;br&gt;
 &lt;br&gt;
 &lt;br&gt;
&lt;a href=&quot;http://dev.spikesource.com/wiki/index.php/Projects:TestGen4Web&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://dev.spikesource.com/wiki/index.php/Projects:TestGen4Web&lt;/a&gt;&lt;br&gt;
 &lt;br&gt;
 &lt;br&gt;
Isthis affiliated with this list or in any way are they compatible.&lt;br&gt;
 &lt;br&gt;
Kindest regards&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
 &lt;br&gt;
Stephen&lt;br&gt; 		 	   		  &lt;/font&gt;&lt;div class=&quot;hm&quot;&gt;&lt;br&gt;&lt;hr&gt;Windows Live Hotmail:  &lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Your friends can get your Facebook updates, right from Hotmail®.&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
HtmlUnit-develop mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672010&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&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;Daniel Gredler&lt;br&gt;&lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672010&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Assosiation-to-another-htmlunit-that-i-have-found-tp26654936p26672010.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26671999</id>
	<title>Re: URL encoding problems</title>
	<published>2009-12-06T19:23:33Z</published>
	<updated>2009-12-06T19:23:33Z</updated>
	<author>
		<name>gredler</name>
	</author>
	<content type="html">Hi Marko,&lt;br&gt;&lt;br&gt;I can&amp;#39;t think of a workaround (short of checking out the HtmlUnit source code, patching it, and running a custom build for a while), but can you file a bug for this? We&amp;#39;ll try to get it fixed as soon as we can.&lt;br&gt;
&lt;br&gt;Take care,&lt;br&gt;&lt;br&gt;Daniel&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 4, 2009 at 3:48 PM, Marko Asplund &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26671999&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;marko.asplund@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi,&lt;br&gt;
&lt;br&gt;
I&amp;#39;m trying to use HtmlUnit v2.6 for fetching data from a web site.&lt;br&gt;
I&amp;#39;ve ran into problems that seem to be related with the way the request URL query parameters are handled on the server side.&lt;br&gt;
Everything works fine when I use the service through a browser but not with HtmlUnit.&lt;br&gt;
&lt;br&gt;
When I start a search on the site I get a results page containing links to result items. The links look like this:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.foo.bar/bin/hx5000.sh?$%7BAPPL%7D=hetekaue&amp;amp;$%7BBASE%7D=hetekaue&amp;amp;$%7BTHWIDS%7D=0.55/1259957035_475364&amp;amp;$%7Boohtml%7D=hex/hx3510&amp;amp;$%7Bhtml%7D=hex/hx3510&amp;amp;$%7Bsnhtml%7D=hex/hxnosynk&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.foo.bar/bin/hx5000.sh?${APPL}=hetekaue&amp;amp;${BASE}=hetekaue&amp;amp;${THWIDS}=0.55/1259957035_475364&amp;amp;${oohtml}=hex/hx3510&amp;amp;${html}=hex/hx3510&amp;amp;${snhtml}=hex/hxnosynk&lt;/a&gt;&lt;br&gt;

&lt;br&gt;
When I click the link in Firefox the request URL that gets sent looks exactly like the one above but when I simulate this with HtmlUnit the &amp;quot;{&amp;quot; and &amp;quot;}&amp;quot; characters get URL encoded in the query string and the service returns an error. The request URL looks like this:&lt;br&gt;

&lt;br&gt;
&lt;a href=&quot;http://www.foo.bar/bin/hx5000.sh?$%7BAPPL%7D=hetekaue&amp;amp;$%7BBASE%7D=hetekaue&amp;amp;$%7BTHWIDS%7D=0.3/1259956863_413801&amp;amp;$%7Boohtml%7D=hex/hx3510&amp;amp;$%7Bhtml%7D=hex/hx3510&amp;amp;$%7Bsnhtml%7D=hex/hxnosynk&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.foo.bar/bin/hx5000.sh?$%7BAPPL%7D=hetekaue&amp;amp;$%7BBASE%7D=hetekaue&amp;amp;$%7BTHWIDS%7D=0.3/1259956863_413801&amp;amp;$%7Boohtml%7D=hex/hx3510&amp;amp;$%7Bhtml%7D=hex/hx3510&amp;amp;$%7Bsnhtml%7D=hex/hxnosynk&lt;/a&gt;&lt;br&gt;

&lt;br&gt;
Now I know that according the URL RFC specification this seems to be the right thing to do but unfortunately I can&amp;#39;t change the remote end.&lt;br&gt;
&lt;br&gt;
What would be the best way to work around this issue?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
marko&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26671999&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;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&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;Daniel Gredler&lt;br&gt;&lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26671999&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;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URL-encoding-problems-tp26649041p26671999.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26671989</id>
	<title>Re: Acquiring a form input that is wrapped in a noscript element</title>
	<published>2009-12-06T19:20:51Z</published>
	<updated>2009-12-06T19:20:51Z</updated>
	<author>
		<name>gredler</name>
	</author>
	<content type="html">Hi Marc,&lt;br&gt;&lt;br&gt;Have you tried disabling JavaScript before fetching the page?&lt;br&gt;&lt;br&gt;Take care,&lt;br&gt;&lt;br&gt;Daniel&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Dec 6, 2009 at 8:15 PM, Mark Petrovic &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26671989&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mspetrovic@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hello.&lt;br&gt;
&lt;br&gt;
I&amp;#39;m having trouble acquiring a form input by value that happens to be wrapped in a noscript element:&lt;br&gt;
&lt;br&gt;
&amp;lt;noscript&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; name=&amp;quot;cancel.x&amp;quot; value=&amp;quot;some value&amp;quot; class= &amp;quot;transparentButton&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/noscript&amp;gt;&lt;br&gt;
&lt;br&gt;
using&lt;br&gt;
&lt;br&gt;
page = (HtmlPage) form.getInputByValue(&amp;quot;some value&amp;quot;).click();&lt;br&gt;
&lt;br&gt;
I&amp;#39;m using htmlunit v2.5.  The form.getInputByValue() is throwing an exception whereby it claims it cannot find this element.&lt;br&gt;
&lt;br&gt;
I&amp;#39;m new at htmlunit, so I may be missing something.  But I wanted to check this first before proceeding to more elaborate theories of failure.&lt;br&gt;
&lt;br&gt;
Should I expect to not find this input if it is wrapped in noscript?  If I should not expect so, any suggestions on how to work around this?&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26671989&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;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-user&lt;/a&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;Daniel Gredler&lt;br&gt;&lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26671989&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;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Acquiring-a-form-input-that-is-wrapped-in-a-noscript-element-tp26671257p26671989.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26671257</id>
	<title>Acquiring a form input that is wrapped in a noscript element</title>
	<published>2009-12-06T17:15:56Z</published>
	<updated>2009-12-06T17:15:56Z</updated>
	<author>
		<name>ae6rt</name>
	</author>
	<content type="html">Hello.
&lt;br&gt;&lt;br&gt;I'm having trouble acquiring a form input by value that happens to be wrapped in a noscript element:
&lt;br&gt;&lt;br&gt;&amp;lt;noscript&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; name=&amp;quot;cancel.x&amp;quot; value=&amp;quot;some value&amp;quot; class= &amp;quot;transparentButton&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/noscript&amp;gt;
&lt;br&gt;&lt;br&gt;using 
&lt;br&gt;&lt;br&gt;page = (HtmlPage) form.getInputByValue(&amp;quot;some value&amp;quot;).click();
&lt;br&gt;&lt;br&gt;I'm using htmlunit v2.5. &amp;nbsp;The form.getInputByValue() is throwing an exception whereby it claims it cannot find this element.
&lt;br&gt;&lt;br&gt;I'm new at htmlunit, so I may be missing something. &amp;nbsp;But I wanted to check this first before proceeding to more elaborate theories of failure.
&lt;br&gt;&lt;br&gt;Should I expect to not find this input if it is wrapped in noscript? &amp;nbsp;If I should not expect so, any suggestions on how to work around this?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26671257&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;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Acquiring-a-form-input-that-is-wrapped-in-a-noscript-element-tp26671257p26671257.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26670878</id>
	<title>Re: Iteratoring over Anchors (subsequent pages) that have javascript on them.</title>
	<published>2009-12-06T16:22:47Z</published>
	<updated>2009-12-06T16:22:47Z</updated>
	<author>
		<name>W. Scott Hayes</name>
	</author>
	<content type="html">thanks I will try that.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Dec 6, 2009 at 6:06 PM, Daniel Gredler &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26670878&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;djgredler@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Hi Scott,&lt;br&gt;&lt;br&gt;You should be able to serialize the entire WebClient (including its windows, pages, etc) and either keep it in memory or store it to a file. You can then deserialize it and come back to it. I&amp;#39;ve never done it myself, but we&amp;#39;ve gone through a lot of trouble to keep everything serializable :-)&lt;br&gt;

&lt;br&gt;Take care,&lt;br&gt;&lt;br&gt;Daniel&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div class=&quot;im&quot;&gt;On Fri, Dec 4, 2009 at 4:55 PM, W. Scott Hayes &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26670878&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wsh@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;&lt;div class=&quot;im&quot;&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;Is there anyway to preserve the state of a (page/webclient/webwindow) before running a javascript?  I would like to clone it, so I can come back to it later.  Is this possible?&lt;div&gt;&lt;br&gt;&lt;/div&gt;

&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;
&lt;br&gt;&lt;/div&gt;------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26670878&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;_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;font color=&quot;#888888&quot;&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Daniel Gredler&lt;br&gt;&lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26670878&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;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26670878&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;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iteratoring-over-Anchors-%28subsequent-pages%29-that-have-javascript-on-them.-tp26649837p26670878.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26670203</id>
	<title>Re: Iteratoring over Anchors (subsequent pages) that have javascript on them.</title>
	<published>2009-12-06T15:06:21Z</published>
	<updated>2009-12-06T15:06:21Z</updated>
	<author>
		<name>gredler</name>
	</author>
	<content type="html">Hi Scott,&lt;br&gt;&lt;br&gt;You should be able to serialize the entire WebClient (including its windows, pages, etc) and either keep it in memory or store it to a file. You can then deserialize it and come back to it. I&amp;#39;ve never done it myself, but we&amp;#39;ve gone through a lot of trouble to keep everything serializable :-)&lt;br&gt;
&lt;br&gt;Take care,&lt;br&gt;&lt;br&gt;Daniel&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 4, 2009 at 4:55 PM, W. Scott Hayes &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26670203&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wsh@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;Is there anyway to preserve the state of a (page/webclient/webwindow) before running a javascript?  I would like to clone it, so I can come back to it later.  Is this possible?&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26670203&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;_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;Daniel Gredler&lt;br&gt;&lt;a href=&quot;http://daniel.gredler.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://daniel.gredler.net/&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26670203&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;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iteratoring-over-Anchors-%28subsequent-pages%29-that-have-javascript-on-them.-tp26649837p26670203.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26664256</id>
	<title>Re: [HtmlUnit] Failing webdriver test</title>
	<published>2009-12-06T03:56:48Z</published>
	<updated>2009-12-06T03:56:48Z</updated>
	<author>
		<name>Simon Stewart</name>
	</author>
	<content type="html">Nothing. The hover method is only implemented when native events are
&lt;br&gt;available, as documented:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://selenium.googlecode.com/svn/webdriver/javadoc/org/openqa/selenium/RenderedWebElement.html#hover(&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://selenium.googlecode.com/svn/webdriver/javadoc/org/openqa/selenium/RenderedWebElement.html#hover(&lt;/a&gt;)
&lt;br&gt;&lt;br&gt;The major reason for needing native events is because it's not
&lt;br&gt;possible to set the &amp;quot;:hover&amp;quot; pseudo-class in JS directly, certainly in
&lt;br&gt;the mozilla browsers. Remind me on Monday and I'll see if I can dig
&lt;br&gt;out the docs about it.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Simon
&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 3:21 PM, Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664256&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Simon,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; what did you do before to use native events?
&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; Simon Stewart a écrit :
&lt;br&gt;&amp;gt;&amp;gt; First I find out if the element is in view, then, if not, it's
&lt;br&gt;&amp;gt;&amp;gt; scrolled into view. Next, I determine where on the screen the element
&lt;br&gt;&amp;gt;&amp;gt; is and pump OS-level mouse events to the window handle that simulates
&lt;br&gt;&amp;gt;&amp;gt; moving the mouse. It's a bit trickier in HtmlUnit.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Simon
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Tue, Dec 1, 2009 at 7:33 AM, Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664256&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; How do you implement it for FF? ;-)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Marc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Simon Stewart a écrit :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; What's the best way to implement it? :)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Simon
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Mon, Nov 30, 2009 at 8:20 PM, Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664256&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I've had a look at it. We had a bug in DomNode.isDisplayed() that only
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; took the inline style into account. This is now fixed in SVN.
&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; The test still doesn't pass because you haven't implemented the method
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; hover() in the HtmlUnitDriver! ;-)
&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; Cheers,
&lt;br&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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Simon Stewart a écrit :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Well, that'll be why you won't have seen the problem, but it's not
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; that. The problem is that the string contents of the &amp;quot;item&amp;quot; aren't
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; empty in the check immediately after that guard block (the first
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;assert&amp;quot; in the test)
&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; Simon
&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; On Wed, Nov 25, 2009 at 3:11 PM, Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664256&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; is it due to following:
&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;     if (!Platform.getCurrent().is(Platform.WINDOWS)) {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;       System.out.println(&amp;quot;Skipping hover test: needs native events&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;       return;
&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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; that I considered it as successful and Eran too while applying my patch?
&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; Cheers,
&lt;br&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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Simon Stewart a écrit :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; It wasn't enabled before your patch.
&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; Simon
&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; On Mon, Nov 23, 2009 at 4:31 PM, Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664256&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Simon,
&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;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; did it work before applying my patch?
&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; Simon Stewart 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,
&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; After applying Marc's recent patch to the webdriver project, I notice that:
&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; RenderedWebElementTest.testShouldAllowUsersToHoverOverElements()
&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; fails. I've not checked out the latest snapshot of 2.7, so this may
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; already be fixed. If that's the case, then feel free to ignore this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; email. If not, would you like me to raise a bug?
&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; BTW, I really appreciate the patches that we've been receiving from
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; HtmlUnit developers for webdriver. Thank you!
&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; Regards,
&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; Simon
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; HtmlUnit-develop mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664256&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664256&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Failing-webdriver-test-tp26477270p26664256.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26664180</id>
	<title>Re: [HtmlUnit] asText() and frames</title>
	<published>2009-12-06T03:48:54Z</published>
	<updated>2009-12-06T03:48:54Z</updated>
	<author>
		<name>Simon Stewart</name>
	</author>
	<content type="html">My preference would be to only include the text of the containing
&lt;br&gt;page. iframes are often used for things like ads and content that is
&lt;br&gt;separate in some way from the page (eg: general navigation to other
&lt;br&gt;related sites), and the extra noise is confusing.
&lt;br&gt;&lt;br&gt;This behaviour would also be consistent with how frames in general are
&lt;br&gt;handled, so there's no stepping out of the &amp;quot;mental model&amp;quot; of how
&lt;br&gt;HtmlUnit behaves.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Simon
&lt;br&gt;&lt;br&gt;On Mon, Nov 30, 2009 at 7:29 PM, Marc Guillemot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664180&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mguillemot@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; issue 2899045
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://sourceforge.net/tracker/?func=detail&amp;aid=2899045&amp;group_id=47038&amp;atid=448266&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/?func=detail&amp;aid=2899045&amp;group_id=47038&amp;atid=448266&lt;/a&gt;&lt;br&gt;&amp;gt; surely reports a bug in asText() and &amp;lt;noframe&amp;gt; content but it bring an
&lt;br&gt;&amp;gt; interesting question as well: how should asText() work on a (i)frame?
&lt;br&gt;&amp;gt; Should it do nothing as it does currently, or should it call asText() on
&lt;br&gt;&amp;gt; the nested page?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What do you think?
&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; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; HtmlUnit-develop mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664180&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664180&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--asText%28%29-and-frames-tp26580484p26664180.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26659000</id>
	<title>Re: JavaScript Job Thread</title>
	<published>2009-12-05T12:28:57Z</published>
	<updated>2009-12-05T12:28:57Z</updated>
	<author>
		<name>reinhard schwab</name>
	</author>
	<content type="html">this seems to be my failure - too creative usage of the API.
&lt;br&gt;i have fixed this with
&lt;br&gt;&lt;br&gt;List&amp;lt;TopLevelWindow&amp;gt; windows = webClient.getTopLevelWindows();
&lt;br&gt;TopLevelWindow window = windows.get(0);
&lt;br&gt;&lt;br&gt;instead of
&lt;br&gt;&lt;br&gt;WebWindow window = new TopLevelWindow(&amp;quot;name&amp;quot;, webClient);
&lt;br&gt;&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; i will reply again without attached files.
&lt;br&gt;&amp;gt; should i open an issue and attach the files there?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; content is from
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.wachauclimbing.net/2006/03/wachauclimbingnet-in-klettern-magazin/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wachauclimbing.net/2006/03/wachauclimbingnet-in-klettern-magazin/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; this is some test code
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; public void outlinks(URL base, byte[] contentBytes, String encoding) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;outlinks&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebClient webClient = null;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient = new WebClient();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setThrowExceptionOnFailingStatusCode(false);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setThrowExceptionOnScriptError(false);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.setIncorrectnessListener(new
&lt;br&gt;&amp;gt; IncorrectnessListenerImpl() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;*
&lt;br&gt;&amp;gt; &amp;nbsp; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private static final long serialVersionUID =
&lt;br&gt;&amp;gt; 2632798911037172593L;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void notify(String message, Object origin) {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebWindow window = new TopLevelWindow(&amp;quot;name&amp;quot;, webClient);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String charset = encoding;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String content = null;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; content = new String(contentBytes, charset);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (UnsupportedEncodingException e) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebResponse response = new StringWebResponse(content,
&lt;br&gt;&amp;gt; charset, base);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlPage page = null;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp; &amp;nbsp; } catch (IOException e) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(e);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&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; &amp;nbsp; &amp;nbsp; LOG.info(page);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (Throwable t) {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (webClient != null) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient.closeAllWindows();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG.info(&amp;quot;closed all windows&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webClient = null;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&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; Marc Guillemot schrieb:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hi Reinhard,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; closeAllWindows() should cause all background jobs to finish. If it is 
&lt;br&gt;&amp;gt;&amp;gt; not the case, it is clearly a bug. In this case a tiny test case is 
&lt;br&gt;&amp;gt;&amp;gt; welcome ;-)
&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; reinhard schwab a écrit :
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; i have switched on debugging and i see in the logs some statements never
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ending
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; after having closed all windows. is this a synchronization issue?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; i have reproduced this by loading a page several times in a loop.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; according to the api, closeAllWindows should stop background processing.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; public void *closeAllWindows*()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; Closes all opened windows, stopping all background JavaScript
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; processing. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/WebClient.html#closeAllWindows(&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/WebClient.html#closeAllWindows(&lt;/a&gt;)
&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; the log:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.wpdesigner.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wpdesigner.com/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2.7-SNAPSHOT
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; HTMLUnit
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; CLOSED ALL WINDOWS
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Running job JavaScript Execution Job 629: window.setTimeout(100)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Running job JavaScript Execution Job 629: window.setTimeout(100)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Executing JavaScript Execution Job 629: window.setTimeout(100).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Running job JavaScript Execution Job 630: window.setTimeout(100)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Running job JavaScript Execution Job 630: window.setTimeout(100)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Executing JavaScript Execution Job 630: window.setTimeout(100).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Added job: JavaScript Execution Job 632: window.setTimeout(100).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Added job: JavaScript Execution Job 632: window.setTimeout(100).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Finished executing JavaScript Execution Job 630: window.setTimeout(100).
&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; regards
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; reinhard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; reinhard schwab schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; i have some troubles with an ever growing memory need for the jvm.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; by jconsole i see a growing number of threads.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this may explain why the memory need constantly grows.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; they have names like JavaScript Job Thread 142.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; stacktrace is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Name: JavaScript Job Thread 142
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; State: TIMED_WAITING on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@f15818c
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Total blocked: 7 &amp;nbsp;Total waited: 623
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Stack trace:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; sun.misc.Unsafe.park(Native Method)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:583)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:576)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; i have searched the svn sources of htmlunit and have discovered
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; JavaScriptJobManagerImpl
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; what is the condition that these threads finish?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; regards
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; reinhard
&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;&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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&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=26659000&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; &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; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Htmlunit-user mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26659000&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; &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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&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=26659000&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; &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; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26659000&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;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JavaScript-Job-Thread-tp26528858p26659000.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26655612</id>
	<title>[HtmlUnit] [ htmlunit-Bugs-2903679 ] ScriptException with PUT AJAX Requests in jQuery</title>
	<published>2009-12-05T05:25:54Z</published>
	<updated>2009-12-05T05:25:54Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2903679, was opened at 2009-11-25 12:14
&lt;br&gt;Message generated for change (Comment added) made by madaval
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2903679&amp;group_id=47038&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2903679&amp;group_id=47038&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: None
&lt;br&gt;Group: Latest code in SVN
&lt;br&gt;Status: Pending
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: thilo (madaval)
&lt;br&gt;Assigned to: Nobody/Anonymous (nobody)
&lt;br&gt;Summary: ScriptException with PUT AJAX Requests in jQuery
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Hi i get a ScriptException when I run a PUT AjaxRequest with the &amp;nbsp;2.7 Snapshot from 09. Nov.
&lt;br&gt;&lt;br&gt;$.ajax({
&lt;br&gt;&amp;nbsp; url: &amp;quot;testhost.com&amp;quot;
&lt;br&gt;&amp;nbsp; type: &amp;quot;PUT&amp;quot;
&lt;br&gt;&amp;nbsp; data: &amp;quot;test&amp;quot;
&lt;br&gt;});
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: thilo (madaval)
&lt;br&gt;Date: 2009-12-05 14:25
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Sorry, took me a while again to get back.
&lt;br&gt;&lt;br&gt;Here a modified version of the ajax call which should show an alert
&lt;br&gt;message on completion. One more thing to note maybe is that i run HTML Unit
&lt;br&gt;as a Firefox 3 browser.
&lt;br&gt;&lt;br&gt;&amp;lt;html&amp;gt;
&lt;br&gt;&amp;lt;head&amp;gt;
&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;
&lt;br&gt;src=&amp;quot;&lt;a href=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&amp;lt;/head&amp;gt;
&lt;br&gt;&amp;lt;body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;script type=&amp;quot;text/javascript&amp;quot; charset=&amp;quot;utf-8&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; $(function(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; $(&amp;quot;#click_me&amp;quot;).bind('click', function(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $.ajax({url: &amp;quot;test.html&amp;quot;,type: &amp;quot;PUT&amp;quot;, complete: function () {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alert(&amp;quot;hi&amp;quot;);
&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; return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;nbsp; });
&lt;br&gt;&amp;nbsp; &amp;lt;/script&amp;gt;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;lt;a href=&amp;quot;#&amp;quot; id=&amp;quot;click_me&amp;quot;&amp;gt;ClickMe&amp;lt;/a&amp;gt;
&lt;br&gt;&amp;lt;/body&amp;gt;
&lt;br&gt;&amp;lt;/html&amp;gt;
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Ahmed Ashour (asashour)
&lt;br&gt;Date: 2009-11-30 12:40
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Oh, since I was offline which I verified thi case, I used a 'patched'
&lt;br&gt;jquery .js, which made the 'alert'.
&lt;br&gt;&lt;br&gt;Anyhow, your test case does not trigger anything in real IE, can you
&lt;br&gt;modify it so that an expected result does not occur in HtmlUnit?
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: thilo (madaval)
&lt;br&gt;Date: 2009-11-30 12:11
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Hi asashour is your comment related to the above issue? Because I don't see
&lt;br&gt;what this has to do with alert.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Ahmed Ashour (asashour)
&lt;br&gt;Date: 2009-11-30 12:06
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Hello, 
&lt;br&gt;&lt;br&gt;The alert '*/*' is trigered as exactly done in real browsers, you can
&lt;br&gt;ignore the error reported happens with IE simulation only, not with FF:
&lt;br&gt;&lt;br&gt;[main] ERROR com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
&lt;br&gt;- runtimeError
&lt;br&gt;: message=[The data necessary to complete this operation is not yet
&lt;br&gt;available.] sourceName=[&lt;a href=&quot;http://localhost/htmlunit/jquery.js&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/htmlunit/jquery.js&lt;/a&gt;] line=[3078]
&lt;br&gt;lineSource=[null] lineOffset=[0]
&lt;br&gt;&lt;br&gt;Please re-open if you have a functional issue.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: thilo (madaval)
&lt;br&gt;Date: 2009-11-29 17:54
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;And here is a minimal html file to reproduce this:
&lt;br&gt;&lt;br&gt;&amp;lt;html&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;head&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;
&lt;br&gt;src=&amp;quot;&lt;a href=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/script&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/head&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;script type=&amp;quot;text/javascript&amp;quot; charset=&amp;quot;utf-8&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; $(function(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $(&amp;quot;#click_me&amp;quot;).bind('click', function(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $.ajax({url: &amp;quot;/&amp;quot;,type: &amp;quot;PUT&amp;quot;,data: &amp;quot;test&amp;quot;});
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;nbsp; &amp;lt;/script&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;a href=&amp;quot;#&amp;quot; id=&amp;quot;click_me&amp;quot;&amp;gt;ClickMe&amp;lt;/a&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;lt;/html&amp;gt;
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: thilo (madaval)
&lt;br&gt;Date: 2009-11-29 17:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Sorry took me a while to get back to this. Here is the StackTrace: 
&lt;br&gt;&amp;nbsp;com.gargoylesoftware.htmlunit.ScriptException: Exception invoking
&lt;br&gt;jsxFunction_send (Culerity::CulerityException)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine.java:526:in `run'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; net/sourceforge/htmlunit/corejs/javascript/Context.java:537:in
&lt;br&gt;`call'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;net/sourceforge/htmlunit/corejs/javascript/ContextFactory.java:538:in
&lt;br&gt;`call'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine.java:456:in
&lt;br&gt;`callFunction'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; com/gargoylesoftware/htmlunit/html/HtmlPage.java:893:in
&lt;br&gt;`executeJavaScriptFunctionIfPossible'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;com/gargoylesoftware/htmlunit/javascript/host/EventListenersContainer.java:155:in
&lt;br&gt;`executeEventListeners'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;com/gargoylesoftware/htmlunit/javascript/host/EventListenersContainer.java:208:in
&lt;br&gt;`executeBubblingListeners'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; com/gargoylesoftware/htmlunit/javascript/host/Node.java:645:in
&lt;br&gt;`fireEvent'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; com/gargoylesoftware/htmlunit/html/HtmlElement.java:887:in `run'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; net/sourceforge/htmlunit/corejs/javascript/Context.java:537:in
&lt;br&gt;`call'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;net/sourceforge/htmlunit/corejs/javascript/ContextFactory.java:538:in
&lt;br&gt;`call'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; com/gargoylesoftware/htmlunit/html/HtmlElement.java:892:in
&lt;br&gt;`fireEvent'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; com/gargoylesoftware/htmlunit/html/HtmlElement.java:1248:in `click'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; com/gargoylesoftware/htmlunit/html/HtmlElement.java:1212:in `click'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; com/gargoylesoftware/htmlunit/html/HtmlElement.java:1179:in `click'
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Marc Guillemot (mguillem)
&lt;br&gt;Date: 2009-11-26 12:11
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Can you provide the stacktrace as well as a minimal example (ie the html
&lt;br&gt;code)?
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Lena Herrmann (kilaulena)
&lt;br&gt;Date: 2009-11-26 11:35
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;+1 for fixing this!
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2903679&amp;group_id=47038&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=448266&amp;aid=2903679&amp;group_id=47038&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655612&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit----htmlunit-Bugs-2903679---ScriptException-with-PUT-AJAX-Requests-in-jQuery-tp26655612p26655612.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26654936</id>
	<title>[HtmlUnit] Assosiation to another htmlunit that i have found</title>
	<published>2009-12-05T03:50:45Z</published>
	<updated>2009-12-05T03:50:45Z</updated>
	<author>
		<name>Stephen Coughlan-2</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
&amp;nbsp;&lt;BR&gt;
When doing a google i found this website &lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&lt;A href=&quot;http://dev.spikesource.com/wiki/index.php/Projects:TestGen4Web&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.spikesource.com/wiki/index.php/Projects:TestGen4Web&lt;/A&gt;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Isthis affiliated with this list or in any way are they compatible.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Kindest regards&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Stephen&lt;BR&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Windows Live Hotmail:  &lt;a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009' target='_new' rel=&quot;nofollow&quot;&gt;Your friends can get your Facebook updates, right from Hotmail®.&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;HtmlUnit-develop mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654936&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;HtmlUnit-develop@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/htmlunit-develop&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---Dev-f2598.html&quot; embed=&quot;fixTarget[2598]&quot; target=&quot;_top&quot; &gt;HtmlUnit - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HtmlUnit--Assosiation-to-another-htmlunit-that-i-have-found-tp26654936p26654936.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26649837</id>
	<title>Iteratoring over Anchors (subsequent pages) that have javascript on them.</title>
	<published>2009-12-04T13:55:35Z</published>
	<updated>2009-12-04T13:55:35Z</updated>
	<author>
		<name>W. Scott Hayes</name>
	</author>
	<content type="html">&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;Is there anyway to preserve the state of a (page/webclient/webwindow) before running a javascript?  I would like to clone it, so I can come back to it later.  Is this possible?&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&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=26649837&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;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/HtmlUnit---General-f2599.html&quot; embed=&quot;fixTarget[2599]&quot; target=&quot;_top&quot; &gt;HtmlUnit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iteratoring-over-Anchors-%28subsequent-pages%29-that-have-javascript-on-them.-tp26649837p26649837.html" />
</entry>

</feed>
