Search in sources :

Example 1 with SyndesisRootPage

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);
}
Also used : SyndesisRootPage(io.syndesis.qe.pages.SyndesisRootPage) SelenideElement(com.codeborne.selenide.SelenideElement)

Example 2 with SyndesisRootPage

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);
}
Also used : SyndesisRootPage(io.syndesis.qe.pages.SyndesisRootPage) SelenideElement(com.codeborne.selenide.SelenideElement) Then(cucumber.api.java.en.Then)

Example 3 with SyndesisRootPage

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);
}
Also used : SyndesisRootPage(io.syndesis.qe.pages.SyndesisRootPage) SelenideElement(com.codeborne.selenide.SelenideElement) Then(cucumber.api.java.en.Then)

Example 4 with SyndesisRootPage

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);
}
Also used : SyndesisRootPage(io.syndesis.qe.pages.SyndesisRootPage) SelenideElement(com.codeborne.selenide.SelenideElement) Then(cucumber.api.java.en.Then)

Example 5 with SyndesisRootPage

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);
    }
}
Also used : SyndesisRootPage(io.syndesis.qe.pages.SyndesisRootPage) SelenideElement(com.codeborne.selenide.SelenideElement) Then(cucumber.api.java.en.Then)

Aggregations

SelenideElement (com.codeborne.selenide.SelenideElement)6 SyndesisRootPage (io.syndesis.qe.pages.SyndesisRootPage)6 Then (cucumber.api.java.en.Then)5