Hey Timur:
There's no text in the <a> tag, just an image.
Jamie
[EMAIL PROTECTED] wrote:
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="http://a/really/long/path/here/customer%2CListCustomers.
> vm/action/customer.CustomerManagement">
> <input type="hidden" name="customer_id" value="79"/>
>
> <a style="text-decoration: none;"
>
href="http://a/really/long/url/here/customer%2CCustomer.vm?customerid=79">
> <img src="http://a/shorter/path/images/icon_edit.gif" alt="Edit"
> border="0">
> </a>
>
> <a style="text-decoration: none;" href="#"
> onClick="submitAction('customer79','doDelete')">
> <img src="http://a/shorter/path/images/icon_remove.gif"
> 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
_______________________________________________
Selenium-users mailing list
[EMAIL PROTECTED]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users