为了账号安全,请及时绑定邮箱和手机立即绑定

如何通过Selenium和Python按HTML单击引导程序按钮

如何通过Selenium和Python按HTML单击引导程序按钮

慕森卡 2021-04-09 18:54:06
我正在尝试使用Selenium脚本单击网页上的按钮,但使用此行却给我以下错误:driver.find_element_by_class_name('btn-primary').click()错误如下:ElementNotInteractableException: Message: Element <button class="btn-primary btn-text  sort-filter-clear-button" type="button"> could not be scrolled into view按钮元素的HTML:<button type="submit" class="btn-primary btn-action bookButton" id="bookButton" data-track="FLT.RD.Book.Bottom"><span class="btn-label">Continue Booking</span></button>
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 224 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号