Dear Terry, node.compareDocumentPosition() is now implemented.
Please get latest HtmlUnit snapshot, and advise if you have any issue. Yours, Ahmed ________________________________ From: Terry Jennings <[EMAIL PROTECTED]> To: webtest@lists.canoo.com Sent: Tuesday, November 4, 2008 5:04:43 PM Subject: Re: [Webtest] Javascript adding <div> s to page I have made progress, but have hit another problem. Here's my current test case: <?xml version="1.0"?> <!DOCTYPE project SYSTEM "../dtd/Project.dtd"> <project default="test"> <import file="../definitions.xml"/> <target name="test" depends="wt.defineMacros"> <webtest name="Get to Main Page"> <config> <header name="User-Agent" value="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3"/> </config> <invoke url="${aha.loginPage}"/> <verifyTitle text="Pentaho User Console - Login" description="verify title page"/> <clickElement xpath="//[EMAIL PROTECTED]'btn_login_title']" description="click the login button" /> <setSelectField description="Enter Username" xpath="//select" value="Joe (admin)" /> <clickElement htmlId="okButton" description="click the login button" /> <verifyTitle text="Pentaho User Console" description="verify main page" /> </webtest> </target> </project> Now, the test case fails at the okButton clickElement: JavaScript error loading page http://<mymachine>:8080/pentaho/Login: TypeError: Cannot find function compareDocumentPosition in object [object HTMLDivElement]. (script in http://<mymachine>:8080/pentaho/mantleLogin/ABA0FB8D5DC6AA79E6A6E49D3A1E0398.cache.html from (1, 382) to (1083, 13)#61) At this point, the resulting error page does not have the login pop-up on it. Any ideas what this problem might be? thanks! Terry -- View this message in context: http://www.nabble.com/Javascript-adding-%3Cdiv%3E-s-to-page-tp20257006p20322879.html Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest