【发布时间】:2021-06-25 14:00:15
【问题描述】:
如何让 selenium python 识别 HTML 中的这个按钮?
我已经尝试过这个和其他标签来获得它
driver.find_element_by_class_name('cookie-monster').clickbutton
print('button was clicked')
这是按钮sn-p代码
<button class="cookie-monster__cta cookie-monster__cta--primary js-cookie-monster-accept">
<span class="glyphicon glyphicon-ok"></span>
Accept All Cookies
</button>
【问题讨论】:
标签: python css selenium selenium-webdriver