protected void afterAction(GrapheneContext context) { Graphene.waitModel(context.getWebDriver()) .until() .element(REQUEST_TIME) .text() .not() .equalTo(time1); }
private void setTextValue(ResourceTableRowFragment row, int index, String text) { WebElement cell = row.getCell(index); cell.click(); By selector = ByJQuery.selector("input"); Graphene.waitModel().until().element(cell, selector).is().present(); WebElement input = cell.findElement(selector); input.clear(); input.sendKeys(text); Graphene.waitGui().until().element(input).attribute("value").contains(text); }
@Test(groups = "Future") @IssueTracking("https://issues.jboss.org/browse/RFPL-12030") public void testDataScrollerWorksAfterCollapseOfPanel() { String valueFromFstRowBeforeCollapse = page.firstTableRow.getText().trim(); page.collapsePanel.click(); page.nextButton.click(); Graphene.waitModel() .until( "The value from the first row of table" + " should be different as the table was navigated to the second page. " + "DataScroller does not work as expected!") .element(page.firstTableRow) .text() .not() .contains(valueFromFstRowBeforeCollapse); }
public void assertSorterIsLoaded() { Graphene.waitModel().until().element(colNameSort).is().visible(); Assert.assertTrue(colNameSort.isDisplayed()); }
public void waitForDisappearance() { By glass = By.cssSelector(".gwt-PopupPanelGlass"); Graphene.waitModel().until().element(glass).is().not().present(); Waits.pause(500); }
public void assertPagerPrevIsLoaded() { Graphene.waitModel().until().element(scrollerPrev).is().visible(); Assert.assertTrue(scrollerPrev.isDisplayed()); }
public void assertPageIsLoaded() { Graphene.waitModel().until().element(petTypes).is().visible(); Assert.assertTrue(petTypes.isDisplayed()); }
public void assertReverseOrder() { Graphene.waitModel().until().element(name5InTable).is().visible(); Assert.assertTrue(name5InTable.getText().compareTo("pet06") == 0); }
public void clickSorter() { Graphene.waitModel().until().element(colNameSort).is().visible(); colNameSort.click(); }
public void assertIsLoaded() { Graphene.waitModel().until().element(addNewOwner).is().visible(); Assert.assertTrue(addNewOwner.isDisplayed()); }