title: Checking visibility of an element in a specific div, Selenium Python
body: <p>I have 3 <code>div</code>s with the same class and inside other <code>div</code>s when sometimes the class <code>pak</code> is visible and sometimes it's not.</p>
  
  <p>I want to check if the class <code>pak</code> is visible on the first <code>div</code>.</p>
  
  <p>Do I have any way to check if class is exist on a specific element when there is other elements that contains exactly the same class?</p>
  
  <pre><code>&lt;div class='ra22'&gt;
      &lt;div class='poko'&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class='ra22'&gt;
      &lt;div class='poko pak'&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class='ra22'&gt;
      &lt;div class='poko pak'&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is what I've tried to do:</p>
  
  <pre><code>try:
      WebDriverWait(browser, 3).until(expected_conditions.visibility_of_element_located((By.CSS_SELECTOR, '.ra22 .pak)))
  except:
      print 'class ".pak" not visible'
  </code></pre>
  
  <p>and of course the <code>WebDriver</code> find the class on the second <code>div</code>.</p>
  
  <p>Is there a solution on how can I search the class <code>pak</code> only in the first <code>div</code>?</p>