[Webtest] Issues with Webtest 2.6 : Cannot read property "length" from undefined

Jaydeep Ayachit Jaydeep Ayachit" <jaydeep_ayachit@persistent.co.in
Fri, 27 Jun 2008 17:19:12 +0530


Hi,

After upgrading Webtest to 2.6 version, I am getting error 
"TypeError: Cannot read property "length" from undefined". Before upgrade
this issue was not there.

I looked through mailing list archives and found out that the same issue is
reported earlier but no resolution available.

My code is something like

var pwdfld = document.getElementById("password");
if(pwdfld.value == "" || pwdfld.length < 4)
{
	alert("Password should have at least 4 characters!");
     return false;
}

Any help would be most appreciated.

Thanks
Jaydeep



DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.