Fetch all href link using selenium in python

前端 未结 6 2044
孤街浪徒
孤街浪徒 2020-12-04 14:41

I am practicing Selenium in Python and I wanted to fetch all the links on a web page using Selenium.

For example, I want all the links in the href= prop

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 15:27

    You can try something like:

        links = driver.find_elements_by_partial_link_text('')
    

提交回复
热议问题