[Webtest] Hi! Any method to verify if a textfield is enabled?

Robert Chen webtest@lists.canoo.com
Thu, 3 Mar 2005 10:16:24 +1100


Hi all,

Been using webtest for a few weeks now and it's a great program

I'm trying to verify using webtest that a field (which is disabled and
enabled by javascript) is actually disabled or not.

Before I tried to assign the disabled textfield a value, and then verify if
the textfield was empty or not. This didn't work as even though it was
disabled, webtest is able to assign it a value (i assume it works a little
differently to simulating manual/actual input).

Because its in javascript, the actual html tag for the element does not
change either, so I cannot verify its disabled using the verifytext function
which searches the html source.

Any help/information on whether this is possible would be great.

Thanks,

Robert.

This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses.  No warranty is made that this material is free from computer virus or any other defect or error.  Any loss/damage incurred by using this material is not the sender's responsibility.  The sender's entire liability will be limited to resupplying the material.