[Webtest] How to Get value from a field

Janno Kusman webtest@lists.canoo.com
Mon, 02 Feb 2004 13:53:29 +0200


You can use storexpath to get value of input element.

<storexpath stepid="Get value of input element with id=1"
       xpath="//*/input[@id='1']/@value"
       property="id1value"/>

sets field value to WebTest property "id1value"

Janno

Siju John wrote:

>We have "setinputfield" to set the value to a given field.
>I want the opposite. I want to get the value of the given field.
>
>e.g. unique id = 1
>I want to get the value "1" provided the unique id name.
>Pls anybody can help.
>
>  
>