Search in sources :

Example 56 with SelenideElement

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

the class TechExtensionsListComponent method isExtensionPresent.

public boolean isExtensionPresent(String name) {
    log.info("Checking if extension {} is present in the list", name);
    SelenideElement extension = this.getExtensionItem(name);
    if (extension != null) {
        return extension.is(visible);
    } else {
        return false;
    }
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Example 57 with SelenideElement

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

the class IntegrationActivityListComponent method clickButtonOfActivityStep.

public void clickButtonOfActivityStep(String buttonName, String stepName) {
    ElementsCollection activitySteps = $(Element.ROOT).find(Element.ACTIVITY_STEPS).shouldBe(visible).findAll(Element.ACTIVITY_STEP).shouldBe(sizeGreaterThan(0));
    SelenideElement step = activitySteps.stream().filter(el -> checkStepName(el, stepName)).findFirst().get();
    this.clickButtonInStep(step, buttonName);
}
Also used : ElementsCollection(com.codeborne.selenide.ElementsCollection) SelenideElement(com.codeborne.selenide.SelenideElement)

Example 58 with SelenideElement

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

the class IntegrationFlowViewComponent method getConnectionPropertiesText.

public String getConnectionPropertiesText(SelenideElement connectionStep) {
    SelenideElement infoIcon = connectionStep.$(Element.CONNECTION_INFO_CLASS).shouldBe(visible);
    // open popup
    infoIcon.click();
    String text = getPopoverText();
    // hide popup
    infoIcon.click();
    return text;
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Example 59 with SelenideElement

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

the class IntegrationFlowViewComponent method clickAddConnectionLink.

public void clickAddConnectionLink(int pos) {
    List<SelenideElement> allStepInserts = getRootElement().$$(Element.STEP_INSERT).shouldHave(sizeGreaterThanOrEqual(pos));
    SelenideElement stepElement = allStepInserts.get(pos);
    stepElement.hover();
    getRootElement().$(Link.ADD_CONNECTION).shouldBe(visible).click();
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Example 60 with SelenideElement

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

the class ActionConfigureComponentPeriodicSql method selectSQLperiodUnits.

public void selectSQLperiodUnits(String timeUnits) {
    log.debug("selecting sql period units: {}", timeUnits);
    SelenideElement selectElement = $(Element.SELECT_PERIOD).shouldBe(visible);
    selectElement.selectOption(timeUnits);
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

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