xpath匹配属性没有值的元素

xpath匹配属性没有值的元素,xpath,selenium-rc,Xpath,Selenium Rc,我正在看一些HTML,如下所示 <tr> <td nowrap><a href=" ... " >some link</a></td> <td nowrap>col2</td> <td nowrap>col3</td> </tr> 可乐 可乐 我将其插入xpath测试程序,但它拒绝运行,因为输入无效 我可以使用xpath在上述输入上选择元素吗? 我正在使用se

我正在看一些HTML,如下所示

<tr>
  <td nowrap><a href=" ... " >some link</a></td>
  <td nowrap>col2</td>
  <td nowrap>col3</td>
</tr>

可乐
可乐
我将其插入xpath测试程序,但它拒绝运行,因为输入无效

我可以使用xpath在上述输入上选择元素吗?
我正在使用selenium单击行中包含的链接,其中第三个
td
元素有一个特定的值,并且认为xpath是一种简单的方法。正确的XPath是
//tr[td[3][.='col3']]/td[1]/a
:包含在第一个
中的
包含在
中,第三个
中也包含
col3