ReferenceError Javascript

View: New views
2 Messages — Rating Filter:   Alert me  

ReferenceError Javascript

by shendel_18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello, I just shifted to HttpUnit and totally beginner. I have
javascript in my login page

Like this:
$("j_username").value = getCookie("username");
$("j_password").focus();

when run my test it is giving error:
ReferenceError: "$" is not defined.

Anyone already encounter it or knows how fix this? Suggestion or comment
are appreciated..

Thanks
Nelson

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user

Re: ReferenceError Javascript

by Ahmed Ashour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Nelson,
 
What HtmlUnit version do you use? Which JS library? Please provide minimal test case.
 
Yours,
Ahmed
----
Blog: http://asashour.blogspot.com

From: Nelson Biasura <nelson.biasura@...>
To: htmlunit-user@...
Sent: Fri, October 23, 2009 7:37:26 AM
Subject: [Htmlunit-user] ReferenceError Javascript


Hello, I just shifted to HttpUnit and totally beginner. I have
javascript in my login page

Like this:
$("j_username").value = getCookie("username");
$("j_password").focus();

when run my test it is giving error:
ReferenceError: "$" is not defined.

Anyone already encounter it or knows how fix this? Suggestion or comment
are appreciated..

Thanks
Nelson

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user