title: Using Selenium WebDriver to retrieve value of a HTML div
body: <p>I am trying to get a value from a div using this code:</p>
  
  <pre><code>input_field = driver.find_elements_by_xpath("/html/body/div[@id='display']")
  input_field_value = input_field.text
  </code></pre>
  
  <p>HTML: </p>
  
  <pre><code>&lt;div id="display" class="display xh-highlight"&gt;1&lt;/div&gt;
  </code></pre>
  
  <p>But I failed.</p>