public SCHomePage RenameArea(string oldName, string newName) { var areaCard = LST_Areas.First(x => x.FindElement(By.CssSelector("md-card-title-text>span:first-of-type")).Text == oldName); areaCard.FindElement(By.CssSelector("div button")).Click(); Do.Click(BTN_EditArea); Do.ClearAndSendKeys(FLD_TextArea, newName); Driver.WaitElementToDisappear(backdrop); Driver.WaitIsClickable(BTN_TickButton); Do.Click(BTN_TickButton); return(this); }
public SCHomePage RenameArea(int index, string newName) { var areaCard = LST_Areas[index - 1]; areaCard.FindElement(By.CssSelector("div button")).Click(); Do.Click(BTN_EditArea); Do.ClearAndSendKeys(FLD_TextArea, newName); Driver.WaitElementToDisappear(backdrop); Driver.WaitIsClickable(BTN_TickButton); Do.Click(BTN_TickButton); return(this); }
public BasePage EnterIn_SearchField(string text) { Do.ClearAndSendKeys(FLD_Search, text); return(this); }