예제 #1
0
 protected void afterAction(GrapheneContext context) {
   Graphene.waitModel(context.getWebDriver())
       .until()
       .element(REQUEST_TIME)
       .text()
       .not()
       .equalTo(time1);
 }
예제 #2
0
  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);
  }
예제 #3
0
  @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);
  }
예제 #4
0
 public void assertSorterIsLoaded() {
   Graphene.waitModel().until().element(colNameSort).is().visible();
   Assert.assertTrue(colNameSort.isDisplayed());
 }
예제 #5
0
 public void waitForDisappearance() {
   By glass = By.cssSelector(".gwt-PopupPanelGlass");
   Graphene.waitModel().until().element(glass).is().not().present();
   Waits.pause(500);
 }
예제 #6
0
 public void assertPagerPrevIsLoaded() {
   Graphene.waitModel().until().element(scrollerPrev).is().visible();
   Assert.assertTrue(scrollerPrev.isDisplayed());
 }
예제 #7
0
 public void assertPageIsLoaded() {
   Graphene.waitModel().until().element(petTypes).is().visible();
   Assert.assertTrue(petTypes.isDisplayed());
 }
예제 #8
0
 public void assertReverseOrder() {
   Graphene.waitModel().until().element(name5InTable).is().visible();
   Assert.assertTrue(name5InTable.getText().compareTo("pet06") == 0);
 }
예제 #9
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());
 }