title: Scrape the <p> tag using Python Selenium
body: <p>I have a requirement to extract the <p> tag from the HTML. However I am not able to get it done. 
  This is the HTML:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="small-12 columns" id="gennedword-container"&gt;
      &lt;p class="text-center" id="gennedword"&gt;
          Press "New Word"
      &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I tried using the following, but I dont get the text.</p>
  
  <pre class="lang-python prettyprint-override"><code>word = driver.find_element_by_xpath('//*[@id="gennedword"]')
  print(word.get_attribute('text'))
  print(word.get_attribute('innerHTML'))
  </code></pre>
  
  <p>All it returns was <code>None</code> and for innerHtml I get - </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;img src="/wordgenerator/loading.gif" alt="Loading..." style="vertical-align:middle;"&gt;
  </code></pre>