title: How to check if text is present using selenium webdriver python?
body: <p>How can I check if text is present in <code>selenium webdriver</code> &amp; <code>python</code>?</p>
  
  <p>I tried :</p>
  
  <pre><code>def get_email(browser):
  
  email_check = driver.find_element(By.CLASS_NAME("viewed-user-email")).text
  
  assert user_name in email_check, "Text not found %s" % user_name
  </code></pre>
  
  <p>the response is:</p>
  
  <pre><code> TypeError: 'str' object is not callable
  </code></pre>