public static void Init(TestContext context) { testContext = context; driver = Driver.Initialize(testContext.Properties["BrowserIEName"].ToString()); freshStart = new FreshStartHome(driver); commonhelper = new WebObjectFunctions(driver); newEnroll = new NewEnrollClient(driver); myPipeline = new MyPipeline(driver); apiHelper = new CommonAPIHelper(driver); pipelineSearch = new PipelineSearch(driver); string freshStartUrl = ConfigurationManager.AppSettings["FreshStartUrl"]; newEnroll.NavigateToFreshStartHome(driver, freshStartUrl); Assert.IsTrue(commonhelper.ValidatateWebElementDisplayed(newEnroll.newEnroll_Subheading)); Assert.IsTrue(commonhelper.ValidatateWebElementTextDisplayed(newEnroll.newEnroll_Subheading, ConfigurationManager.AppSettings["NewEnrollText"])); Assert.IsTrue(commonhelper.ValidatateWebElementDisplayed(newEnroll.newEnrollLoanNumber_Label)); Assert.IsTrue(commonhelper.ValidatateWebElementTextDisplayed(newEnroll.newEnrollLoanNumber_Label, ConfigurationManager.AppSettings["LoanNumberText"])); Assert.IsTrue(commonhelper.ValidatateWebElementDisplayed(newEnroll.newEnrollLoanNumber_TextBox)); Assert.IsTrue(commonhelper.ValidatateWebElementAttributeCheck(newEnroll.newEnrollLoanNumber_TextBox, ConfigurationManager.AppSettings["MaxLengthTenText"])); Assert.IsTrue(commonhelper.ValidatateWebElementAttributeCheck(newEnroll.newEnrollLoanNumber_TextBox, ConfigurationManager.AppSettings["NgPatternText"])); Assert.IsTrue(commonhelper.ValidatateWebElementAttributeCheck(newEnroll.newEnrollEntroll_Button, ConfigurationManager.AppSettings["DisabledText"])); newEnroll.EnterLoanNumber(driver, ConfigurationManager.AppSettings["LoanNumber"]); Assert.IsTrue(commonhelper.ValidatateWebRemovedElementAttributeCheck(newEnroll.newEnrollEntroll_Button, ConfigurationManager.AppSettings["DisabledText"])); newEnroll.NavigateToClientOption(driver); newEnroll.SelectFirstClient(driver); }
public void GivenLoggingInAsDMBAndLoadingPipelineManager_WhenVerifyShowNumberOfEntries_ThenItReturnsTrueItsExsistance() { AdminLoginPage login = new AdminLoginPage(driver); login.LoadLOLAHomePage(driver, testContext.Properties["LOLAUrl"].ToString()); DashBoardPipeLineManager dashBoardPipeLineManager = new DashBoardPipeLineManager(driver); Loan loan = new Loan(driver); login.LOLALogin(driver, testContext.Properties["BankerUserName"].ToString(), testContext.Properties["BankerPassword"].ToString()); dashBoardPipeLineManager.NavigateToPipeLineManager(driver); WebObjectFunctions Handler = new WebObjectFunctions(); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardShow_Label, "Show")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardEntries_Label, "Entries")); Assert.IsTrue(Handler.ValidatateWebElementDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardEntries_Label)); }
public void GivenLoggingInAsDMBAndLoadingPipelineManager_WhenTableHeaders_ThenItReturnsTrueForItsExsistance() { AdminLoginPage login = new AdminLoginPage(driver); login.LoadLOLAHomePage(driver, testContext.Properties["LOLAUrl"].ToString()); DashBoardPipeLineManager dashBoardPipeLineManager = new DashBoardPipeLineManager(driver); Loan loan = new Loan(driver); login.LOLALogin(driver, testContext.Properties["BankerUserName"].ToString(), testContext.Properties["BankerPassword"].ToString()); dashBoardPipeLineManager.NavigateToPipeLineManager(driver); WebObjectFunctions Handler = new WebObjectFunctions(); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderLoan_Label, "Loan#")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderBanker_Label, "Banker")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderLeadSource_Label, "Lead Source")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderLeadStatus_Label, "Lead Status")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderName_Label, "Name")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderCredit_Label, "Credit")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderState_Label, "State label")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderTZ_Label, "TZ")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderAge_Label, "Age")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderLTV_Label, "LTV")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderLTV_Label, "Purpose")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderLTV_Label, "Loan Amount")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderLTV_Label, "Loan Program")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderLastATC_Label, "Last ATC")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderLTV_Label, "Next Appointment")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderNotes_Label, "Notes")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderHot_Label, "Hot")); Assert.IsTrue(Handler.ValidatateWebElementTextDisplayed(dashBoardPipeLineManager.LOLAClientClientProfilePipeLineManagerDashBoardHeaderMarketingHotReason_Label, "Marketing Hot Reason")); }