title: Selecting visible element via css selector or xpath
body: <p>The XPath of the parent css selector (which is always visible) is as follows:  </p>
  
  <pre><code>/html/body/section/div/div[2]
  </code></pre>
  
  <p>After 5 seconds or so (after some javascript), one of its children will be visible. I want to select this visible child via its xpath.</p>
  
  <pre><code>/html/body/section/div/div[2]/div[1]
  /html/body/section/div/div[2]/div[2]
  /html/body/section/div/div[2]/div[3]
  /html/body/section/div/div[2]/div[4]
  </code></pre>
  
  <p>Then I want to get the element that has this xpath+(/h3)</p>
  
  <p>In html they are like this:</p>
  
  <pre><code>&lt;div class="results"&gt;&lt;div class="text-center" id="result-error"&gt;&lt;h3 class="one"&gt;
  &lt;div class="results"&gt;&lt;div class="text-center" id="result-fail"&gt;&lt;h3 class="one"&gt;
  &lt;div class="results"&gt;&lt;div class="text-center" id="result-catchall"&gt;&lt;h3 class="one"&gt;
  &lt;div class="results"&gt;&lt;div class="text-center" id="result-success"&gt;&lt;h3 class="one"&gt;
  </code></pre>
  
  <p>One of the four  above will be visible.</p>
  
  <p><strong>EDIT</strong>
  Python equivalent of your code:</p>
  
  <pre><code>wait = WebDriverWait(browser, 10)             
  rslts=wait.until(EC.presence_of_all_elements_located(By.CSS_SELECTOR, (".results h3 .one")))     
  </code></pre>
  
  <p>Yet I am getting this error: </p>
  
  <pre><code>rslts=wait.until(EC.presence_of_all_elements_located(By.CSS_SELECTOR, (".results h3 .one")))
  TypeError: __init__() takes exactly 2 arguments (3 given)  
  </code></pre>
  
  <p>I am unsure of your css selector and the spaces in between. Looks like the presence_of_all_elements_located function is thinking there are 3 arguments instead of 2. </p>