Search in sources :

Example 91 with SelenideElement

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

the class IntegrationSteps method setJmsPublishData.

@And("^sets jms publish inputs source data$")
public void setJmsPublishData(DataTable sourceMappingData) {
    for (Map<String, String> source : sourceMappingData.asMaps(String.class, String.class)) {
        for (String field : source.keySet()) {
            SelenideElement element = editPage.getJmsPublishComponent().checkAndGetFieldTypeById(field);
            assertThat(element, notNullValue());
            editPage.getJmsPublishComponent().setElementValue(source.get(field), element);
        }
    }
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement) And(cucumber.api.java.en.And)

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