What is the error? This works for me in R_1632. Maybe it has been removed in later releases, although, I wouldn't think so since I learned this "trick" from Marc answering someone else's question.
William Soula QA Analyst Pointserve, Inc. 110 Wild Basin Road Suite 300 Austin, Texas 78746 O: 512.617.5311 F: 512.617.0466 ________________________________ From: swetha appalapuram [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 11:25 AM To: [email protected]; Soula, William Subject: RE: [Webtest] Retrieving the labels using xpath in canoo i am getting error like repeat doens't support xpath. "Soula, William" <[EMAIL PROTECTED]> wrote: Have you tried using repeat? <repeat xpath="//[EMAIL PROTECTED]'mdp']/tr/td[1]/[EMAIL PROTECTED]'checkbox']" counterName="currentCheckbox" description="Check all Plans"> <storeXPath xpath="$currentCheckbox" property="whatever"/> </repeat> The above code will store the xpath of every checkbox in my 'mdp' table. See if you can change the xpath to get your label. You may need to put a storeProperty in there to append to the end of your storeXPath variable to store them all. William Soula QA Analyst Pointserve, Inc. 110 Wild Basin Road Suite 300 Austin, Texas 78746 O: 512.617.5311 F: 512.617.0466 ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of swetha appalapuram Sent: Friday, March 07, 2008 10:44 AM To: [email protected]; Dierk König Subject: RE: [Webtest] Retrieving the labels using xpath in canoo 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.<http://in.rd.yahoo.com/tagline_webmessenger_4/*http://in.messenger.yahoo.com/webmessengerpromo.php> ________________________________ ________________________________ Save all your chat conversations. Find them online.<http://in.rd.yahoo.com/tagline_webmessenger_3/*http://in.messenger.yahoo.com/webmessengerpromo.php>

