title: Python selenium how to get only paragraphs with text
body: <p>Imagine I have such html:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="content"&gt;
    &lt;p&gt;Sometext&lt;/p&gt;
    &lt;p&gt;&lt;/p&gt;
    &lt;p&gt;&lt;/p&gt;
    &lt;p&gt;More text&lt;/p&gt;
    &lt;p&gt;&lt;/p&gt;
  &lt;div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Using selenium, is there a way to get only paragraphs which contain text? In example it will be the first and the fourth paragraphs..</p>