5 messages in com.canoo.lists.webtestRe: [Webtest] Hi! Any method to verif...
FromSent OnAttachments
Robert Chen02 Mar 2005 15:16 
Marc Guillemot03 Mar 2005 02:23 
vikr...@mastek.com07 Mar 2005 00:44.java
Paul King07 Mar 2005 05:06 
Edward O'Flynn07 Mar 2005 06:06 
Subject:Re: [Webtest] Hi! Any method to verify if a textfield is enabled?
From:Paul King (pau@asert.com.au)
Date:03/07/2005 05:06:39 AM
List:com.canoo.lists.webtest

Hi Vikram, are you happy to release this under the existing Canoo Webtest
Licence?

Thanks, Paul.

vikr@mastek.com wrote:

Hi Robert,

We had developed a custom check for this type of functionality to check if the particular html component is enabled or disabled I am sending you the source.

Add the following entry in webtestTaskdefs.properties

verifyhtmlelementenabled=com.canoo.webtest.steps.verify.VerifyHtmlElemen tEnabled

The Syntax is as follows .

<verifyhtmlelementenabled stepid="Check First Name input box is Disabled" name="given_name_a" enabled="false"/>

Thanks & Regards Vikram Shitole Mastek Ltd Phone No : 56072000/ 56072100 extn 2051 Mastek on the web: www.mastek.com

'The future belongs to those who believe in the beauty of their dreams'

From: Robert Chen <Robe@colesmyer.com.au> To: "'webt@lists.canoo.com'" <webt@lists.canoo.com> Date: Thu, 3 Mar 2005 10:16:24 +1100 Subject: [Webtest] Hi! Any method to verify if a textfield is enabled? Reply-To: webt@lists.canoo.com

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.

MASTEK "Making a valuable difference" Mastek in NASSCOM's 'India Top 20' Software Service Exporters List. In the US, we're called MAJESCO