public static bool VerifyAllButtons(AutomationAgent agent, out string message) { message = string.Empty; bool status = true; if (!agent.IsElementFound(DashboardPage.MakePaymentBtnLabel)) { message = DashboardPage.MakePaymentBtnLabel.ControlName + " Does not exist \n"; status = false; } if (!agent.IsElementFound(DashboardPage.MortgageRequestBtnLabel)) { message = DashboardPage.MortgageRequestBtnLabel.ControlName + " Does not exist \n"; status = false; } if (!agent.IsElementFound(DashboardPage.ExpenseReportBtnLabel)) { message = DashboardPage.ExpenseReportBtnLabel.ControlName + " Does not exist \n"; status = false; } if (!agent.IsElementFound(DashboardPage.LogoutBtnLabel)) { message = DashboardPage.LogoutBtnLabel.ControlName + " Does not exist \n"; status = false; } return status; }
public static bool VerifyAllDefaultControls(AutomationAgent agent, out string message) { message = string.Empty; bool status = true; foreach(Control control in DashboardPage.DefaultControls) { if (!agent.IsElementFound(control)) { message = control.ControlName + " Does not exist \n"; status = false; } } return status; }
public static bool VerifyLogo(AutomationAgent agent) { return agent.IsElementFound(DashboardPage.EriBankLogo); }