@Override public void perform() { Graphene.waitGui().until().element(advanced().getItemsElements().get(0)).attribute("class").not().contains("rf-ord-sel"); } }).perform();
public void previousDecade() { String firstBefore = getFirstYear().getText(); getPreviousDecadeButtonElement().click(); Graphene.waitGui().withMessage("Waiting for decade to change.").until().element(getFirstYear()).text().not().equalTo(firstBefore); }
@Test public void testElementTextEqualsIgnoreCase() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(header).text().equalToIgnoreCase("FLORENCE aNd THE machIne"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(header).text().not().equalToIgnoreCase("FLORENCE aNd THE machIne"); }
@Test public void testElementTextMatches() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(header).text().matches("[fF]lorenc. and (the)? [mM]a.hine"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(header).text().not().matches("[fF]lorenc. and (the)? [mM]a.hine"); }
@Test public void testElementTextEqualsIgnoreCaseWithBy() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().equalToIgnoreCase("FLORENCE aNd THE machIne"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().not().equalToIgnoreCase("FLORENCE aNd THE machIne"); }
@Test public void testElementTextMatchesWithBy() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().matches("[fF]lorenc. and (the)? [mM]a.hine"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().not().matches("[fF]lorenc. and (the)? [mM]a.hine"); } }
public void nextDecade() { String firstBefore = getFirstYear().getText(); getNextDecadeButtonElement().click(); Graphene.waitGui().withMessage("Waiting for decade to change.").until().element(getFirstYear()).text().not().equalTo(firstBefore); }
protected void checkAttributeValueContains(AttributeBuilder<?> textInputValue) { textInput.clear(); textInputValue.not().contains("Tested"); textInput.sendKeys("Tested Header"); textInputValue.contains("Tested"); }
@Test public void testElementTextEqualsIgnoreCaseWithBy() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().equalToIgnoreCase("FLORENCE aNd THE machIne"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().not().equalToIgnoreCase("FLORENCE aNd THE machIne"); }
@Test public void testElementTextMatchesWithBy() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().matches("[fF]lorenc. and (the)? [mM]a.hine"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().not().matches("[fF]lorenc. and (the)? [mM]a.hine"); } }
protected void checkAttributeValueEquals(AttributeBuilder<?> textInputValue) { textInput.clear(); textInput.sendKeys("Tested"); textInputValue.not().equalTo("Tested Header"); textInput.sendKeys(" Header"); textInputValue.equalTo("Tested Header"); }
protected void checkElementTextContains(ElementBuilder<?> header) { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); header.text().contains("machine"); textInput.clear(); textInput.sendKeys("Tested Header"); updateButton.click(); header.text().not().contains("machine"); }
@Test public void testElementTextEqualsIgnoreCase() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(header).text().equalToIgnoreCase("FLORENCE aNd THE machIne"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(header).text().not().equalToIgnoreCase("FLORENCE aNd THE machIne"); }
@Test public void testElementTextMatches() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(header).text().matches("[fF]lorenc. and (the)? [mM]a.hine"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(header).text().not().matches("[fF]lorenc. and (the)? [mM]a.hine"); }
protected void checkAttributeValueEquals(AttributeBuilder<?> textInputValue) { textInput.clear(); textInput.sendKeys("Tested"); textInputValue.not().equalTo("Tested Header"); textInput.sendKeys(" Header"); textInputValue.equalTo("Tested Header"); }
protected void checkAttributeValueContains(AttributeBuilder<?> textInputValue) { textInput.clear(); textInputValue.not().contains("Tested"); textInput.sendKeys("Tested Header"); textInputValue.contains("Tested"); }
@Test public void testAttributeValueEqualsIgnoreCase() { textInput.clear(); textInput.sendKeys("Tested"); Graphene.waitModel().until().element(textInput).value().not().equalToIgnoreCase("tEsTeD HEADER"); textInput.sendKeys(" Header"); Graphene.waitModel().until().element(textInput).value().equalToIgnoreCase("tEsTeD HEADER"); }
@Test public void testAttributeValueMatches() { textInput.clear(); textInput.sendKeys("Tested"); Graphene.waitModel().until().element(textInput).value().not().matches("[tT]este. [hH]ea.er"); textInput.sendKeys(" Header"); Graphene.waitModel().until().element(textInput).value().matches("[tT]este. [hH]ea.er"); }
public void nextMonth() { if (!isVisible() || !getNextMonthElement().isDisplayed()) { throw new RuntimeException("Cannot interact with nextMonth button. " + "Ensure that calendar popup and header controls are displayed."); } String before = getYearAndMonthEditorOpenerElement().getText(); getNextMonthElement().click(); Graphene.waitAjax().withMessage("Waiting for month to change.").until().element(getYearAndMonthEditorOpenerElement()).text().not().equalTo(before); }
protected void checkElementTextContains(ElementBuilder<?> header) { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); header.text().contains("machine"); textInput.clear(); textInput.sendKeys("Tested Header"); updateButton.click(); header.text().not().contains("machine"); }