public void FillFormForOthers(string examinationPosition, string appleant, string fName, string mName, string lName, string aka,
                                      string lastFourSSN, string contactPhone, string mailingAddress, string city, string state, string zip,
                                      string email, string cEmail, string empNumber, string payroll, string department, string appealIssue,
                                      string remedy
                                      )
        {
            // SubmitAppeal.Clicks();
            BtnIAgree.Clicks();

            OtherHeadingID.Clicks();
            Others.Clicks();

            if (appleant == "Yourself")
            {
                FillingYourSelf.Click();
            }
            FName.EnterText(fName);
            MName.EnterText(mName);
            LName.EnterText(lName);
            Aka.EnterText(aka);
            LastFourSSN.EnterText(lastFourSSN);
            ContactPhone.EnterText(contactPhone);
            MailingAddress.EnterText(mailingAddress);
            City.EnterText(city);
            State.ClearText(state);
            ZipCode.EnterText(zip);
            PreferredEmail.EnterText(email);
            ConfirmEmail.EnterText(cEmail);
            EmployeeNumber.EnterText(empNumber);
            Payroll.EnterText(payroll);
            EmployingDepartment.EnterText(department);
            AppealIssue.EnterText(appealIssue);
            Remedy.SendKeys(remedy);
            SubmitBtn.Clicks();
            AcceptPopupBtn.Clicks();
        }
        public void FillFormForDisqualification(string disqulificationType, string examinationNumber, string examinationName, string appleant, string fName, string mName, string lName, string aka,
                                                string lastFourSSN, string contactPhone, string mailingAddress, string city, string state, string zip, string email, string cEmail, string empNumber,
                                                string payroll, string department, string appealIssue, string documentLocation, string attachmentDesciption, string authDoc, string authDocDesc, string remedy
                                                )
        {
            //SubmitAppeal.Clicks();
            BtnIAgree.Clicks();

            DisqualificatioHeadingID.Clicks();
            if (disqulificationType.Contains("Background"))
            {
                Background.Clicks();


                ExaminationNumber.SendKeys(examinationNumber);
                ExaminationName.SendKeys(examinationName);
                if (appleant == "Yourself")
                {
                    FillingYourSelf.Click();
                }
                waitForPageUntilElementIsVisible(By.Id("x-auto-0-input"), 20);
                FName.EnterText(fName);
                MName.EnterText(mName);
                LName.EnterText(lName);
                Aka.EnterText(aka);
                LastFourSSN.EnterText(lastFourSSN);
                ContactPhone.EnterText(contactPhone);
                MailingAddress.EnterText(mailingAddress);
                City.EnterText(city);
                State.ClearText(state);
                ZipCode.EnterText(zip);
                PreferredEmail.EnterText(email);
                ConfirmEmail.EnterText(cEmail);
                EmployeeNumber.EnterText(empNumber);
                Payroll.EnterText(payroll);
                EmployingDepartment.EnterText(department);
                AppealIssue.EnterText(appealIssue);
                Attach.Clicks();
                Browse.UploadFile(documentLocation);
                AttachmentDescription.EnterText(attachmentDesciption);
                Remedy.SendKeys(remedy);
                SubmitBtn.Clicks();
                AcceptPopupBtn.Clicks();
            }
            else if (disqulificationType.Contains("Inaccurate Disclosure"))
            {
                InaccurateDisclosure.Clicks();

                ExaminationNumber.SendKeys(examinationNumber);
                ExaminationName.SendKeys(examinationName);
                if (appleant == "Yourself")
                {
                    FillingYourSelf.Click();
                }
                waitForPageUntilElementIsVisible(By.Id("x-auto-0-input"), 10);
                FName.EnterText(fName);
                waitForPageUntilElementIsVisible(By.Id("x-auto-1-input"), 10);
                MName.EnterText(mName);
                LName.EnterText(lName);
                Aka.EnterText(aka);
                LastFourSSN.EnterText(lastFourSSN);
                ContactPhone.EnterText(contactPhone);
                MailingAddress.EnterText(mailingAddress);
                City.EnterText(city);
                State.ClearText(state);
                ZipCode.EnterText(zip);
                PreferredEmail.EnterText(email);
                ConfirmEmail.EnterText(cEmail);
                EmployeeNumber.EnterText(empNumber);
                Payroll.EnterText(payroll);
                EmployingDepartment.EnterText(department);
                AppealIssue.EnterText(appealIssue);
                Attach.Clicks();
                Browse.UploadFile(documentLocation);
                AttachmentDescription.EnterText(attachmentDesciption);
                AttachAdditional.Clicks();
                BrowseAdditional.UploadFile(authDoc);
                DescriptionAdditional.EnterText(authDocDesc);
                Remedy.SendKeys(remedy);
                SubmitBtn.Clicks();
                AcceptPopupBtn.Clicks();
            }
        }
        public void FillFormForDiscipline(string discipline, string examinationNumber, string examinationName, string appleant, string fName, string mName, string lName, string aka,
                                          string lastFourSSN, string contactPhone, string mailingAddress, string city, string state, string zip, string email, string cEmail, string empNumber,
                                          string payroll, string department, string appealIssue, string notificationDocument, string attachmentDesciption, string classificationDoc, string ClassificationDocDesc, string remedy
                                          )
        {
            // SubmitAppeal.Clicks();
            BtnIAgree.Clicks();

            DisciplineHeadingID.Clicks();
            if (discipline.Contains("1-5 day Suspension") || discipline.Contains("LayOff") ||
                discipline.Contains("Probationary Discharge") || discipline.Contains("Probationary Reduction") ||
                discipline.Contains("Reduction due to Lay-Off") || discipline.Contains("Release From Temporary Employment") ||
                discipline.Contains("Transfer") || discipline.Contains("Resignation"))
            {
                if (discipline.Contains("1-5 day Suspension"))
                {
                    Suspension.Clicks();
                }
                else if (discipline.Contains("LayOff"))
                {
                    LayOff.Clicks();
                }
                else if (discipline.Contains("Probationary Discharge"))
                {
                    ProbationaryDischarge.Clicks();
                }
                else if (discipline.Contains("Probationary Reduction"))
                {
                    ProbationaryReduction.Clicks();
                }
                else if (discipline.Contains("Reduction due to Lay-Off"))
                {
                    ReductionDueToLayOff.Clicks();
                }
                else if (discipline.Contains("Release From Temporary Employment"))
                {
                    ReleaseFromTemporaryEmployment.Clicks();
                }
                else if (discipline.Contains("Transfer"))
                {
                    Transfer.Clicks();
                }
                else if (discipline.Contains("Resignation"))
                {
                    Resignation.Clicks();
                }
                if (appleant.Contains("Yourself"))
                {
                    FillingYourSelf.Click();
                }
                FName.EnterText(fName);
                MName.EnterText(mName);
                LName.EnterText(lName);
                Aka.EnterText(aka);
                LastFourSSN.EnterText(lastFourSSN);
                ContactPhone.EnterText(contactPhone);
                MailingAddress.EnterText(mailingAddress);
                City.EnterText(city);
                State.ClearText(state);
                ZipCode.EnterText(zip);
                PreferredEmail.EnterText(email);
                ConfirmEmail.EnterText(cEmail);
                EmployeeNumber.EnterText(empNumber);
                Payroll.EnterText(payroll);
                EmployingDepartment.EnterText(department);
                AppealIssue.EnterText(appealIssue);
                Attach.Clicks();
                Browse.UploadFile(notificationDocument);
                AttachmentDescription.EnterText(attachmentDesciption);
                Remedy.SendKeys(remedy);
                SubmitBtn.Clicks();
                AcceptPopupBtn.Clicks();
            }

            else if (discipline.Contains("ClassificationStudy"))
            {
                ClassificationStudy.Clicks();
                ExaminationNumber.SendKeys(examinationNumber);
                ExaminationName.SendKeys(examinationName);
                if (appleant == "Yourself")
                {
                    FillingYourSelf.Click();
                }
                FName.EnterText(fName);
                MName.EnterText(mName);
                LName.EnterText(lName);
                Aka.EnterText(aka);
                LastFourSSN.EnterText(lastFourSSN);
                ContactPhone.EnterText(contactPhone);
                MailingAddress.EnterText(mailingAddress);
                City.EnterText(city);
                State.ClearText(state);
                ZipCode.EnterText(zip);
                PreferredEmail.EnterText(email);
                ConfirmEmail.EnterText(cEmail);
                EmployeeNumber.EnterText(empNumber);
                Payroll.EnterText(payroll);
                EmployingDepartment.EnterText(department);
                AppealIssue.EnterText(appealIssue);
                Attach.Clicks();
                Browse.UploadFile(notificationDocument);
                AttachmentDescription.EnterText(attachmentDesciption);
                AttachAdditional.Clicks();
                BrowseAdditional.UploadFile(classificationDoc);
                DescriptionAdditional.EnterText(ClassificationDocDesc);
                Remedy.SendKeys(remedy);
                SubmitBtn.Clicks();
                AcceptPopupBtn.Clicks();
            }
        }
        public void FillFormForPosition(string examinationPosition, string examinationNumber, string examinationName, string appleant, string fName, string mName, string lName, string aka,
                                        string lastFourSSN, string contactPhone, string mailingAddress, string city, string state, string zip, string email, string cEmail, string empNumber,
                                        string payroll, string department, string appealIssue, string document, string attachmentDesciption, string remedy
                                        )
        {
            // SubmitAppeal.Clicks();
            BtnIAgree.Clicks();

            PositionHeadingID.Clicks();
            if (examinationPosition == "Application Reject")
            {
                ApplicationRejection.Clicks();
            }
            else if (examinationPosition == "Appraisal of Promotability")
            {
                AppraisalOfPromotability.Clicks();
            }
            else if (examinationPosition == "Evaluation of Training and Experience")
            {
                EvaluationOfTraining.Clicks();
            }
            else if (examinationPosition == "Interview")
            {
                Interview.Clicks();
            }
            else if (examinationPosition == "Performance Test")
            {
                PerformanceTest.Clicks();
            }
            else if (examinationPosition == "Veteran Credit")
            {
                VeteranCredit.Clicks();
            }
            else if (examinationPosition == "Paper-and-Pencil Written Tests")
            {
                WrittenTests.Clicks();
            }
            else if (examinationPosition == "Computer-Administered Tests")
            {
                ComputerAdministeredTests.Clicks();
            }

            ExaminationNumber.SendKeys(examinationNumber);
            ExaminationName.SendKeys(examinationName);
            if (appleant == "Yourself")
            {
                FillingYourSelf.Click();
            }
            FName.EnterText(fName);
            MName.EnterText(mName);
            LName.EnterText(lName);
            Aka.EnterText(aka);
            LastFourSSN.EnterText(lastFourSSN);
            ContactPhone.EnterText(contactPhone);
            MailingAddress.EnterText(mailingAddress);
            City.EnterText(city);
            State.ClearText(state);
            ZipCode.EnterText(zip);
            PreferredEmail.EnterText(email);
            ConfirmEmail.EnterText(cEmail);
            EmployeeNumber.EnterText(empNumber);
            Payroll.EnterText(payroll);
            EmployingDepartment.EnterText(department);
            AppealIssue.EnterText(appealIssue);
            Attach.Clicks();
            Browse.UploadFile(document);
            AttachmentDescription.EnterText(attachmentDesciption);
            Remedy.SendKeys(remedy);
            SubmitBtn.Clicks();
            AcceptPopupBtn.Clicks();
        }