-
-
Save lfryc/4266142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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(); | |
waitAjax().until(new Predicate<WebDriver> () { | |
public boolean apply(WebDriver driver) { | |
try { | |
WebElement element = browser.findElement(By.cssSelector(".rf-edt-c-column2 .rf-edt-c-cnt")); | |
return "0".equals(element.getText()); | |
} finally { | |
return false; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment