Dear Ruchika, HtmlUnit 2.4 is planned to be released by end of year.
Also, even if you have failed build, you can get last successful jar from http://build.canoo.com/htmlunit/artifacts and also get the snapshot of http://htmlunit.sourceforge.net/m2-repo-snapshots/net/sourceforge/htmlunit/htmlunit-core-js/2.4-SNAPSHOT/htmlunit-core-js-2.4-20081022.130156-2.jar Hope that helps, Ahmed ________________________________ From: Ruchika Badjatia <[EMAIL PROTECTED]> To: [email protected] Cc: [email protected] Sent: Tuesday, October 28, 2008 10:07:31 PM Subject: Re: [Webtest] Problem with getAttributeNode Hi Marc, Any idea when is HTMLUnit-2.4 going to release? I am trying to get the latest snapshot but getting failed build. Thanks, -Ruchika Subject : Re: [Webtest] Problem with getAttributeNode Date : Mon, 27 Oct 2008 11:15:53 +0100 >From : Marc Guillemot <[EMAIL PROTECTED]> To : [email protected] Hi Ruchika, your js snippet doesn't cause any problem to latest 2.4 snapshot of HtmlUnit. I wouldn't be surprised if it has been fixed since 2.3 since a lot of work has been done on namespace. You can try to pick the HtmlUnit snapshot (as well as the dependencies that have changed) and to put in in your WebTest lib dir in place of HtmlUnit-2.3. Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com Ruchika Badjatia wrote: > Hi Marc, > > I somehow debugged my code and was trying to came up with minimal > test-case, I found that there is some problem in getting the attribute > node in canoo. > for example, lets say there is a radio button in my page and it has a > attribute my:label as defined below > > > > Now I try to get it like this using dom :- > > if(radioButton.getAttributeNode("my:label")){ > labelText = radioButton.getAttribute("my:label"); > } > > Canoo browser doesn't return any value of labelText. And thats why my > test is failing. Has anybody used it before? I tried it in IE and > firefox, it works well. > > Thanks, > -Ruchika > > > > > Message: 5 > Date: Tue, 07 Oct 2008 15:44:55 +0200 > From: Marc Guillemot > To: [email protected] > Subject: Re: [Webtest] debugger in canoo webtest > Reply-To: [email protected] > Reply-To: Marc Guillemot > > Hi, > > it seems that the line > var formHold = Dom.getElementsByClassName("formHold",'td',newElement)[0]; > return undefined in WebTest which is a bug if it works correctly in your > "normal" browsers. > > Can you provide a minimal test case where WebTest behavior is not correct? > > Cheers, > Marc. > -- > Web: http://www.efficient-webtesting.com > Blog: http://mguillem.wordpress.com > > Ruchika Badjatia wrote: >> Hi, >> In my code I am trying to manipulate the DOM. Removing the original >> radio button from the DOM and readding it in the TD element of the table. >> >> Lines of code :- >> >> var newElement = radioButton.parentNode.insertBefore(btn,radioButton); >> var oldElement = radioButton.parentNode.removeChild(radioButton); >> var formHold = Dom.getElementsByClassName("formHold",'td',newElement)[0]; >> var newRadioBtn = formHold.appendChild(oldElement);// line throwing >> exception >> >> Here is the descrption of the error which I am getting :- >> >> Java-Script error loading page http://localhost:8888/myapp: Wrapped >> com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call >> method "appendChild" of undefined >> (http://localhost:8888/myapp/scripts/common/screen.js#327) >> (http://localhost:8888/myapp/scripts/common/core.js#290) >> >> >> -Ruchika _______________________________________________ WebTest mailing >> list [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest > > _______________________________________________ WebTest mailing list > [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

