This is my code : print(browser.find_element_by_partial_link_text("followers").get_attributes("title"))
. I am using find_element_by_partial_link_text
because maybe the xpath could be unique for each user. But my code returns nothing. This is the element's adress:
<li class=" LH36I">
<a class=" _81NM2" href="/username/followers/">
<span class="g47SY lOXF2" title="3,862,378">3.8m</span>
" followers"
</a>
</li>
So my question is how can i get the value in the title using find_element_by_partial_link_text
? Thanks in advance.
SOLVED : You can look at DebanjanB 's answer.