selenium Message: element not interactable
解决办法
logger.info('点击下翻月份')
xiayiye = self.browser.find_element_by_xpath(
'//div[@class="mp-direct mp-direct-next" and @mp-role="nextMonthBtn" and @style="display: block;"]/a')
# 点击
# xiayiye.click() # Message: element not interactable
self.browser.execute_script(
"arguments[0].click();", xiayiye)
评论已关闭