a select doesn't have this kind of value, you'll need to access the
selected option element which is quite easy with xpath.

It becomes a bit more tricky to specify that you want to select an other
option when you don't know which option is currently selected. I have
blog about something similar for some time, it might help:
http://mguillem.wordpress.com/2007/07/25/xpath-power/

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


blahbox wrote:
> Hi,
> 
> How to store value from a drop down list, then edit the dropdown list, and
> input the original(stored)value back to it? The following code didn't work,
> gives error message "No suitable field(s) found".
> Well, this post has been pending for long, I will try to resend it again. Is
> there an easier way to do this instead of using Xpath?
> 
> 
> <storeInputFieldAttribute propertyname="Preferred_Priority"
> name="property(Preferred_Priority)" attributeName="value"/>
> <setSelectField name="property(Preferred_Priority)" text="Low"
> description="Select a different value in the drop down list"/>
> <verifySelectField name="property(Preferred_Priority)" text="None"
> description="Check input value"/>
> <setSelectField name="property(Preferred_Priority)"
> value="#{Preferred_Priority}"/>
> 
> 
> Thanks! 
> :working:

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to