How to get link with Selenium Python.
HTML sample:
<a herf="link" ...>
How to get this link in a variable.
I used many ways but didn't work. I used function find_element() example:
ele=bro.find_elements(By.TAG_NAME,'a')
How to get this link in a variable. I used many ways but didn't work. I used fu" /> How to get this link in a variable. I used many ways but didn't work. I used fu" /> How to get this link in a variable. I used many ways but didn't work. I used fu"/>
How to get link with Selenium Python.
HTML sample:
<a herf="link" ...>
How to get this link in a variable.
I used many ways but didn't work. I used function find_element() example:
ele=bro.find_elements(By.TAG_NAME,'a')
Copyright © 2021 Jogjafile Inc.
To extract the value of any of the attributes of a WebElement, you have to use the
get_attribute()method from selenium.webdriver.remote.webelement module.This usecase
To extract the value of the
hrefattribute from WebElement(s) you can use the following line of code:From a single element:
From a list of elements: