protected void checkElementIsPresent(ElementBuilder<?> header) { idInput.clear(); idInput.sendKeys("header2"); updateButton.click(); header.is().not().present(); idInput.clear(); idInput.sendKeys("header"); updateButton.click(); header.is().present(); }
protected void checkElementIsPresent(ElementBuilder<?> header) { idInput.clear(); idInput.sendKeys("header2"); updateButton.click(); header.is().not().present(); idInput.clear(); idInput.sendKeys("header"); updateButton.click(); header.is().present(); }
@Test public void testElementIsPresent() { idInput.clear(); idInput.sendKeys("header2"); updateButton.click(); Graphene.waitModel(browser).until().element(header).is().not().present(); idInput.clear(); idInput.sendKeys("header"); updateButton.click(); Graphene.waitModel(browser).until().element(header).is().present(); }
@Test public void testElementIsPresent() { idInput.clear(); idInput.sendKeys("header2"); updateButton.click(); Graphene.waitModel(browser).until().element(header).is().not().present(); idInput.clear(); idInput.sendKeys("header"); updateButton.click(); Graphene.waitModel(browser).until().element(header).is().present(); }
@Test public void testElementIsPresentWithBy() { idInput.clear(); idInput.sendKeys("header2"); updateButton.click(); Graphene.waitModel(browser).until().element(BY_HEADER).is().not().present(); idInput.clear(); idInput.sendKeys("header"); updateButton.click(); Graphene.waitModel(browser).until().element(BY_HEADER).is().present(); }
@Test public void testElementIsPresentWithBy() { idInput.clear(); idInput.sendKeys("header2"); updateButton.click(); Graphene.waitModel(browser).until().element(BY_HEADER).is().not().present(); idInput.clear(); idInput.sendKeys("header"); updateButton.click(); Graphene.waitModel(browser).until().element(BY_HEADER).is().present(); }