【发布时间】:2021-01-17 20:16:49
【问题描述】:
我从昨天开始一直在从网站上抓取,但提交按钮无法点击。
这是代码
button = driver.find_element_by_id('ctl00_PlaceHolderMain_g_6c89d4ad_107f_437d_bd54_8fda17b556bf_ctl00_btnSearch2').click()
这是来自网站的元素
<input type="submit" name="ctl00$PlaceHolderMain$g_6c89d4ad_107f_437d_bd54_8fda17b556bf$ctl00$btnSearch2" value="Cari" onclick="SetSource(this.id);" id="ctl00_PlaceHolderMain_g_6c89d4ad_107f_437d_bd54_8fda17b556bf_ctl00_btnSearch2" class="btn btn-primary" autopostback="True" style="margin-top: 31px">
错误
ElementNotInteractableException:消息:元素不可交互
(会话信息:chrome=87.0.4280.141
网站链接:https://www.bi.go.id/id/statistik/informasi-kurs/transaksi-bi/Default.aspx Cari BUTTON 我希望你能理解我的问题!提前谢谢你
【问题讨论】:
标签: python selenium screen-scraping