1.如果获取图片中的 src 值:
<img >
driver.find_element_by_xpath("//*[@id='imgcorrelationId']").get_attribute("src")

2.获取 ifranme 中的 id 属性值
<iframe ></iframe>
driver.find_element_by_xpath("//*[@id='download_zxbg']").get_attribute("id")

相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2021-08-26
  • 2021-10-31
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-23
  • 2022-01-14
  • 2021-10-20
  • 2022-02-05
  • 2022-12-23
相关资源
相似解决方案