[Webtest] How to Get value from a field

Marc Guillemot webtest@lists.canoo.com
Thu, 05 Feb 2004 09:39:18 +0100


As I understood it, the question was "How to get the value of a field with a 
given id" and not "how to verify that a field has a given value". For this 
second case, verifyinputfield is always the accurate step.

Marc.


Aatish Arora wrote:
> am out of touch with Canoo for a long time - but wasnt there something 
> called verifyinputfield too which could be used for the same?
>  
> Cheers!
> Aatish
> 
> 
> */Janno Kusman <jannokusman@hot.ee>/* wrote:
> 
>     You can use storexpath to get value of input element.
> 
> 
>     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.
>      >
>      >
>      >
> 
> 
>     _______________________________________________
>     WebTest mailing list
>     WebTest@lists.canoo.com
>     http://lists.canoo.com/mailman/listinfo/webtest
> 
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. *Try it!* 
> <http://us.rd.yahoo.com/evt=21608/*http://webhosting.yahoo.com/ps/sb/>