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;
}
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;
}
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;
}
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);
}
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;
}
Aggregations