Hi Jamie-
I am not sure what you are looking for but if you know any part of the tag in the response that will be consistent I am a big fan of using contains combined with text()
like
<tr>
<td>click</td>
<td>//a[contains(text(),'CListCustomers.vm')]</td>
<td> </td>
</tr>
what line are you trying to "catch"?
Timur Snoke
Intalgent
[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote on 06/28/2005 04:17:51 PM:
> I've got a table with a dynamic number of rows. I want to find a link
> (edit or delete), but I don't know the customer number coming into the
> pge. (I do know the customer code, which is text in the first cell.)
>
> Is there any way to leverage the info on the row to reference the links
> via DOM or XPath (or other) if I don't know the customer number?
>
> Here's what a row looks like:
>
> <tr class="table_row">
> <td class="table_init_col">CODE</td>
>
> <td>Test Company</td>
> <td>Test Contact</td>
> <td>[EMAIL PROTECTED]</td>
> <td>123-123-1234</td>
> <td>
> <form method="POST" id="customer79"
> action=""> > vm/action/customer.CustomerManagement">
> <input type="hidden" name="customer_id" value="79"/>
>
> <a style="text-decoration: none;"
> href=""> > <img src="" alt="Edit"
> border="0">
> </a>
>
> <a style="text-decoration: none;" href=""
> > > <img src=""
> alt="Remove" border="0">
> </a>
> </form>
> </td>
> </tr>
>
> Thanks,
>
> Jamie
> _______________________________________________
> Selenium-users mailing list
> [EMAIL PROTECTED]
> http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users
_______________________________________________ Selenium-users mailing list [EMAIL PROTECTED] http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users
