/// <summary>
 /// Desc:Method is used to Verify the transaction code is visible on the successful page.
 /// </summary>
 public void VerifyTheTransectionCodeVisible()
 {
     try
     {
         lst_detail = new List <string>();
         threadWait(3000);
         status = AssertIsTrue(GeneralDonation_Locator.lbl_TransactionCode);
         MethodToAddDataInList("Verify the TransectionCode is visible-" + status);
         status = ClickOnElementWhenElementFound(GeneralDonation_Locator.btn_PaymentStatus_Continue);
         MethodToAddDataInList("Click on continue button-" + status);
         ReportReader.AfterTest(System.Reflection.MethodBase.GetCurrentMethod().Name, lst_detail);
     }
     catch (Exception e)
     {
         ReportFailure(e.Message, System.Reflection.MethodBase.GetCurrentMethod().Name);
     }
 }
 /// <summary>
 /// Desc:Method used for fill Tribute Details
 /// </summary>
 /// <param name="datarow"></param>
 public void fillTributeDetails(DataRow datarow)
 {
     try
     {
         lst_detail = new List <string>();
         status     = SendKeysForElement(InHonourDonation_Locator.HonourFirstName, datarow["honourfirstname"].ToString());
         MethodToAddDataInList("Enter honourfirstname-" + status);
         status = SendKeysForElement(InHonourDonation_Locator.HonourLastName, datarow["honourlastname"].ToString());
         MethodToAddDataInList("Enter honourlastname-" + status);
         status = ClickOnElementWhenElementFound(InHonourDonation_Locator.eCardType);
         MethodToAddDataInList("Click on eCardType-" + status);
         status = ClickOnElementWhenElementFound(InHonourDonation_Locator.ContinueCardType);
         MethodToAddDataInList("Click on ContinueCardType-" + status);
         ReportReader.AfterTest(System.Reflection.MethodBase.GetCurrentMethod().Name, lst_detail);
     }
     catch (Exception e)
     {
         ReportFailure("TestFailure", System.Reflection.MethodBase.GetCurrentMethod().Name);
     }
 }
        public DonatePage ClickDonateButton()
        {
            DonatePage donatePage = null;

            try
            {
                lst_detail = new List <string>();
                EnumClasses.LogStatus status = ClickOnElementWhenElementFound(GeneralDonation_Locator.DonateButton);
                MethodToAddDataInList("Click on DonateButton-" + status);
                donatePage = new DonatePage(driver);
                PageFactory.InitElements(driver, donatePage);
                ReportReader.AfterTest(System.Reflection.MethodBase.GetCurrentMethod().Name, lst_detail);
                return(donatePage);
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message);
                return(donatePage);
            }
        }
 /// <summary>
 /// Desc:Method is used to verify all the filled fields and click on payment process button
 /// </summary>
 public void VerifyTheFieldsAndClickonPaymentProcess(DataRow dataRow)
 {
     try
     {
         lst_detail = new List <string>();
         string name = dataRow["title"].ToString() + ' ' + dataRow["ufirstname"].ToString() + ' ' + dataRow["umiddlename"].ToString() + ' ' + dataRow["ulastname"].ToString();
         status = AssertAreEqual((GeneralDonation_Locator.lbl_ctl00_content_ucDonationReview_ucProfile_lblName), name);
         MethodToAddDataInList("Verify the updated name-" + status);
         status = AssertAreEqual((GeneralDonation_Locator.lbl_ctl00_content_ucDonationReview_ucPayment_ucCardPayment_lblCardHolder), dataRow["ucardholdername"].ToString());
         MethodToAddDataInList("Verify the updated cardholdername-" + status);
         status = AssertAreEqual((GeneralDonation_Locator.lbl_ctl00_content_ucDonationReview_ucPayment_ucCardPayment_lblExpirationMonth), dataRow["expmonth"].ToString());
         MethodToAddDataInList("Verify the updated expmonth-" + status);
         status = AssertAreEqual((GeneralDonation_Locator.lbl_ctl00_content_ucDonationReview_ucPayment_ucCardPayment_lblExpirationYear), dataRow["expyear"].ToString());
         MethodToAddDataInList("Verify the updated expyear-" + status);
         status = ClickOnElementWhenElementFound(GeneralDonation_Locator.btn_ProcessPaymentNow);
         MethodToAddDataInList("Click on Process Payment button-" + status);
         ReportReader.AfterTest(System.Reflection.MethodBase.GetCurrentMethod().Name, lst_detail);
     }
     catch (Exception e)
     {
         ReportFailure(e.Message, System.Reflection.MethodBase.GetCurrentMethod().Name);
     }
 }
 /// <summary>
 /// Desc:Method is used to update some fileds and then click on continue button
 /// </summary>
 public void UpdateSomeFieldsAndContinue(DataRow dataRow)
 {
     try
     {
         lst_detail = new List <string>();
         status     = SendKeysForWebElement(GeneralDonation_Locator.txt_FirstName, dataRow["ufirstname"].ToString());
         MethodToAddDataInList("Enter the updated first name-" + status);
         status = SendKeysForWebElement(GeneralDonation_Locator.txt_MiddleName, dataRow["umiddlename"].ToString());
         MethodToAddDataInList("Enter the updated middle name-" + status);
         status = SendKeysForWebElement(GeneralDonation_Locator.txt_LastName, dataRow["ulastname"].ToString());
         MethodToAddDataInList("Enter the updated last name-" + status);
         status = SendKeysForWebElement(GeneralDonation_Locator.txt_EmailId, dataRow["uemailid"].ToString());
         MethodToAddDataInList("Enter the updated emailid-" + status);
         status = SendKeysForWebElement(GeneralDonation_Locator.txt_ConfirmEmailId, dataRow["uconfirmemailid"].ToString());
         MethodToAddDataInList("Enter the updated confirmemailid-" + status);
         explicitWait(GeneralDonation_Locator.txt_CreditCardNumber, 1000);
         status = SendKeysForWebElement(GeneralDonation_Locator.txt_CreditCardNumber, dataRow["creditcardnumber"].ToString());
         MethodToAddDataInList("Enter the creditcardnumber-" + status);
         explicitWait(GeneralDonation_Locator.txt_CardHolderName, 2000);
         status = SendKeysForWebElement(GeneralDonation_Locator.txt_CardHolderName, dataRow["ucardholdername"].ToString());
         MethodToAddDataInList("Enter the updated card holder name-" + status);
         explicitWait(GeneralDonation_Locator.ddl_ExpMonth, 2000);
         status = ClickOnElementWhenElementFound(GeneralDonation_Locator.ddl_ExpMonth);
         MethodToAddDataInList("Click on expmonth dropdown-" + status);
         selectValueFromDropdown(GeneralDonation_Locator.ddl_ExpMonth, dataRow["expmonth"].ToString());
         status = ClickOnElementWhenElementFound(GeneralDonation_Locator.ddl_ExpYear);
         selectValueFromDropdown(GeneralDonation_Locator.ddl_ExpYear, dataRow["expyear"].ToString());
         MethodToAddDataInList("Click on expyear dropdown-" + status);
         status = ClickOnElementWhenElementFound(GeneralDonation_Locator.btn_Main_Continue);
         MethodToAddDataInList("Click on continue button-" + status);
         ReportReader.AfterTest(System.Reflection.MethodBase.GetCurrentMethod().Name, lst_detail);
     }
     catch (Exception e)
     {
         ReportFailure(e.Message, System.Reflection.MethodBase.GetCurrentMethod().Name);
     }
 }
 /// <summary>
 /// Desc:Method used for verify In Honour Data
 /// </summary>
 /// <param name="datarow"></param>
 public void verifyInHonourData(DataRow dataRow)
 {
     try
     {
         if (dataRow != null)
         {
             lst_detail = new List <string>();
             status     = AssertAreEqual((InHonourDonation_Locator.FundAllocationText), dataRow["fundallocation"].ToString());
             MethodToAddDataInList("Verify the fundallocation-" + status);
             status = AssertAreEqual((InHonourDonation_Locator.CountryText), dataRow["country"].ToString());
             MethodToAddDataInList("Verify the country-" + status);
             status = AssertAreEqual((InHonourDonation_Locator.StateText), dataRow["state"].ToString());
             MethodToAddDataInList("Verify the state-" + status);
             status = AssertAreEqual((InHonourDonation_Locator.EmailText), dataRow["emailid"].ToString());
             MethodToAddDataInList("Verify the email-" + status);
             status = AssertAreEqual((InHonourDonation_Locator.CityText), dataRow["city"].ToString());
             MethodToAddDataInList("Verify the city-" + status);
             status = AssertAreEqual((InHonourDonation_Locator.Address1Text), dataRow["address1"].ToString());
             MethodToAddDataInList("Verify the address-" + status);
             status = AssertAreEqual((InHonourDonation_Locator.PostalText), dataRow["postal"].ToString());
             MethodToAddDataInList("Verify the postal-" + status);
             status = AssertAreEqual((InHonourDonation_Locator.CardHolderText), dataRow["cardholdername"].ToString());
             MethodToAddDataInList("Verify the CardHoldername-" + status);
             string tributeName = dataRow["honourfirstname"].ToString() + ' ' + dataRow["honourlastname"].ToString();
             status = AssertAreEqual((InHonourDonation_Locator.TributeHonourNameText), tributeName);
             MethodToAddDataInList("Verify the tributeName-" + status);
         }
         status = ClickOnElementWhenElementFound(InHonourDonation_Locator.ProcessPaymentButton);
         MethodToAddDataInList("Click on ProcessPaymentButton-" + status);
         ReportReader.AfterTest(System.Reflection.MethodBase.GetCurrentMethod().Name, lst_detail);
     }
     catch (Exception e)
     {
         ReportFailure("TestFailure", System.Reflection.MethodBase.GetCurrentMethod().Name);
     }
 }
 /// <summary>
 /// Desc:Method is used to fill all the mandatory fields that are on registeration page and click on Continue.
 /// </summary>
 public void FillMandatoryFields(DataRow dataRow)
 {
     try
     {
         if (dataRow != null)
         {
             lst_detail = new List <string>();
             explicitWait(GeneralDonation_Locator.btn_OneTimeDonationType, 10000);
             status = ClickOnElementWhenElementFound(GeneralDonation_Locator.btn_OneTimeDonationType);
             MethodToAddDataInList("Click on one time donation -" + status);
             explicitWait(GeneralDonation_Locator.rdo_DonationAmount_1, 5000);
             status = ClickOnElementWhenElementFound(GeneralDonation_Locator.rdo_Amount);
             MethodToAddDataInList("Select Amount -" + status);
             threadWait(3000);
             int value = selectValueByIndex(GeneralDonation_Locator.lst_StartMonth, 2);
             //Assert.AreEqual("1", -1, "Month not selected", MethodToAddDataInList("Month not selected-"+EnumClasses.LogStatus.Failed));
             threadWait(3000);
             selectValueByIndex(GeneralDonation_Locator.lst_Day, 1);
             explicitWait(GeneralDonation_Locator.td_FundType, 2000);
             status = ClickOnElementWhenElementFound(GeneralDonation_Locator.td_FundType);
             MethodToAddDataInList("Clicking on Fund Allocation -" + status);
             status = ClickOnElementWhenElementFound(GeneralDonation_Locator.td_SampleFile2);
             MethodToAddDataInList("Clicking on Fund Allocation -" + status);
             status = ClickOnElementWhenElementFound(GeneralDonation_Locator.ddl_Title);
             MethodToAddDataInList("Click on Title dropdown-" + status);
             explicitWait(GeneralDonation_Locator.ddl_Title, 2000);
             selectValueFromDropdown(GeneralDonation_Locator.ddl_Title, dataRow["title"].ToString());
             MethodToAddDataInList("Select Title-" + status);
             explicitWait(GeneralDonation_Locator.txt_FirstName, 2000);
             status = SendKeysForElement(GeneralDonation_Locator.txt_FirstName, dataRow["firstname"].ToString());
             MethodToAddDataInList("Entering into first name-" + status);
             status = SendKeysForElement(GeneralDonation_Locator.txt_MiddleName, dataRow["middlename"].ToString());
             MethodToAddDataInList("Entering into middle name-" + status);
             status = SendKeysForElement(GeneralDonation_Locator.txt_LastName, dataRow["lastname"].ToString());
             MethodToAddDataInList("Entering into lastname-" + status);
             status = SendKeysForElement(GeneralDonation_Locator.txt_EmailId, dataRow["emailid"].ToString());
             MethodToAddDataInList("Entering into email-" + status);
             status = SendKeysForElement(GeneralDonation_Locator.txt_ConfirmEmailId, dataRow["confirmemailid"].ToString());
             MethodToAddDataInList("Entering into confirm email-" + status);
             //explicitWait(GeneralDonation_Locator.ddl_Country, 5000);
             //ClickOnElementWhenElementFound(GeneralDonation_Locator.ddl_Country);
             //selectValueFromDropdown(GeneralDonation_Locator.ddl_Country, dataRow["country"].ToString());
             explicitWait(GeneralDonation_Locator.txt_Address1, 2000);
             status = SendKeysForElement(GeneralDonation_Locator.txt_Address1, dataRow["address1"].ToString());
             MethodToAddDataInList("Entering into address1-" + status);
             status = SendKeysForElement(GeneralDonation_Locator.txt_Address2, dataRow["address2"].ToString());
             MethodToAddDataInList("Entering into address2-" + status);
             explicitWait(GeneralDonation_Locator.txt_City, 2000);
             status = SendKeysForElement(GeneralDonation_Locator.txt_City, dataRow["city"].ToString());
             MethodToAddDataInList("Entering into city-" + status);
             explicitWait(GeneralDonation_Locator.ddl_State, 6000);
             status = ClickOnElementWhenElementFound(GeneralDonation_Locator.ddl_State);
             MethodToAddDataInList("Click on state-" + status);
             selectValueFromDropdown(GeneralDonation_Locator.ddl_State, dataRow["state"].ToString());
             status = SendKeysForElement(GeneralDonation_Locator.txt_Postal, dataRow["postal"].ToString());
             MethodToAddDataInList("Enter postal-" + status);
             explicitWait(GeneralDonation_Locator.ddl_ExpMonth, 5000);
             status = ClickOnElementWhenElementFound(GeneralDonation_Locator.ddl_ExpMonth);
             selectValueFromDropdown(GeneralDonation_Locator.ddl_ExpMonth, dataRow["expmonth"].ToString());
             MethodToAddDataInList("Click on expmonth-" + status);
             explicitWait(GeneralDonation_Locator.ddl_ExpYear, 2000);
             status = ClickOnElementWhenElementFound(GeneralDonation_Locator.ddl_ExpYear);
             selectValueFromDropdown(GeneralDonation_Locator.ddl_ExpYear, dataRow["expyear"].ToString());
             MethodToAddDataInList("Click on expyear-" + status);
             explicitWait(GeneralDonation_Locator.txt_CreditCardNumber, 10000);
             //ClickOnElementWhenElementFound(GeneralDonation_Locator.txt_CreditCardNumber);
             status = SendKeysForWebElement(GeneralDonation_Locator.txt_CreditCardNumber, dataRow["creditcardnumber"].ToString());
             MethodToAddDataInList("Enter creditcard number-" + status);
             explicitWait(GeneralDonation_Locator.txt_CardHolderName, 5000);
             status = SendKeysForWebElement(GeneralDonation_Locator.txt_CardHolderName, dataRow["cardholdername"].ToString());
             MethodToAddDataInList("Enter cardholder name-" + status);
             status = ClickOnElementWhenElementFound(GeneralDonation_Locator.btn_Main_Continue);
             MethodToAddDataInList("Click on continue button-" + status);
             var assertStatus = AssertIsTrue(GeneralDonation_Locator.lbl_DonorProfile);
             if (assertStatus == EnumClasses.LogStatus.Failed)
             {
                 MethodToAddDataInList("All mandatory fields are not filled-" + assertStatus);
                 ReportFailure("TestFailure", System.Reflection.MethodBase.GetCurrentMethod().Name);
             }
             else if (assertStatus != EnumClasses.LogStatus.Failed)
             {
                 ReportReader.AfterTest(System.Reflection.MethodBase.GetCurrentMethod().Name, lst_detail, dataRow["browsername"].ToString());
             }
         }
     }
     catch (Exception e)
     {
         Assert.Fail(e.Message);
     }
 }
 /// <summary>
 /// Desc:Method is used to log the report failure
 /// </summary>
 /// <param name="e"></param>
 private void ReportFailure(string e, string methodName)
 {
     screenShotPath = ScreenShotCapture();
     ReportReader.AfterTest(methodName, lst_detail, screenShotPath);
     Assert.Fail(e);
 }
 /// <summary>
 /// Desc:Method is used to fill mandatory fields
 /// </summary>
 /// <param name="datarow"></param>
 public void fillMandatoryFields(DataRow datarow)
 {
     try
     {
         lst_detail = new List <string>();
         status     = ClickOnElementWhenElementFound(GeneralDonation_Locator.btn_RecurringDonationType);
         MethodToAddDataInList("Click on Recurring Donation -" + status);
         explicitWait(GeneralDonation_Locator.ddl_DonationFrequency, 3000);
         status = ClickOnElementWhenElementFound(GeneralDonation_Locator.ddl_DonationFrequency);
         MethodToAddDataInList("Click on DonationFrequency dropdown-" + status);
         explicitWait(GeneralDonation_Locator.ddl_DonationFrequency, 3000);
         selectValueFromDropdownByText(GeneralDonation_Locator.ddl_DonationFrequency, datarow["donationfrequency"].ToString());
         MethodToAddDataInList("Select Monthly Frequency -" + status);
         status = ClickOnElementWhenElementFound(InHonourDonation_Locator.Amount);
         //ClickOnElementWhenElementFound(honourPage.InHonourMonth);
         Thread.Sleep(3000);
         selectValueByIndex(InHonourDonation_Locator.InHonourMonth, 2);
         //explicitWait(InHonourDonation_Locator.InHonourDay, 3000);
         Thread.Sleep(3000);
         selectValueByIndex(InHonourDonation_Locator.InHonourDay, 2);
         status = ClickOnElementWhenElementFound(InHonourDonation_Locator.NumberOfTimesRadio);
         MethodToAddDataInList("Select Number Of Times RadioButton-" + status);
         //explicitWait(InHonourDonation_Locator.NumberOfTimesText, 5000);
         Thread.Sleep(3000);
         mouseHover(InHonourDonation_Locator.NumberOfTimesText);
         //explicitWait(InHonourDonation_Locator.NumberOfTimesText, 10000);
         Thread.Sleep(3000);
         status = SendKeysForWebElement(InHonourDonation_Locator.NumberOfTimesText, datarow["numberoftimes"].ToString());
         MethodToAddDataInList("Enter specific number of times -" + status);
         //explicitWait(InHonourDonation_Locator.FundAllocation, 3000);
         //ClickOnElementWhenElementFound(honourPage.FundAllocation);
         explicitWait(InHonourDonation_Locator.FundAllocation, 3000);
         getWebElementByLocator(InHonourDonation_Locator.FundAllocation).Clear();
         status = SendKeysForElement(InHonourDonation_Locator.FundAllocation, datarow["fundallocation"].ToString() + Keys.Tab);
         MethodToAddDataInList("Select Fund Allocation -" + status);
         //SendKeysForElement(honourPage.FundAllocation, Keys.Enter);
         status = SendKeysForElement(GeneralDonation_Locator.txt_FirstName, datarow["firstname"].ToString());
         MethodToAddDataInList("Enter firstname -" + status);
         status = SendKeysForElement(GeneralDonation_Locator.txt_LastName, datarow["lastname"].ToString());
         MethodToAddDataInList("Enter lastname -" + status);
         status = SendKeysForElement(GeneralDonation_Locator.txt_EmailId, datarow["emailid"].ToString());
         MethodToAddDataInList("Enter email id -" + status);
         status = SendKeysForElement(GeneralDonation_Locator.txt_ConfirmEmailId, datarow["confirmemailid"].ToString());
         MethodToAddDataInList("Re enter email id -" + status);
         //selectValueFromDropdown(GeneralDonation_Locator.ddl_Country, datarow["country"].ToString());
         status = SendKeysForElement(GeneralDonation_Locator.txt_Address1, datarow["address1"].ToString());
         MethodToAddDataInList("Enter address -" + status);
         explicitWait(GeneralDonation_Locator.txt_City, 4000);
         status = SendKeysForWebElement(GeneralDonation_Locator.txt_City, datarow["city"].ToString());
         MethodToAddDataInList("Enter city -" + status);
         status = SendKeysForElement(GeneralDonation_Locator.ddl_State, datarow["state"].ToString());
         MethodToAddDataInList("Enter state -" + status);
         status = SendKeysForElement(GeneralDonation_Locator.txt_Postal, datarow["postal"].ToString());
         MethodToAddDataInList("Enter postal code -" + status);
         //explicitWait(GeneralDonation_Locator.txt_CreditCardNumber, 10000);
         Thread.Sleep(2000);
         //ClickOnElementWhenElementFound(GeneralDonation.txt_CreditCardNumber);
         //explicitWait(GeneralDonation.txt_CreditCardNumber, 7000);
         status = SendKeysForWebElement(GeneralDonation_Locator.txt_CreditCardNumber, datarow["creditcardnumber"].ToString());
         MethodToAddDataInList("Enter creditcard number -" + status);
         //explicitWait(GeneralDonation_Locator.txt_CardHolderName, 4000);
         Thread.Sleep(2000);
         status = SendKeysForWebElement(GeneralDonation_Locator.txt_CardHolderName, datarow["cardholdername"].ToString());
         MethodToAddDataInList("Enter card holder name -" + status);
         //explicitWait(GeneralDonation_Locator.ddl_ExpMonth, 4000);
         Thread.Sleep(2000);
         selectValueFromDropdownByText(GeneralDonation_Locator.ddl_ExpMonth, datarow["expmonth"].ToString());
         MethodToAddDataInList("Select expiry Month -" + status);
         //explicitWait(GeneralDonation_Locator.ddl_ExpYear, 4000);
         Thread.Sleep(2000);
         selectValueFromDropdownByText(GeneralDonation_Locator.ddl_ExpYear, datarow["expyear"].ToString());
         MethodToAddDataInList("Select expiry Year -" + status);
         //explicitWait(GeneralDonation.btn_Main_Continue, 2000);
         status = ClickOnElementWhenElementFound(GeneralDonation_Locator.btn_Main_Continue);
         MethodToAddDataInList("Click on Continue Button -" + status);
         var assertStatus = AssertIsFalse(GeneralDonation_Locator.lbl_DonorProfile);
         if (assertStatus == EnumClasses.LogStatus.Failed)
         {
             MethodToAddDataInList("All mandatory fields are not filled-" + assertStatus);
             ReportFailure("TestFailure", System.Reflection.MethodBase.GetCurrentMethod().Name);
         }
         else if (assertStatus != EnumClasses.LogStatus.Failed)
         {
             ReportReader.AfterTest(System.Reflection.MethodBase.GetCurrentMethod().Name, lst_detail);
         }
     }
     catch (Exception e)
     {
         Assert.Fail(e.Message);
     }
 }
        /// <summary>
        /// Desc:Method used for fill Recipient Details
        /// </summary>
        /// <param name="datarow"></param>
        public void fillRecipientDetails(DataRow datarow)
        {
            try
            {
                lst_detail = new List <string>();
                status     = SendKeysForWebElement(InHonourDonation_Locator.RecipientFirstName, datarow["recipientfirstname"].ToString());
                MethodToAddDataInList("Enter recipientfirstname-" + status);
                status = SendKeysForWebElement(InHonourDonation_Locator.RecipientLastName, datarow["recipientlastname"].ToString());
                MethodToAddDataInList("Enter recipientfirstname-" + status);
                status = SendKeysForWebElement(InHonourDonation_Locator.RecipientEmail, datarow["recipientemailid"].ToString());
                MethodToAddDataInList("Enter recipientemailid-" + status);
                status = ClickOnElementWhenElementFound(InHonourDonation_Locator.AddButton);
                MethodToAddDataInList("Click on add button-" + status);

                status = ClickOnElementWhenElementFound(InHonourDonation_Locator.Image1);
                MethodToAddDataInList("Click on Template1 -" + status);
                Thread.Sleep(4000);
                //int frames = driver.FindElements(By.TagName("iframe")).Count;
                //Console.WriteLine(frames);
                driver.SwitchTo().Frame(1);
                Assert.IsTrue(IsElementVisible(InHonourDonation_Locator.ImageVerify), "Image not visible");
                driver.SwitchTo().DefaultContent();
                Thread.Sleep(3000);
                ClickOnElementWhenElementFound(InHonourDonation_Locator.CloseImagePopup);
                status = ClickOnElementWhenElementFound(InHonourDonation_Locator.ImageScroller);
                MethodToAddDataInList("Click on ImageScroller-" + status);
                status = ClickOnElementWhenElementFound(InHonourDonation_Locator.ImageScroller);
                explicitWait(InHonourDonation_Locator.Image6, 1000);
                status = ClickOnElementWhenElementFound(InHonourDonation_Locator.Image6);
                MethodToAddDataInList("Click on Image-" + status);
                IJavaScriptExecutor js = (IJavaScriptExecutor)driver;
                js.ExecuteScript("window.scrollTo(0,800)");
                //explicitwait(inhonourdonation.textcolorpicker, 6000);
                Thread.Sleep(3000);
                ClickOnElementWhenElementFound(InHonourDonation_Locator.TextColorPicker);
                //explicitWait(InHonourDonation_Locator.GreyColor, 5000);
                Thread.Sleep(3000);
                ClickOnElementWhenElementFound(InHonourDonation_Locator.GreyColor);
                //js.ExecuteScript("window.scrollTo(0,700)");
                explicitWait(InHonourDonation_Locator.SampleMessageDropdown, 4000);
                selectValueFromDropdownByText(InHonourDonation_Locator.SampleMessageDropdown, "----- Test message 2 -------");
                Thread.Sleep(10000);
                //status = ClickOnElementWhenElementFound(InHonourDonation_Locator.MessageTextArea);
                int frames = driver.FindElements(By.TagName("iframe")).Count;
                Console.WriteLine(frames);
                js.ExecuteScript("window.scrollTo(0,700)");
                driver.SwitchTo().Frame(0);
                //Thread.Sleep(5000);
                //status = ClickOnElementWhenElementFound(InHonourDonation_Locator.MessageTextArea);
                //  MethodToAddDataInList("Click on MessageTextArea-" + status);
                //getWebElementByLocator(InHonourDonation_Locator.MessageTextArea).SendKeys(Keys.End + Keys.Enter);
                //status = SendKeysForElement(InHonourDonation_Locator.MessageTextArea, datarow["messagetextarea"].ToString());
                //MethodToAddDataInList("Enter messagetextarea-" + status);
                // SendKeysForElement(InHonourDonation.MessageTextArea, datarow["messagetextarea"].ToString());
                driver.SwitchTo().DefaultContent();
                //getWebElementByLocator(InHonourDonation_Locator.MessageTextArea).SendKeys(Keys.Control + Keys.Enter);
                //status = ClickOnElementWhenElementFound(InHonourDonation_Locator.NotifyOption);
                //MethodToAddDataInList("Click on NotifyOption-" + status);
                Thread.Sleep(3000);
                status = ClickOnElementWhenElementFound(InHonourDonation_Locator.SaveContinueButton);
                MethodToAddDataInList("Click on SaveContinueButton-" + status);

                var assertStatus = AssertIsFalse(InHonourDonation_Locator.lbl_CardDetailsTitle);
                if (assertStatus == EnumClasses.LogStatus.Failed)
                {
                    MethodToAddDataInList("Card details are not filled-" + assertStatus);
                    ReportFailure("TestFailure", System.Reflection.MethodBase.GetCurrentMethod().Name);
                }
                else if (assertStatus != EnumClasses.LogStatus.Failed)
                {
                    ReportReader.AfterTest(System.Reflection.MethodBase.GetCurrentMethod().Name, lst_detail, datarow["browsername"].ToString());
                }
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message);
            }
        }