title: Get parent element whose n number of child has same class using xpath or css in selenium
body: <p>I want to find element div with class=parent-class whose three children should have same class=no-data using xpath or css selector.</p>
  
  <p>i.e all three > 3rd, 4th &amp; 5th child div of parent class should have 'no-data' class.
  example:</p>
  
  <pre><code>&lt;div class="main"&gt;
      &lt;div class="parent-class"&gt;
         &lt;div class="child-1"&gt;child1&lt;/div&gt;
         &lt;div class="child-2"&gt;child2&lt;/div&gt;
         &lt;div class="no-data"&gt;NA&lt;/div&gt;
         &lt;div class="data"&gt;xyz&lt;/div&gt;
         &lt;div class="data"&gt;ijk&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="parent-class"&gt;
         &lt;div class="child-1"&gt;child1&lt;/div&gt;
         &lt;div class="child-2"&gt;child2&lt;/div&gt;
         &lt;div class="no-data"&gt;NA&lt;/div&gt;
         &lt;div class="no-data"&gt;NA&lt;/div&gt;
         &lt;div class="no-data"&gt;NA&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="parent-class"&gt;
         &lt;div class="child-1"&gt;child1&lt;/div&gt;
         &lt;div class="child-2"&gt;child2&lt;/div&gt;
         &lt;div class="data"&gt;abc&lt;/div&gt;
         &lt;div class="data"&gt;xyz&lt;/div&gt;
         &lt;div class="data"&gt;ijk&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="parent-class"&gt;
         &lt;div class="child-1"&gt;child1&lt;/div&gt;
         &lt;div class="child-2"&gt;child2&lt;/div&gt;
         &lt;div class="no-data"&gt;NA&lt;/div&gt;
         &lt;div class="no-data"&gt;NA&lt;/div&gt;
         &lt;div class="data"&gt;ijk&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>