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;
}
}
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);
}
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;
}
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();
}
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);
}
Aggregations