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 void OpenArea(string areaName) { LST_Areas.First(x => x.FindElement(By.CssSelector("md-card-title span:first-of-type")).Text == areaName).Click(); Driver.WaitElementToExists(IconHome); }