Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2012 08:33
Show Gist options
  • Save anonymous/4266119 to your computer and use it in GitHub Desktop.
Save anonymous/4266119 to your computer and use it in GitHub Desktop.
@Test
public void table_sort() throws InterruptedException {
// given
browser.get(contextPath.toExternalForm() + "sort.jsf");
WebElement cell = browser.findElements(By.cssSelector(".rf-edt-c-column2 .rf-edt-c-cnt")).get(0);
Assert.assertEquals("9", cell.getText());
guardXhr(sortLink).click();
Thread.sleep(500);
cell = browser.findElements(By.cssSelector(".rf-edt-c-column2 .rf-edt-c-cnt")).get(0);
Assert.assertEquals("0", cell.getText());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment