title: How to find element when it's in <P tag in html file using webdriver?
body: <p>I want to find element in <code>&lt;p&gt;</code> tag from html file. This part of html displays a warning message in a webpage.</p>
  
  <p>The html code is here:</p>
  
  <pre><code>&lt;div class="Coeff-Details"&gt;
      &lt;div&gt;
          &lt;p class="alert alert-warning"&gt;There is no data to display&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I cannot find the element after class, I tried this without success.</p>
  
  <pre><code>driver.findElement(By.name("alert alert-warning"&gt;There is no data to display")).isDisplayed();
  </code></pre>
  
  <p>I tried the same thing but with xpath, it did not find the element.</p>
  
  <p>Do you know how to find this element?
  Thank you</p>