Python+selenium:获取一组元素属性值

来源:互联网 发布:电影院里啪啪 知乎 编辑:程序博客网 时间:2024/06/06 01:22

获取一组href元素属性的值

lst = driver.find_elements_by_class_name("ib-it-text")for lst in lst:    lst = lst.get_attribute("href")    print(lst.get_attribute("href"))

0 0