Hi Spenser, Actually, Marc has fixed this yesterday in latest 2.6 snapshot, you get it it from http://build.canoo.com/htmlunit/artifacts
Yours, Ahmed---- Blog: http://asashour.blogspot.com ________________________________ From: Spenser Kao <[email protected]> To: [email protected] Sent: Tuesday, June 16, 2009 3:33:09 PM Subject: [Webtest] com.gargoylesoftware.htmlunit.ScriptException Hi WebTest Gurus, I regarded myself as an experienced ANT / JUnit / XMLUnit user, but I found I am struggling with WebTest. Since a week ago, I've started playing with WebTest latest build 1766 and 3.0. When I executed a simple googleWebTest.xml as shown below: <invoke url="http://www.google.com/ncr" description="Go to Google (in English)"/> <verifyTitle text="Google" /> <setInputField name="q" value="WebTest" /> <clickButton label="I'm Feeling Lucky" /> <verifyTitle text="Canoo WebTest" /> Pointed to location of the very first "Invoke" step, I immediate received following error message JavaScript error loading page http://www.google.com/: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function inRange in object [object]. By looking into the maillist, a similar error has been reported around April this year, some suggested using HtmlUnit-2.5, does it work? If yes, where do I download HtmlUnit-2.5? Best Regards, Spenser Kao _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

