title: How to wait for a certain number of rows?
body: <p>I'm testing a webpage and some of its content is loaded with <code>XMLHttpRequest</code>. I need to check if my <code>&lt;table&gt;</code> contains 2 rows (because the page already contains 1 row when loading) after the Ajax call.</p>
  
  <p>My test:</p>
  
  <pre><code>@Before
  public void setUp() throws Exception {
      driver = new FirefoxDriver();
      driver.get("http://localhost/index.html");
      driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
  }
  
  @Test
  public void testIfPartnerListPageIsPresent() {
      driver.findElement(By.id("123")).click();
      List&lt;WebElement&gt; rawList = driver.findElement(By.id("id-213"))
          .findElements(By.tagName("tr"));
      assertTrue("More than 1 raw", rawList.size() &gt; 1);
  }
  </code></pre>
  
  <p>How can I ask to Selenium to wait for other rows in my table?</p>