Hi, the JS code for IE on Google's home page has changed since this simple googleWebTest.xml has been written and it uses JavaScript code that HtmlUnit-2.5 is not able to simulate.
In the mean time, the missing method has been implemented for the IE simulation therefore you can pick a recent snapshot of HtmlUnit-2.6 and use it in place of HtmlUnit-2.5. The other alternative is to simulate firefox rather than IE6 (which is the default) using following before the <invoke ../> step: <config browser="ff3"/> Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com Spenser Kao wrote: > 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

