0

我正在尝试使用文本“cccc cccc”定位元素,但无济于事

我试过 // [@class='eline']// [contains(.,'cccc cccc')] 但无济于事

这是源代码

<tr class="eline">
<tr>
<td class="norm" nowrap=""/>
<td class="norm" nowrap="">
<td class="norm" nowrap="">
<td class="norm" nowrap="">cccc cccc </td>
<td class="norm" nowrap="">99999 </td>
<td class="norm" nowrap=""/>
<td>
<td class="norm" nowrap="">
<td class="norm" nowrap="">
<td class="norm" nowrap="">testcase33 testcase33 </td>
<td class="norm" nowrap="">33100 </td>
4

1 回答 1

0

XPath 应如下所示:

//tr[@class='eline']/td[@class='norm' and contains(.,'cccc cccc')]
于 2013-11-04T10:48:46.383 回答