public void GetAllValueForClientOne(IWebDriver driver)
 {
     freshStart     = new FreshStartHome(driver);
     commonhelper   = new WebObjectFunctions(driver);
     newEnroll      = new NewEnrollClient(driver);
     myPipeline     = new MyPipeline(driver);
     apiHelper      = new CommonAPIHelper(driver);
     pipelineSearch = new PipelineSearch(driver);
     //secondClientDetails = new Panorama_SecondClientDetails(driver);
     newEnroll.NavigateToFreshStartHome(driver, ConfigurationManager.AppSettings["FreshStartUrl"]);
     newEnroll.EnterLoanNumber(driver, ConfigurationManager.AppSettings["LoanNumber"]);
     newEnroll.NavigateToClientOption(driver);
     newEnroll.SelectFirstClient(driver);
     valueFirstName          = freshStart.FreshStartFirstName_TextBox.GetAttribute("value");
     valueLastName           = freshStart.FreshStartLastName_TextBox.GetAttribute("value");
     valueEmail              = freshStart.FreshStartEmail_TextBox.GetAttribute("value");
     valuePhone              = freshStart.FreshStartPhone_TextBox.GetAttribute("value");
     valueClientOneFirstName = freshStart.FreshStartClientInfoClientOneFirstName_TextBox.GetAttribute("value");
     valueClientOneLastName  = freshStart.FreshStartClientInfoClientOneLastName_TextBox.GetAttribute("value");
     valueClientOnePhone     = freshStart.FreshStartClientInfoClientOneHomePhone_TextBox.GetAttribute("value");
     valueClientOneEmail     = freshStart.FreshStartClientInfoClientOneEmail_TextBox.GetAttribute("value");
     valuePropertyAddress    = freshStart.FreshStartPropertyAddress_TextBox.GetAttribute("value");
     valuePropertyCity       = freshStart.FreshStartPropertyCity_TextBox.GetAttribute("value");
     substringValue          = valuePropertyAddress.Substring(0, 11);
 }
        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 static void Init(TestContext context)
 {
     testContext    = context;
     driver         = Driver.Initialize(testContext.Properties["BrowserChromeName"].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);
     freshStartUrl  = ConfigurationManager.AppSettings["FreshStartUrl"];
     freshStart.NavigateToFreshStartHome(driver, freshStartUrl);
     freshStart.NavigateToMyPipelineHome(driver);
 }
        public void GetAllValueForClientTwo(IWebDriver driver)
        {
            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.NavigateToNewClient(driver, ConfigurationManager.AppSettings["LoanForTwo"]);
            newEnroll.NavigateToClientOption(driver);
            newEnroll.SelectMutipleClient(driver);
            value = freshStart.FreshStartClientInfoClientTwoEmail_TextBox.GetAttribute("value");
            valueClientTwoFirstName = freshStart.FreshStartClientInfoClientTwoFirstName_TextBox.GetAttribute("value");
            valueClientTwoLastName  = freshStart.FreshStartClientInfoClientTwoLastName_TextBox.GetAttribute("value");
        }
 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);
     clientSummarryApi     = new ClientSummaryAutoFill(driver);
     clientSummaryValue    = new ClientSummaryAutoFill(driver);
     clientSummarryApiOne  = new ClientSummaryAutoFill(driver);
     clientSummaryValueOne = new ClientSummaryAutoFill(driver);
     ApiUtilityFunction    = new APIUtilityFunctions(driver);
     clientSummaryValueOne.GetAllValueForClientOne(driver);
     clientSummarryApiOne.GetAllAPIForClientOne(driver);
     clientSummaryValue.GetAllValueForClientTwo(driver);
     clientSummarryApi.GetAllAPIForClientTwo(driver);
 }