You have not included the full HTML page, so for example I don't know whether 
you have named your table.

I suggest you examine your HTML page using XPather in Firefox. See 
http://xpath.alephzarro.com/ for more information. You may also need the DOM 
inspector (https://addons.mozilla.org/en-US/firefox/addon/6622) - then you can 
just press CTL+Shift+i to start the DOM inspector on your page and expand from 
the HTML element downwards.

Immo

________________________________
From: [email protected] [mailto:[email protected]] On 
Behalf Of sriharini sriharini
Sent: 02 December 2010 19:12
To: [email protected]; [email protected]
Subject: [Webtest] xpath

Hi All,
Can some one help me in figuring out the xpath. Below is the html code.

<tr>
            <td style="padding-top: 15px;">
                        <a 
href="/test/portal/TestAccount.do?myTestId=530178&amp;testAccountId=1234&amp;myTestIdPageNumber=1">Test<br/>Test</a>
            </td>
            <td style="padding-top: 12px;">
                        Test Account Name
                        &nbsp;<a 
href="/test/portal/testlist.do?eMode=Y&amp;testAccountId=1234&amp;pageNumber=1">Edit</a>
            </td>
            <td style="padding-top: 12px;">
                        This is Test Name - City, MI
            </td>
            <td style="padding-top: 28px;" >
                        100 Test Street<br>
                        City
                        ,
                        MI
                        &nbsp;9999
                        <br/>
                        United States
            </td>
            <td style="padding-top: 26px;">
                        04/07/2008
            </td>
            <td align="center" style="padding-top: 20px;">
                        <img 
src="/f/111/2222/7d/ig.test.com/rc/test/images/web/btn_black_x.gif<http://ig.test.com/rc/test/images/web/btn_black_x.gif>"
 border="0" alt="Next" 
onclick="javascript:fnRemoveTestAlias(document.forms['upForm'], 122734);"/>
            </td>
</tr>

<tr>
..............same structure with different data..............
</tr>

---------------------------------------------------------------------------------------------------------------------------

I want click on the image for the row where the text is 'This is Test Name - 
City, MI'


Thanks in advance

Regards,
Srini

Reply via email to