public void verifyQuestionRoleSubmitPreviewLink()
        {
            try
            {
                HomePage homepage = new HomePage(_driver);
                formTemplatepage  = new FormTemplatePage(_driver);
                ExtentReport.test = ExtentReport.extent.StartTest("verifyQuestionRoleSubmitPreviewLink");
                DataRow dr = ExcelData.GetData_DataTable("EP_TESTDATA", "QuestionType", "KeyName", "AddQuestionType_01").Rows[0];
                formTemplatepage.addformtemplateQuestionnaireForm("FormTemplateTest", "FormType1");
                formTemplatepage.addGlobalQuestion("FormTemplateTest", "FormType1");
                formTemplatepage.handleAddLocalQuestionMultiLineTextArea(dr[" Multi Line Text Area"].ToString(), dr["reference"].ToString(), dr["maxLength"].ToString(), dr["label"].ToString(), dr["required"].ToString(), dr["Readonly"].ToString());
                DataRow data = ExcelData.GetData_DataTable("EP_TESTDATA", "RoleType", "KeyName", "RoleType_01").Rows[0];
                formTemplatepage.filledByRoles(data["RoleType"].ToString());
                formTemplatepage.EperformPreviewFormLink.Click();
                formTemplatepage.EperformPreviewFormAsDropdownIcon.Click();
                BaseMethods.DdlSelectByText(formTemplatepage.EperformPreviewFormAsDropdownIcon, data["RoleType"].ToString());
                Assert.IsTrue(formTemplatepage.EperformPreviewLinkTextformat.Displayed, "Eperform PreviewName Text not displayed");
                ExtentReport.test.Log(LogStatus.Pass, formTemplatepage.EperformPreviewLinkTextformat.Text + "is displayed before selecting Preview form");

                formTemplatepage.EperformPreviewFormAsDropdownIcon.Click();
                BaseMethods.DdlSelectByText(formTemplatepage.EperformPreviewFormAsDropdownIcon, data["RoleType"].ToString());
                Assert.IsTrue(formTemplatepage.EperformPreviewNameText.Displayed, "Eperform PreviewName Text not displayed");
                ExtentReport.test.Log(LogStatus.Pass, formTemplatepage.EperformPreviewNameText.Text + "is displayed After selecting Preview form");
                formTemplatepage.EperformBackButton.Click();
            }
            catch
            {
                formTemplatepage.EperformBackButton.Click();
            }
        }
        public void previewInactiveOptions()
        {
            HomePage homepage = new HomePage(_driver);

            formTemplatepage  = new FormTemplatePage(_driver);
            ExtentReport.test = ExtentReport.extent.StartTest("previewInactiveOptions");
            DataRow dr = ExcelData.GetData_DataTable("EP_TESTDATA", "QuestionType", "KeyName", "AddQuestionType_01").Rows[0];

            formTemplatepage.addformtemplateQuestionnaireForm("FormTemplateTest", "FormType1");
            formTemplatepage.handleAddLocalQuestionMultiLineTextArea(dr[" Multi Line Text Area"].ToString(), dr["reference"].ToString(), dr["maxLength"].ToString(), dr["label"].ToString(), dr["required"].ToString(), dr["Readonly"].ToString());
            formTemplatepage.EperformEditButton.Click();
            BaseMethods.verifyWebElement(formTemplatepage.EperformReadOnlyYesRadioBtn, "The Inactive option is not displayed in local question", "The Inactive option is displayed in local question");


            formTemplatepage.EperformSubmitButton.Click();
            formTemplatepage.EperformPreviewFormLink.Click();
            IList <IWebElement> element = _driver.FindElements(By.Id("Dto_IsReadOnly_t"));

            if (element.Count != 0)
            {
                ExtentReport.test.Log(LogStatus.Pass, "The Inactive option is displayed in local question");
            }
            else
            {
                ExtentReport.test.Log(LogStatus.Pass, "The Inactive option is not displayed in local question");
            }

            formTemplatepage.EperformBackButton.Click();
        }
        public void verifyActionscolumnMovingquestionsUpAndDownQuestionnaireForm()
        {
            try
            {
                HomePage homepage = new HomePage(_driver);
                formTemplatepage = new FormTemplatePage(_driver);
                SelectQuestionTypePage QTypePage = new SelectQuestionTypePage(_driver);
                ExtentReport.test = ExtentReport.extent.StartTest("verifyActionscolumnMovingquestionsUpAndDownQuestionnaireForm");
                DataRow dr = ExcelData.GetData_DataTable("EP_TESTDATA", "QuestionType", "KeyName", "AddQuestionType_01").Rows[0];
                formTemplatepage.addformtemplateQuestionnaireForm("FormTemplateTest", "FormType1");
                formTemplatepage.addGlobalQuestion("FormTemplateTest", "FormType1");
                formTemplatepage.handleAddLocalQuestionMultiLineTextArea(dr[" Multi Line Text Area"].ToString(), dr["reference"].ToString(), dr["maxLength"].ToString(), dr["label"].ToString(), dr["required"].ToString(), dr["Readonly"].ToString());
                BaseMethods.verifyWebElement(formTemplatepage.EperformGlobalQuestionDeleteButton, "Eperform GlobalQuestion Delete Button is not displayed in manage form", "Eperform GlobalQuestion Delete Button is displayed in manage form");
                BaseMethods.verifyWebElement(formTemplatepage.EperformEditButton, "Eperform Edit Button is not displayed in manage form", "Eperform Edit Button is displayed in manage form");
                BaseMethods.verifyWebElement(formTemplatepage.EperformDownButton, "Eperform Down Button is not displayed in manage form", "Eperform Down Button is displayed in manage form");
                BaseMethods.verifyWebElement(formTemplatepage.EperformUpButton, "Eperform Up Button is not displayed in manage form", "Eperform Up Button is displayed in manage form");
                formTemplatepage.EperformPreviewFormLink.Click();

                BaseMethods.webelementverify(formTemplatepage.EperformPreviewLinkTextformat);
                formTemplatepage.EperformBackButton.Click();
                System.Threading.Thread.Sleep(2000);
                formTemplatepage.EperformDownButton.Click();
                formTemplatepage.EperformPreviewFormLink.Click();
                BaseMethods.webelementverify(formTemplatepage.EperformPreviewLinkTextformat);
                formTemplatepage.EperformBackButton.Click();
            }
            catch
            {
                formTemplatepage.EperformBackButton.Click();
            }
        }