📜  selenium python 查找所有链接 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:24.201000             🧑  作者: Mango

代码示例1
elems = driver.find_elements_by_xpath("//a[@href]")
for elem in elems:
    print(elem.get_attribute("href"))