Mart Toom schrieb:
Hi,
I have an application that is similar to shopping chart where you add
items to the list.
But unfortunately the location of the item in list is not consistent and
may change when you add next items (sorted by name). So new item may get
in the middle of item list.
What I need, is to verify item value. I know item name and can find it
by <verifyText> step.
Is it possible somehow to extract the htmlId of this text field element?
From this htmlId I can get the item id in the list and search for the
value field.
Hi Mart,
you should use: storeXpath.
I pasted you a snippet I used some time ago. You have to dig into the XPath
syntax...
--------snippet--------------
<storeXPath description="get the selectbox-name for the new element"
xpath="//[EMAIL PROTECTED]'#{stage.name}']/following-sibling::td/select/@name" property="selectBox" />
--------snippet--------------
mfg
Michael
[...]
--
Mit freundlichen Grüßen
Michael Habbert
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest