protected void checkElementTextEquals(ElementBuilder<?> header) { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); header.text().equalTo("florence and the machine"); textInput.sendKeys("Tested Header"); updateButton.click(); header.text().not().equalTo("florence and the machine"); }
@Override public void perform() { Graphene.waitGui().until().element(item).attribute("class").contains(OrderingListInPickList.SELECTED_ITEM_CLASS); } })
@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"); }
protected void checkElementTextEquals(ElementBuilder<?> header) { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); header.text().equalTo("florence and the machine"); textInput.sendKeys("Tested Header"); updateButton.click(); header.text().not().equalTo("florence and the machine"); }
@Override public void perform() { Graphene.waitGui().until().element(advanced().getItemsElements().get(0)).attribute("class").not().contains("rf-ord-sel"); } }).perform();
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"); }
@Override public void selectAllRowsWithKeyShortcut() { advanced().getTableBodyElement().sendKeys(Keys.chord(Keys.CONTROL, "a")); if (advanced().getTableRowsElements().size() >= 1) { Graphene.waitAjax().until().element(advanced().getTableRowsElements().get(0)).attribute("class") .contains(advanced().getStyleClassForSelectedRow()); Graphene.waitAjax().until() .element(advanced().getTableRowsElements().get(advanced().getTableRowsElements().size() - 1)) .attribute("class").contains(advanced().getStyleClassForSelectedRow()); } }
@Override protected void performWait(FluentWait<WebDriver, Void> wait) { wait.until().element(getMenuPopup()).is().visible(); } }.withMessage("The " + getNameOfFragment() + " did not show in the given timeout!")
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"); }
@Override public void perform() { Graphene.waitGui().until().element(getRootElement()).attribute("class").contains(getStyleClassForSelectedItem()); } })
@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"); }
@Override protected void performWait(FluentWait<WebDriver, Void> wait) { wait.until().element(getRootElement()).is().visible(); } }.withMessage("Waiting for day picker to be visible.");
public void previousDecade() { String firstBefore = getFirstYear().getText(); getPreviousDecadeButtonElement().click(); Graphene.waitGui().withMessage("Waiting for decade to change.").until().element(getFirstYear()).text().not().equalTo(firstBefore); }
@Override public void perform() { Graphene.waitGui().until().element(getRootElement()).attribute("class").contains(getStyleClassForSelectedItem()); } })