【发布时间】:2021-05-13 22:00:38
【问题描述】:
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
[https://www.w3schools.com/html/html_tables.asp]
您可以在链接中找到示例网络表格。我想要与公司和国家联系的价值。
我尝试过类似的方法
//td[text()='Laughing Bacchus Winecellars']//following-sibling::td and //td[text()='Canada']//preceding-sibling::td
【问题讨论】:
标签: selenium selenium-webdriver xpath ui-automation browser-automation