public void closeThread(String reason) { clickOnMoreButton(); clickOnCloseThreadButton(); wait.forElementVisible(closeThreadTextarea); closeThreadTextarea.sendKeys(reason); wait.forElementVisible(removeThreadModalRemoveButton); wait.forElementClickable(removeThreadModalRemoveButton); scrollAndClick(removeThreadModalRemoveButton); PageObjectLogging.log( "closeThread", "closed thread with the following reason: " + reason, true, driver); }
public void moveThread(String forumBoardName) { clickOnMoreButton(); clickOnMoveThreadButton(); wait.forElementVisible(moveThreadModalSelectElement); Select dropList = new Select(moveThreadModalSelectElement); dropList.selectByVisibleText(forumBoardName); wait.forElementClickable(moveThreadModalMoveThreadButton); scrollAndClick(moveThreadModalMoveThreadButton); PageObjectLogging.log( "moveThread", "thread moved to the following board: " + forumBoardName, true, driver); }
public void reopenThread() { clickOnMoreButton(); clickOnReopenThreadButton(); PageObjectLogging.log("reopenThread", "reopened thread", true, driver); }