Craig Copeland <[EMAIL PROTECTED]> writes: > > I hit an exception that appears to come from htmlunit or rhino, the base of > which says: > org.mozilla.javascript.EcmaError: TypeError: Cannot call method "focus" of > undefined (event for HtmlBody[<body > onload="self.focus();document.cpi_card_details.CardName.focus();" > bgcolor="#ffffff">]#1) > > ...
I guess that the problem doesn't come from "self.focus()" but from document.cpi_card_details.CardName.focus()". Have you the possibility to change your code to check this? Is your html correct? What is "cpi_card_details"? The name of a form? Does this form really contain a field with name "CardName"? You can set the log level to debug to get more information on what is done during js evaluation by htmlunit. Marc. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

