use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class CommonSteps method checkSqlWarning.
@Then("^she can see alert notification$")
public void checkSqlWarning() throws Throwable {
SelenideElement allertSucces = new SyndesisRootPage().getElementByClassName("alert-warning");
allertSucces.shouldBe(visible);
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class CommonSteps method expectElementPresent.
@Then("^she is presented with the \"([^\"]*)\"$")
public void expectElementPresent(String elementClassName) {
SelenideElement element = new SyndesisRootPage().getElementByClassName(elementClassName);
element.shouldBe(visible);
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class ConnectionSteps method checkAllVisibleKebabMenus.
@Then("^she can see unveiled kebab menu of all connections, each of this menu consist of \"(\\w+)\", \"(\\w+)\" and \"(\\w+)\" actions$")
public void checkAllVisibleKebabMenus(String action1, String action2, String action3) {
List<String> actions = new ArrayList<>(Arrays.asList(action1, action2, action3));
for (SelenideElement connection : connectionsPage.getAllConnections()) {
KebabMenu kebabMenu = new KebabMenu(connection.$(By.xpath(".//button")));
for (String item : actions) {
kebabMenu.getItemElement(item).shouldBe(visible);
}
kebabMenu.close();
}
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class DashboardSteps method expectConnectionTitleNonPresent.
@Then("^Camilla can not see \"([^\"]*)\" connection on dashboard page anymore$")
public void expectConnectionTitleNonPresent(String connectionName) {
DashboardPage dashboardPage = new DashboardPage();
SelenideElement connection = dashboardPage.getConnection(connectionName);
connection.shouldNotBe(visible);
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class DataMapperSteps method fillActionConfigureField.
@Then("^she fills \"([^\"]*)\" selector-input with \"([^\"]*)\" value$")
public void fillActionConfigureField(String selectorAlias, String value) {
SelenideElement inputElement = mapper.getElementByAlias(selectorAlias).shouldBe(visible);
mapper.fillInput(inputElement, value);
}
Aggregations