Thank you Michael for the insight and helping me with xpath. Its working! xpath="(//tr[td/a[text()='123456789']]//td//table//td//input)"
Regards, Srini On Mon, Oct 11, 2010 at 2:23 AM, Habbert, Michael (Key-Work) < [email protected]> wrote: > Hi Srini, > > > > what about this one: > > > > tr[td/a[text()=‘123456789‘]/td[6]/table/tr/td/input > > > > Means: get from the TR-element – when the value oft he A-HREF-Tag is > ‚123456789‘ – the input-element oft he 6th TD-element inside …. > > > > There are different ways to one target and some ways a more strait forward > ;-) > > > > Greetings > > > > Michael Habbert > > > > *Von:* [email protected] [mailto:[email protected]] > *Im Auftrag von *sriharini sriharini > *Gesendet:* Freitag, 8. Oktober 2010 22:10 > *An:* [email protected] > *Betreff:* [Webtest] figuring out the xpath > > > > Hi All, > > > > Can any help me in figuring out the xpath. I would like to get the xpath > for > > <input type="checkbox" name="managerApprovals" value="333666"> > > > > my xpath... > > (//input[../../preceding-sibling/::td/a[text()='123456789']]) > > > > is getting me... > > <input type="hidden" name="testDetail[1].val" value="500"> > > > > The only value that know is 123456789. > > > > ---------------Below is the > HTML---------------------------------------------------- > > > > <tr> > > <td> > > <a href="/test/portal/test.do?CI=true&id=71681" > target="_blank">123456789</a> > > </td> > > <td>501c3/509A2</td> > > <td><span class="normalText">10/05/2010</span></td> > > <td>Othet</td> > > <td>ageorge</td> > > <td> > > <table cellpadding="0" cellspacing="0" border="0" > width="100%"> > > <tr> > > <td align="center"> > > <input type="checkbox" name="managerApprovals" > value="333666"> > > </td> > > </tr> > > > </table> > > </td> > > <td align="center"> > > <input type="hidden" name="testDetail[1].val" value="500"> > > </td> > > </tr> > > > > > > Thank you > > > > Regards, > > Srini > > > > *Michael Habbert* > Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | > www.key-work.de > Fon: +49-721-78203-269 | E-Mail: [email protected] | Fax: > +49-721-78203-10 > > Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim > Geschäftsführer: Andreas Stappert, Tobin Wotring >

