public bool CompareHints(Hint H1, Hint H2) { H1.WriteToConsole(); H2.WriteToConsole(); return H1.id == H2.id && H1.subject == H2.subject && H1.message == H2.message; }
public void Hints_Employees(Hint hint) { //Переход на страницу Сотрудники //не требуется для админа // app.hintHelper.moveToHint("Employees.MoreFilters"); Hint testHint = app.hintHelper.getHint("Employees.MoreFilters"); //Проверка соответствия двух отпусков. Assert.IsTrue(app.hintHelper.CompareHints(hint, testHint)); }
public Hint getHint(string id) { Hint testHint = new Hint(); testHint.id = getUneditableText(pageManager.driver.FindElement(By.XPath("//*[@common-tip-point = '" + id + "']"))); testHint.subject = getUneditableText(pageManager.driver.FindElement(By.XPath("//*[@common-tip-point = '" + id + "']"))); testHint.message = getUneditableText(pageManager.driver.FindElement(By.XPath("//*[@common-tip-point = '" + id + "']"))); return testHint; }