title: Python Selenium - href Attribute outputs a false link
body: <p>Im using Selenium to extract a href elements under div class elements from comments on Facebook posts.</p>
  <p>To do that im using <strong>https://m.</strong> and not <strong>https://www.</strong></p>
  <p>The weird thing is that the code is working but it produces a <strong>wrong href link</strong>.</p>
  <p>This is my test link:
  <a href="https://m.facebook.com/permalink.php?story_fbid=10158970984237798&amp;id=267767252797" rel="nofollow noreferrer">https://m.facebook.com/permalink.php?story_fbid=10158970984237798&amp;id=267767252797</a></p>
  <p>here's the relevant sample from the code:</p>
  <pre><code>links = browser.find_elements_by_xpath(&quot;//div[@class='_2b1h async_elem']/a&quot;)
  for link in links:
     print(link.get_attribute('href'))
  </code></pre>
  <p>This is the first print <strong>(wrong)</strong>:</p>
  <blockquote>
  <p>https://m.facebook.com/comment/replies/?ctoken=10158970984237798_10158971018182798&amp;count=7&amp;curr&amp;pc=1&amp;isinline&amp;initcomp&amp;ft_ent_identifier=10158970984237798&amp;eav=<strong>AfYL7kFupIufaUdT64Uj85QVZhOZxYUkTTY1wrjRnMqxFG85Nmev-Au_bPm0a4Z0HzM&amp;av=100078743166486&amp;gfid=AQC0Hgp2a-I6Q7Fpj_Y&amp;<strong>tn</strong>=R</strong></p>
  </blockquote>
  <p>but the href link should be <strong>(Right)</strong>:</p>
  <blockquote>
  <p>https://m.facebook.com/comment/replies/?ctoken=10158970984237798_10158971018182798&amp;count=7&amp;curr&amp;pc=1&amp;isinline&amp;initcomp&amp;ft_ent_identifier=10158970984237798&amp;eav=<strong>AfaIC6mT5kvBUEIfgoLYj9G5KYF_lv4sncnOMaJjJKk1dEk-aXbNnYwwNnoFmt9kIOQ&amp;av=100000431416784&amp;gfid=AQDiD_GY8uckLbNf0bQ&amp;<strong>tn</strong>=R</strong></p>
  </blockquote>
  <p>Why does this piece of code get the wrong href link?</p>