title: WebDriver - AssertionError shows wrong expected
body: <p>The error I get:
  java.lang.AssertionError: 
  Expected :0
  Actual   :1</p>
  
  <p>But in my code I actually expect it to be '1'</p>
  
  <pre><code>@Test
  public void d_test2X4() {
      driver.switchTo().defaultContent();
  
      driver.findElement(By.id("rows")).clear();
      driver.findElement(By.id("cols")).clear();
  
      WebElement rows;
      rows = driver.findElement(By.id("rows"));
      rows.sendKeys("2");
  
      WebElement col;
      col = driver.findElement(By.id("cols"));
      col.sendKeys("4");
  
      click_go = driver.findElement(By.cssSelector("button"));
      click_go.click();
  
      driver.switchTo().frame(driver.findElement(By.id("eyein-iframe")));
  
      Assert.assertEquals(driver.findElements(By.id("media-item-7")).size(), 1);
      driver.quit();
  }
  </code></pre>
  
  <p>I expect 'media-item-7' to be '1'
  It works fine for another @test which doing almost the same flow </p>
  
  <p>Inspect:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li id="media-item-0" class="plugin-media-item media-item" style="width: 22.5%; margin: 0px 1.25%;" data-index="0"&gt;&lt;/li&gt;
      &lt;li id="media-item-1" class="plugin-media-item media-item" style="width: 22.5%; margin: 0px 1.25%;" data-index="1"&gt;&lt;/li&gt;
      &lt;li id="media-item-2" class="plugin-media-item media-item" style="width: 22.5%; margin: 0px 1.25%;" data-index="2"&gt;&lt;/li&gt;
      &lt;li id="media-item-3" class="plugin-media-item media-item" style="width: 22.5%; margin: 0px 1.25%;" data-index="3"&gt;&lt;/li&gt;
      &lt;li id="media-item-4" class="plugin-media-item media-item" style="width: 22.5%; margin: 0px 1.25%;" data-index="4"&gt;&lt;/li&gt;
      &lt;li id="media-item-5" class="plugin-media-item media-item" style="width: 22.5%; margin: 0px 1.25%;" data-index="5"&gt;&lt;/li&gt;
      &lt;li id="media-item-6" class="plugin-media-item media-item" style="width: 22.5%; margin: 0px 1.25%;" data-index="6"&gt;&lt;/li&gt;
      &lt;li id="media-item-7" class="plugin-media-item media-item" style="width: 22.5%; margin: 0px 1.25%;" data-index="7"&gt;
          &lt;div class="media-header"&gt;&lt;/div&gt;
  </code></pre>