title: How to retrieve the value of the attribute aria-label from element found using xpath as per the html using Selenium
body: <p>I have the following HTML span:</p>
  
  <pre><code>&lt;button class="coreSpriteHeartOpen oF4XW dCJp8"&gt;
      &lt;span class="glyphsSpriteHeart__filled__24__red_5 u-__7" aria-label="Unlike"&gt;&lt;/span&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>I also have a <code>webElement</code> representing the button containing this span that I have found using <code>xpath</code>. How can I retrieve the <code>aria-label</code> value (Unlike) from the element?</p>
  
  <p>I tried to do:</p>
  
  <pre><code>btn = drive.find_element(By.xpath, "xpath") 
  btn.get_attribute("aria-label")
  </code></pre>
  
  <p>but it returns nothing. How to retrieve the text value of an element 
  with  'aria-label' attribute from the element object?</p>