title: Getting meta tags from a page source using Selenium Python
body: <p>I'm trying to fetch the data from the URL <a href="https://play.google.com/store/apps/details?id=com.teslacoilsw.launcher&amp;hl=en" rel="noreferrer">https://play.google.com/store/apps/details?id=com.teslacoilsw.launcher&amp;hl=en</a> and fetch the below data</p>
  
  <pre><code>   &lt;meta content="3.99" itemprop="price"&gt; 
  </code></pre>
  
  <p>I used the following code implemented in Python to fetch but it failed.</p>
  
  <pre><code>    browser = webdriver.Firefox() # Get local session of firefox
      browser.get(sampleURL) # Load page
      assert "Google Play" in browser.title
      priceValue = browser.find_element_by_xpath("//div[@itemprop='price']")#
      print priceValue.text
  </code></pre>
  
  <p>But it says it can't find the xpath of value price. Any idea why?</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>priceValue = browser.find_element_by_xpath("//meta[@itemprop='price']")
  print priceValue.text
  </code></pre>
  
  <p>I get empty string </p>