public static bool VerifyItemAvailableInDomain(String ItemName) { if (Control_ActionUtilities.VerifyObjectExistOnPage(DS_Forms.IsItemExists(ItemName), "AutoBuildCheckBox", "TablePropertiesPage", "Unable to see the element")) { return(true); } else { return(false); } }
public static bool VerifyLinkAvailable(String Link) { if (Control_ActionUtilities.VerifyObjectExistOnPage(DS_Forms.IsLinkExists(Link), "AutoBuildCheckBox", "TablePropertiesPage", "Unable to see the element")) { return(true); } else { return(false); } }
public static bool AddQuestionButtonInTableQuestion(String TableName) { try { return(Control_ActionUtilities.Click(DS_Forms.AddQuestionButtonInTable(TableName), "Unable to click on the link add question")); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
//public static bool SetQuestionsData(IEnumerable<FormQuestionsData> questionsdata, string questionLink) //{ // foreach (FormQuestionsData data in questionsdata) // { // if ((FormQuestionsUtilities.EnterStudyData(data, questionLink))) // { // Control_ActionUtilities.Click(DS_Forms.Save, String.Empty); // } // } // return true; //} //public static bool EnterStudyData(FormQuestionsData study, string questionLink) //{ // BP_DS_HomePageUtilities.ClickLinkInDesignerHomePage(questionLink); // //FormQuestionsUtilities.SetStudyData(DS_StudyProperties.StudyTable, study); // return true; //} //public static void SetStudyData(IControl studyTable, FormQuestionsData study) //{ // //SetStudyFieldData_Dropdown(studyTable, "Therapeutic Area:", study.TherapeuticArea); // //SetStudyFieldData_Dropdown(studyTable, "Therapeutic Area:", study.TherapeuticArea); //} //static bool SetStudyFieldData_Dropdown(IControl StudyTable, String searchText, String valueToSet) //{ // if (valueToSet != null) // { // IControl row = WebTableUtilities.Table_FindRow(StudyTable, GetSearchItemList(searchText)); // IControl dropdown = WebTableUtilities.GetElement(row, String.Empty, 1, TableColumnContentType.Dropdown); // return Control_ActionUtilities.Dropdown_SelectItem(dropdown, valueToSet, String.Empty); // } // return false; //} public static bool ClickFormChildQuestionsLink(String childQuestion) { try { return(Control_ActionUtilities.Click_PerssEnterKey(DS_Forms.GetChildQuestionLink(childQuestion), "Unable to find link " + childQuestion + " in Designer Home Page")); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); return(false); } }
public static bool ClickAutoBuildCheckBox() { try { return(Control_ActionUtilities.Click_PerssEnterKey(DS_Forms.AutoBuildCheckBox(), "Unable to check the autobuild checkbox")); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); return(false); } }
public static bool SetHeaderDataInQuestion(String HeaderName) { try { return(Control_ActionUtilities.Textbox_SetText(DS_Forms.AddHeaderInQuestion(), HeaderName, "Unabe to assign header")); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); return(false); } }
public static bool EnterTableName(String TableName) { try { IControl ElementTableName = DS_Forms.TableNameToBeEntered(); ElementTableName.WebElement.SendKeys(TableName); //ElementTableName.WebElement.SendKeys(Keys.Enter); return(true); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); return(false); } }
public static bool VerifyAutoBuildCheckBox(String CheckStatus) { try { if (CheckStatus.Equals("checked")) { if (Control_ActionUtilities.VerifyObjectExistOnPage(DS_Forms.AutoBuildCheckBoxVerification(), "AutoBuildCheckBox", "TablePropertiesPage", "Unable to see the element")) { return(true); } else { return(false); } } else if (CheckStatus.Equals("unchecked")) { if (!(Control_ActionUtilities.VerifyObjectExistOnPage(DS_Forms.AutoBuildCheckBoxVerification(), "AutoBuildCheckBox", "TablePropertiesPage", "Unable to see the element"))) { return(true); } else { return(false); } } else { return(false); } } catch { return(false); } }