Search in sources :

Example 6 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project sonarqube by SonarSource.

the class SettingsPage method setStringValue.

public SettingsPage setStringValue(String settingKey, String value) {
    SelenideElement setting = $(".settings-definition[data-key=\"" + settingKey + "\"]");
    setting.find("input").val(value);
    setting.find(".js-save-changes").click();
    setting.find(".js-save-changes").shouldNot(exist);
    return this;
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Example 7 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project sonarqube by SonarSource.

the class Navigation method logOut.

public Navigation logOut() {
    SelenideElement dropdown = loggedInDropdown();
    // click must be on the <a> but not on the dropdown <li>
    // for compatibility with phantomjs
    dropdown.find(".dropdown-toggle").click();
    dropdown.find(By.linkText("Log out")).click();
    return this;
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Example 8 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project sonarqube by SonarSource.

the class ProjectAnalysisItem method addCustomEvent.

public ProjectAnalysisItem addCustomEvent(String name) {
    elt.find(".js-create").click();
    elt.find(".js-add-event").click();
    SelenideElement modal = $(".modal");
    modal.shouldBe(visible);
    modal.find("input").setValue(name);
    modal.find("button[type=\"submit\"]").click();
    elt.find(".project-activity-event:last-child").shouldHave(text(name));
    return this;
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Example 9 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project sonarqube by SonarSource.

the class ProjectAnalysisItem method delete.

public void delete() {
    elt.find(".js-delete-analysis").click();
    SelenideElement modal = $(".modal");
    modal.shouldBe(visible);
    modal.find("button[type=\"submit\"]").click();
    elt.shouldNotBe(visible);
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Example 10 with SelenideElement

use of com.codeborne.selenide.SelenideElement in project sonarqube by SonarSource.

the class ProjectDashboardPage method getLinesOfCode.

public SelenideElement getLinesOfCode() {
    SelenideElement element = $("#overview-ncloc");
    element.shouldBe(visible);
    return element;
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement)

Aggregations

SelenideElement (com.codeborne.selenide.SelenideElement)91 ElementsCollection (com.codeborne.selenide.ElementsCollection)16 Then (cucumber.api.java.en.Then)13 And (cucumber.api.java.en.And)8 SyndesisRootPage (io.syndesis.qe.pages.SyndesisRootPage)6 ArrayList (java.util.ArrayList)5 When (cucumber.api.java.en.When)4 Test (org.junit.Test)4 QualityGate (org.sonar.wsclient.qualitygate.QualityGate)4 ProjectQualityGatePage (pageobjects.ProjectQualityGatePage)4 Given (cucumber.api.java.en.Given)2 ModalDialogPage (io.syndesis.qe.pages.ModalDialogPage)2 DashboardPage (io.syndesis.qe.pages.dashboard.DashboardPage)2 StepComponent (io.syndesis.qe.pages.integrations.edit.steps.StepComponent)2 List (java.util.List)2 By (org.openqa.selenium.By)2 CollectionCondition.sizeGreaterThanOrEqual (com.codeborne.selenide.CollectionCondition.sizeGreaterThanOrEqual)1 Condition.visible (com.codeborne.selenide.Condition.visible)1 AbstractSelenideTest (com.evolveum.midpoint.testing.selenide.tests.AbstractSelenideTest)1 DataTable (cucumber.api.DataTable)1