#由于js逐步加载页面,存在未显示的网页无法加载源码
from selenium import webdriver
driver = webdriver.Firefox()
init_element = driver.find_element_by_xpath('//a[@href="#" and @title="展开"]')
driver.execute_script("return arguments[0].scrollIntoView();", init_element)#js选定位置固定到当前

相关文章:

  • 2021-08-03
  • 2021-09-20
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-01-31
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-10-16
  • 2022-02-07
相关资源
相似解决方案