selenium.common.exceptions.ElementNotVisibleException: Message: element not interactable

页面元素不可交互

调试发现其实是 self.driver.find_element_by_xpath("//li[text()='新闻']")找到了多个元素

重新定位一下保证找到的值是唯一的就ok

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-09-12
  • 2022-12-23
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-04-30
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
相关资源
相似解决方案