use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class CommonSteps method expectElementsPresent.
@Then("^she is presented with the \"([^\"]*)\" elements$")
public void expectElementsPresent(String elementClassNames) {
String[] elementClassNamesArray = elementClassNames.split(",");
for (String elementClassName : elementClassNamesArray) {
SelenideElement element = new SyndesisRootPage().getElementByClassName(elementClassName);
element.shouldBe(visible);
}
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class CommonSteps method selectsFromDropdown.
@And("^she selects \"([^\"]*)\" from \"([^\"]*)\" dropdown$")
public void selectsFromDropdown(String option, String selectId) throws Throwable {
SelenideElement selectElement = $(String.format("select[name=\"%s\"]", selectId)).shouldBe(visible);
selectElement.selectOption(option);
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class CommonSteps method successNotificationIsPresent.
@Then("^she can see success notification$")
public void successNotificationIsPresent() {
SelenideElement allertSucces = new SyndesisRootPage().getElementByClassName("alert-success");
allertSucces.shouldBe(visible);
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class CommonSteps method navigateTo.
@When("^\"([^\"]*)\" navigates? to the \"([^\"]*)\" page$")
public void navigateTo(String username, String title) {
SelenideElement selenideElement = $(By.className("nav-pf-vertical")).shouldBe(visible);
ElementsCollection allLinks = selenideElement.findAll(By.className("list-group-item-value"));
allLinks.find(Condition.exactText(title)).shouldBe(visible).click();
}
use of com.codeborne.selenide.SelenideElement in project syndesis-qe by syndesisio.
the class ConnectionSteps method helpBlockVisible.
@Then("^she is presented with help block with text \"([^\"]*)\"$")
public void helpBlockVisible(String helpText) {
SelenideElement helpBlock = $(By.className("help-block"));
helpBlock.shouldBe(visible);
Assertions.assertThat(helpBlock.getText().equals(helpText)).isTrue();
}
Aggregations