use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class IntegrationSteps method setFtpUploadData.
@And("^she fills ftp upload form with values$")
public void setFtpUploadData(DataTable sourceMappingData) {
for (Map<String, String> source : sourceMappingData.asMaps(String.class, String.class)) {
for (String field : source.keySet()) {
SelenideElement element = editPage.getFtpUploadComponent().checkAndGetFieldTypeByName(field);
assertThat(element, notNullValue());
editPage.getFtpUploadComponent().setElementValue(source.get(field), element);
}
}
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class IntegrationSteps method setJmsSubscribeData.
@And("^sets jms subscribe inputs source data$")
public void setJmsSubscribeData(DataTable sourceMappingData) {
for (Map<String, String> source : sourceMappingData.asMaps(String.class, String.class)) {
for (String field : source.keySet()) {
SelenideElement element = editPage.getJmsSubscribeComponent().checkAndGetFieldTypeById(field);
assertThat(element, notNullValue());
editPage.getJmsSubscribeComponent().setElementValue(source.get(field), element);
}
}
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class IntegrationSteps method setFtpDownloadData.
@And("^she fills ftp download form with values$")
public void setFtpDownloadData(DataTable sourceMappingData) {
for (Map<String, String> source : sourceMappingData.asMaps(String.class, String.class)) {
for (String field : source.keySet()) {
SelenideElement element = editPage.getFtpDownloadComponent().checkAndGetFieldTypeByName(field);
assertThat(element, notNullValue());
editPage.getFtpDownloadComponent().setElementValue(source.get(field), element);
}
}
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class IntegrationSteps method waitForIntegrationState.
@Then("^she waits until integration \"([^\"]*)\" gets into \"([^\"]*)\" state$")
public void waitForIntegrationState(String integrationName, String integrationStatus) {
SelenideElement integration = listPage.getListComponent().getIntegration(integrationName);
assertTrue(TestUtils.waitForEvent(status -> status.equals(integrationStatus), () -> listPage.getListComponent().getIntegrationItemStatus(integration), TimeUnit.MINUTES, 5, TimeUnit.SECONDS, 1));
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class IntegrationSteps method setOutputDataTypeData.
@And("^she fills specify output data type form with values$")
public void setOutputDataTypeData(DataTable sourceMappingData) {
for (Map<String, String> source : sourceMappingData.asMaps(String.class, String.class)) {
for (String field : source.keySet()) {
SelenideElement element = editPage.getFtpDatatypeComponent().checkAndGetFieldTypeByName(field);
assertThat(element, notNullValue());
editPage.getFtpDatatypeComponent().setElementValue(source.get(field), element);
}
}
}
Aggregations