public void autocomplete(String text) { this.form.findElement(By.id("autocomplete")).sendKeys(text); }
public void editFeedbackResponseCommentInOpenedCommentModal(String commentIdSuffix, String newCommentText) { WebElement commentRow = browser.driver.findElement(By.id("responseCommentRow" + commentIdSuffix)); click(commentRow.findElements(By.tagName("a")).get(1)); WebElement commentEditForm = browser.driver.findElement(By.id("responseCommentEditForm" + commentIdSuffix)); fillRichTextEditor("responsecommenttext" + commentIdSuffix, newCommentText); click(commentEditForm.findElement(By.className("col-sm-offset-5")).findElement(By.tagName("a"))); ThreadHelper.waitFor(1000); }
public void packaging(String text) { this.form.findElement(By.id("packaging")).sendKeys(text); }
public void editFeedbackResponseComment(String commentIdSuffix, String newCommentText) { WebElement commentRow = waitForElementPresence(By.id("responseCommentRow" + commentIdSuffix)); click(commentRow.findElements(By.tagName("a")).get(1)); WebElement commentEditForm = browser.driver.findElement(By.id("responseCommentEditForm" + commentIdSuffix)); fillRichTextEditor("responsecommenttext" + commentIdSuffix, newCommentText); click(commentEditForm.findElement(By.className("col-sm-offset-5")).findElement(By.tagName("a"))); ThreadHelper.waitFor(1000); }
public void language(String text) { this.form.findElement(By.id("language")).sendKeys(text); }
public void type(String text) { this.form.findElement(By.id("type")).sendKeys(text); }
public void bootVersion(String text) { this.form.findElement(By.id("bootVersion")).sendKeys(text); this.form.click(); }
public void description(String text) { this.form.findElement(By.id("description")).clear(); this.form.findElement(By.id("description")).sendKeys(text); }
public void groupId(String text) { this.form.findElement(By.id("groupId")).clear(); this.form.findElement(By.id("groupId")).sendKeys(text); }
public void packageName(String text) { this.form.findElement(By.id("packageName")).clear(); this.form.findElement(By.id("packageName")).sendKeys(text); }
public void artifactId(String text) { this.form.findElement(By.id("artifactId")).clear(); this.form.findElement(By.id("artifactId")).sendKeys(text); }
public void name(String text) { this.form.findElement(By.id("name")).clear(); this.form.findElement(By.id("name")).sendKeys(text); }
public void advanced() { this.form.findElement(By.cssSelector(".tofullversion")) .findElement(By.tagName("a")).click(); }
public Object value(String id) { return getInputValue(this.form.findElement(By.id(id))); }
public void simple() { this.form.findElement(By.cssSelector(".tosimpleversion")).click(); }
public HomePage submit() { String url = this.driver.getCurrentUrl(); this.form.findElement(By.name("generate-project")).click(); assertThat(this.driver.getCurrentUrl()).isEqualTo(url); return this; }
public void clickRemoveRankOptionLink(int qnIndex, int optionIndex) { String idSuffix = getIdSuffix(qnIndex); WebElement msqOptionRow = browser.driver.findElement(By.id("rankOptionRow-" + optionIndex + idSuffix)); WebElement removeOptionLink = msqOptionRow.findElement(By.id("rankRemoveOptionLink")); click(removeOptionLink); }
public void enableOtherFeedbackPathOptions(int qnNumber) { WebElement questionTable = browser.driver.findElement(By.id("questionTable-" + qnNumber)); WebElement dropdownButton = questionTable.findElement(By.cssSelector(".feedback-path-dropdown > button")); WebElement otherOption = questionTable.findElement( By.className("feedback-path-dropdown-option-other")); click(dropdownButton); click(otherOption); }
private WebElement getSessionLinkInRow(String elementClassNamePrefix, int rowId) { waitForElementPresence(By.id("session" + rowId)); waitForElementPresence(By.className(elementClassNamePrefix)); return browser.driver.findElement(By.id("session" + rowId)).findElement(By.className(elementClassNamePrefix)); }
private WebElement getCourseLinkInRow(String elementClassNamePrefix, int rowId) { waitForElementPresence(By.id("course-" + rowId)); waitForElementPresence(By.className(elementClassNamePrefix)); return browser.driver.findElement(By.id("course-" + rowId)).findElement(By.className(elementClassNamePrefix)); }