【发布时间】:2019-12-30 20:43:20
【问题描述】:
试图构建一个网络爬虫,但对于我的生活,我似乎无法点击此链接。无论我尝试什么,我总是会收到 Unable to Locate Element 错误。这是 HTML:
<td colspan="2" width="100" height="100">
<a href="place.php?whichplace=desertbeach">
<img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/main/map7beach.gif" alt="Desert Beach" title="Desert Beach" width="100" height="100" border="0">
</a>
</td>
我正在尝试单击与 a href 链接关联的链接。尝试通过 css、xpath 等查找元素,但似乎找不到它。有什么帮助吗?
【问题讨论】: