Search in sources :

Example 36 with SelenideElement

use of com.codeborne.selenide.SelenideElement 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 37 with SelenideElement

use of com.codeborne.selenide.SelenideElement 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 38 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.

the class ConnectionSteps method checkAllVisibleKebabMenus.

@Then("^she can see unveiled kebab menu of all connections, each of this menu consist of \"(\\w+)\", \"(\\w+)\" and \"(\\w+)\" actions$")
public void checkAllVisibleKebabMenus(String action1, String action2, String action3) {
    List<String> actions = new ArrayList<>(Arrays.asList(action1, action2, action3));
    for (SelenideElement connection : connectionsPage.getAllConnections()) {
        KebabMenu kebabMenu = new KebabMenu(connection.$(By.xpath(".//button")));
        for (String item : actions) {
            kebabMenu.getItemElement(item).shouldBe(visible);
        }
        kebabMenu.close();
    }
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement) ArrayList(java.util.ArrayList) KebabMenu(io.syndesis.qe.fragments.common.menu.KebabMenu) Then(cucumber.api.java.en.Then)

Example 39 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.

the class DashboardSteps method expectConnectionTitleNonPresent.

@Then("^Camilla can not see \"([^\"]*)\" connection on dashboard page anymore$")
public void expectConnectionTitleNonPresent(String connectionName) {
    DashboardPage dashboardPage = new DashboardPage();
    SelenideElement connection = dashboardPage.getConnection(connectionName);
    connection.shouldNotBe(visible);
}
Also used : DashboardPage(io.syndesis.qe.pages.dashboard.DashboardPage) SelenideElement(com.codeborne.selenide.SelenideElement) Then(cucumber.api.java.en.Then)

Example 40 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.

the class DataMapperSteps method fillActionConfigureField.

@Then("^she fills \"([^\"]*)\" selector-input with \"([^\"]*)\" value$")
public void fillActionConfigureField(String selectorAlias, String value) {
    SelenideElement inputElement = mapper.getElementByAlias(selectorAlias).shouldBe(visible);
    mapper.fillInput(inputElement, value);
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement) Then(cucumber.api.java.en.Then)

Aggregations

SelenideElement (com.codeborne.selenide.SelenideElement)91 ElementsCollection (com.codeborne.selenide.ElementsCollection)16 Then (cucumber.api.java.en.Then)13 And (cucumber.api.java.en.And)8 SyndesisRootPage (io.syndesis.qe.pages.SyndesisRootPage)6 ArrayList (java.util.ArrayList)5 When (cucumber.api.java.en.When)4 Test (org.junit.Test)4 QualityGate (org.sonar.wsclient.qualitygate.QualityGate)4 ProjectQualityGatePage (pageobjects.ProjectQualityGatePage)4 Given (cucumber.api.java.en.Given)2 ModalDialogPage (io.syndesis.qe.pages.ModalDialogPage)2 DashboardPage (io.syndesis.qe.pages.dashboard.DashboardPage)2 StepComponent (io.syndesis.qe.pages.integrations.edit.steps.StepComponent)2 List (java.util.List)2 By (org.openqa.selenium.By)2 CollectionCondition.sizeGreaterThanOrEqual (com.codeborne.selenide.CollectionCondition.sizeGreaterThanOrEqual)1 Condition.visible (com.codeborne.selenide.Condition.visible)1 AbstractSelenideTest (com.evolveum.midpoint.testing.selenide.tests.AbstractSelenideTest)1 DataTable (cucumber.api.DataTable)1