hi dierk,
i am attaching the Html that i am testing
<tbody><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td height="100%"><table cellspacing="0" cellpadding="1" border="0"
width="100%" height="100%"><tr><td class="panel-subheader"
nowrap="true"></td><td class="displayAreaBg"
style="padding-right:10px;padding-top:5px;padding-bottom:5px;"
nowrap="true"><label id="_id161" name="_id161"
style="line-height:19px"> </label></td></tr><tr><td
class="panel-subheader" nowrap="true"><label
for="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartCode"><span
id="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartCode_Error_Highlight">Action
Reason Code</span><span class="required">*</span></label></td><td
class="displayAreaBg" nowrap="true"><input
id="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartCode"
name="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartCode"
type="text" value="" maxlength="2" tabindex="7129" size="2" /><span
id="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartCode_Error"
class="redbold"></span></td></tr><tr><td class="panel-subheader"
nowrap="true"><label
for="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartDescription"><span
id="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartDescription_Error_Highlight">Description</span><span
class="required">*</span></label></td><td class="displayAreaBg"
nowrap="true"><input
id="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartDescription"
name="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartDescription"
type="text" value="" maxlength="100" tabindex="7130" size="100" /><span
id="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_StartDescription_Error"
class="redbold"></span></td></tr><tr><td class="panel-subheader"
nowrap="true"></td><td class="displayAreaBg"
style="padding-right:10px;padding-top:5px;padding-bottom:5px;"
nowrap="true"><label id="_id162" name="_id162"
style="line-height:19px"> </label></td></tr><tr><td
class="panel-subheader"> </td><td align="right"
class="displayAreaBg"><table
id="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartDataPanel_ButtonPanel"
border="0"><tbody><tr><td class="emptyClass"><input
id="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartPanel_cancelAction_btn"
name="MMISForm:MMISBodyContent:ActionReasonPanel:EligStartPanel_cancelAction_btn"
type="image" src="images/cancel_btn.gif"
onclick="clear_MMISForm();document.forms['MMISForm'].elements['autoScroll'].value=getScrolling();"
alt="Cancel" onmousedown="javascript:setButtonSubmit('true');"
onkeypress="javascript:setButtonSubmit('true');" title="Cancel"
class="buttonImage" accesskey="C" tabindex="7131" /></td></tr>
</tbody></table></td></tr>
In this html i have to search for the labels which has <span class
="required"/>
i was using the storexpath
<repeat count="2" countername="i">
<storeXPath description="Store Label value in xpath"
xpath="//label[#{i}+1][span[2]='*']"
property="uri[#{i}]" propertyType="dynamic" />
</repeat>
i was able to get the first label but i am not able to retrieve the second
label.
Thanks,
Swetha
Dierk König <[EMAIL PROTECTED]> wrote:
Hi Swetha,
in order to answer your question, we would need to see the respective
html you are testing and the storexpath step you have used so far.
cheers
Dierk
| -----Original Message-----
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED] On Behalf Of swetha appalapuram
| Sent: Donnerstag, 6. März 2008 17:50
| To: [email protected]
| Subject: [Webtest] Retrieving the labels using xpath in canoo
|
| hi,
| i have to implement a webtest which requires to store more
| than one value from xpath.
| we are using canoo and i have a requirement like i have to
| retrieve all the labels in the html. using xpath i may get
| all the labels but through canoo how can i store all the
| labels i tried using storeXpath and it is just stroing the
| first anchored element can you please tell me a way to store
| all the labels returned by xpath in the canoo.
|
| It is urgent.
|
|
| Thanks,
| Swetha
|
| ________________________________
|
| Get the freedom to save as many mails as you wish. Click here
| to know how.
| <http://in.rd.yahoo.com/tagline_mail_5/*http://help.yahoo.com/
l/in/yahoo/mail/yahoomail/tools/tools-08.html/>
|
---------------------------------
Forgot the famous last words? Access your message archive online. Click here.