Thanks for the reply Ahmed. //inp...@value='89898989'] is not the checkbox xpath, test will fail.
Regards, Srini On Mon, Mar 29, 2010 at 3:56 PM, Ahmed Ashour <[email protected]> wrote: > Hi, > > What about: > > //inp...@value='89898989'] > > Yours > Ahmed > ---- > Blog: http://asashour.blogspot.com > > ------------------------------ > *From:* sriharini sriharini <[email protected]> > *To:* [email protected] > *Sent:* Mon, March 29, 2010 10:04:29 PM > *Subject:* [Webtest] conditional XPath > > Hi, > Could some one please help in identify xpath based on a condition? > I want to select the check box if the number is 89898989 > Below is the html code. > > Thanks, > Srini > > ========================== > <input type="hidden" name="orderHelperList[1].order.orderId" > value="89898989"> > <input type="hidden" > name="orderHelperList[1].order.orderType.typeClassName" > value="alasdjlafjaslfaldfj"> > <input type="hidden" name="orderHelperList[1].txnAmount" value="98.7745"> > <input type="hidden" name="orderHelperList[1].instrType" value="DOLLARS"> > <tr> > <td> > <span class="normalText">89898989</span> > </td> > > <td> > <a > href="/vceptpl/portal/accountSummary.do?dafAccountId=68982&CI=true" > target="_blank">ACT123456</a> > </td> > > <td> > This is Account > </td> > > <td> > <span class="normalText">Stocks</span> > </td> > > <td> > <span class="normalText">Liquid</span> > </td> > > <td> > <span class="normalText">DOLLARS</span> > </td> > > <td> > <span class="normalText">Abnormal</span> > </td> > > <td align="right"> > <span class="normalText"> > <a href="#" > onclick="popupEditOrder('/vceptpl/csr/editStocks.do?orderId=89898989')">98.7745</a> > </span> > </td> > > <td> > <span class="normalText"> > <input type="checkbox" name="orderHelperList[1].validateSelect" value="on" > onclick="updateLogistics()"> > </span> > </td> > </tr> > ============================================= > > > >

