我一直在使用Selenium IDE并获得了一些好的结果.我已经做了很多关于跟随兄弟和兄弟姐妹的阅读,但我找不到合适的单选按钮.
基本上我想在表中找到带有'testing'一词的行,然后单击单元格中的单选按钮.
到目前为止我可以找到输入按钮//输入[@ type ='radio']
并找到文本测试// a [contains(text(),'testing')]
我一直在尝试在ide中使用它
check | //input[@type='radio']/following-sibling::td[1]/a[contains(text(),'testing')]
Run Code Online (Sandbox Code Playgroud)
但我得到了错误 [error] locator not found: //input[@type='radio']/following-sibling::a[contains(text()[1],'testing')]
任何帮助改变这一点真的很感激:)
干杯
达米安
这是基本的基本表......
<tbody id="list">
<tr>
<th>
<label class="radio">
<input class="presentation_radio" type="radio" value="1" name="presentation_radio">
</label>
</th>
<td>
<a href="/link_to/document">testing </a>
</td>
<td>testing</td>
<td>Joe Acme</td>
<td>Presentation</td>
<td>03 May 2012</td>
<td>5 (1)</td>
</tr>
</tbody>
Run Code Online (Sandbox Code Playgroud)