use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class ActionConfigureComponentPeriodicSql method fillSQLperiod.
public void fillSQLperiod(String period) {
log.debug("filling sql period: {}", period);
SelenideElement element = $(Element.INPUT_PERIOD).shouldBe(visible);
this.fillInput(element, period);
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class BasicFilterStepComponent method getPathInputOptions.
public List<String> getPathInputOptions() {
SelenideElement pathDataList = this.getRootElement().find(DataList.PATH_LIST);
ElementsCollection options = pathDataList.findAll(Element.OPTION);
List<String> optionsList = new ArrayList<String>();
for (SelenideElement option : options) {
String value = option.getAttribute("value");
optionsList.add(value);
}
return optionsList;
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class BasicFilterStepComponent method validate.
public boolean validate() {
log.info("Validating configure page");
SelenideElement predicateSelect = this.getPredicateSelect();
SelenideElement pathInput = this.getPathInput();
SelenideElement valueInput = this.getValueInput();
SelenideElement opSelect = this.getOpSelect();
boolean isPredicateSelect = predicateSelect.waitWhile(Condition.not(visible), 5 * 1000).is(visible);
boolean isPathInput = pathInput.waitWhile(Condition.not(visible), 5 * 1000).is(visible);
boolean isValueInput = valueInput.waitWhile(Condition.not(visible), 5 * 1000).is(visible);
boolean isOpSelect = opSelect.waitWhile(Condition.not(visible), 5 * 1000).is(visible);
log.info("isPredicateSelect {}, isPathInput {}, isValueInput {}, isOpSelect {}", isPredicateSelect, isPathInput, isValueInput, isOpSelect);
return isPredicateSelect && isPathInput && isValueInput && isOpSelect;
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class BasicFilterStepComponent method setValue.
public void setValue(String value) {
log.info("setting basic filter step value to {}", value);
SelenideElement valueInput = this.getRootElement().find(Input.VALUE);
valueInput.shouldBe(visible).clear();
valueInput.shouldBe(visible).sendKeys(value);
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class BasicFilterStepComponent method setOp.
public void setOp(String op) {
log.info("setting basic filter step op to option number {}", op);
SelenideElement opInput = this.getRootElement().find(Select.OP);
this.selectOption(opInput, op);
}
Aggregations