【发布时间】:2016-11-06 04:33:47
【问题描述】:
我正在尝试让 Selenium 点击特定的 href,例如
<a href="publications.html">Publications</a>
我试过了
driver.find_element_by_link_text('Publications.html').click()
但它给了我错误:
AttributeError: 'NoneType' 对象没有属性 'click'。
有什么建议吗?
【问题讨论】:
-
你应该阅读文档和一些关于如何使用
find_element_by_link_text()的教程。
标签: python html selenium selenium-webdriver href