use of io.syndesis.qe.pages.SyndesisRootPage in project syndesis-qe by syndesisio.
the class CommonSteps method expectTableTitlePresent.
public void expectTableTitlePresent(String tableTitle) {
SelenideElement table = new SyndesisRootPage().getTitleByText(tableTitle);
table.shouldBe(visible);
}
use of io.syndesis.qe.pages.SyndesisRootPage in project syndesis-qe by syndesisio.
the class CommonSteps method successNotificationIsPresentWithError.
@Then("^she can see \"([^\"]*)\" in alert-success notification$")
public void successNotificationIsPresentWithError(String textMessage) {
SelenideElement allertSucces = new SyndesisRootPage().getElementByClassName("alert-success");
allertSucces.shouldBe(visible);
Assertions.assertThat(allertSucces.getText().equals(textMessage)).isTrue();
log.info("Text message {} was found.", textMessage);
}
use of io.syndesis.qe.pages.SyndesisRootPage in project syndesis-qe by syndesisio.
the class CommonSteps method checkSqlWarning.
@Then("^she can see alert notification$")
public void checkSqlWarning() throws Throwable {
SelenideElement allertSucces = new SyndesisRootPage().getElementByClassName("alert-warning");
allertSucces.shouldBe(visible);
}
use of io.syndesis.qe.pages.SyndesisRootPage in project syndesis-qe by syndesisio.
the class CommonSteps method expectElementPresent.
@Then("^she is presented with the \"([^\"]*)\"$")
public void expectElementPresent(String elementClassName) {
SelenideElement element = new SyndesisRootPage().getElementByClassName(elementClassName);
element.shouldBe(visible);
}
use of io.syndesis.qe.pages.SyndesisRootPage in project syndesis-qe by syndesisio.
the class CommonSteps method expectElementsPresent.
@Then("^she is presented with the \"([^\"]*)\" elements$")
public void expectElementsPresent(String elementClassNames) {
String[] elementClassNamesArray = elementClassNames.split(",");
for (String elementClassName : elementClassNamesArray) {
SelenideElement element = new SyndesisRootPage().getElementByClassName(elementClassName);
element.shouldBe(visible);
}
}
Aggregations