title: Python + Selenium: I can't get print text from div
body: <p>Python + Selenium: I can't get print text from this div:</p>
  
  <pre><code>&lt;div id="modal-content-18" class="modal-content" data-role="content"&gt;
      &lt;div&gt;
      SignUp Failed. Please Try Again.
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>resp = browser.find_element_by_class_name("modal-content").text
  print resp
  </code></pre>
  
  <p>But it does not work.</p>
  
  <p>Please help me.</p>