public string CreateGQ_SelectSingleItem(DataRow dr) { Thread.Sleep(2000); BtnAddGlobalQuestion.Click(); RdoSelectSingleItem.Click(); BtnSubmit.Click(); ManageGlobalQuestionPage mGQPage = new ManageGlobalQuestionPage(driver); return(mGQPage.CreateGQ_SelectSingleItem(dr)); }
public void EditGQ_SelectSingleItem(DataRow drAdd, DataRow drEdit) { Thread.Sleep(2000); BtnAddGlobalQuestion.Click(); RdoSelectSingleItem.Click(); BtnSubmit.Click(); ManageGlobalQuestionPage mGQPage = new ManageGlobalQuestionPage(driver); mGQPage.EditGQ_SelectSingleItem(drAdd, drEdit); }
//Eperform To handleLocalQuestionSelectSingleItemfromaList Method public void handleLocalQuestionSelectSingleItemfromaList(String refrence, String Answerformat, String label, String RequiredOption, String ReadOnlyOption) { try { EperformAddquestionButton.Click(); RdoSelectSingleItem.Click(); eleBtnSubmit.Click(); Assert.IsTrue(EperformComponentTypeText.Displayed, "Component Type is not displayed"); ExtentReport.test.Log(LogStatus.Pass, EperformComponentTypeText.Text + "is displayed"); Assert.IsTrue(EperformOptionsIcon.Displayed, "Eperform Options Icon is not displayed"); ExtentReport.test.Log(LogStatus.Pass, "Eperform Options Icon is displayed"); EperformReferenceTestbox.SendKeys(refrence); System.Threading.Thread.Sleep(2000); LabelhandleFrame.Click(); TxtLabel(label); if (ReadOnlyOption == "Yes") { EperformReadOnlyYesRadioBtn.Click(); } if (RequiredOption == "Yes") { EperformRequiredYesRadioBtn.Click(); } EperformAnswerformatDropDownIcon.Click(); foreach (IWebElement element in EperformAnswerformatDropDownText) { Assert.IsTrue(element.Displayed, element.Text + " is not dispalyed"); ExtentReport.test.Log(LogStatus.Pass, element.Text + "is displayed in manage form"); } BaseMethods.DdlSelectByValue(EperformAnswerformatDropDownIcon, Answerformat); System.Threading.Thread.Sleep(2000); eleBtnSubmit.Click(); eleBtnSubmit.Click(); BaseMethods.verifyWebElement(EperformSuccessMessage, "Eperform Success Message is not displayed in manage form", "Eperform Success Message is displayed in manage form"); EperformCancelButton.Click(); System.Threading.Thread.Sleep(2000); }catch (Exception e) { ExtentReport.test.Log(LogStatus.Fatal, "Exception Message: " + e.Message); } }