title: Python Selenium: get_attribute returns None but the attribute exists
body: <p>I'm trying to scrape images from Google images . My code:</p>
  <pre><code>from selenium import webdriver
  import time
  
  keyword = &quot;cats&quot;
  url = &quot;https://www.google.com/search?q=&quot; + keyword + &quot;&amp;source=lnms&amp;tbm=isch&amp;tbs=&quot;
  
  driver= webdriver.Chrome()
  driver.get(url)
  time.sleep(5)
  
  tags = driver.find_elements_by_xpath('//div[@id=&quot;islrg&quot;]/div[@class=&quot;islrc&quot;]/div/a[1]')
  
  for tag in tags:
      link = tag.get_attribute(&quot;href&quot;)
      print(link)
  
  </code></pre>
  <p>This will print only None.</p>
  <p>In the page source the tags have no href , I can see it only from inspect element . How can I get the href of these elements?</p>