selenium的browser.page_source无法返回页面内容

可能是编码的问题。。

html= (browser.page_source).encode('GBK', 'ignore')

  

另外:元素内容直接获取:

browser.find_element_by_id("login_info").text

 

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-08-08
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-08-29
  • 2021-09-27
相关资源
相似解决方案