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