Ejemplo n.º 1
0
 public void WhenISelectFromCRFsPage(string ItemToSelectInsideCRFPage)
 {
     if (!BP_wf_ActionUtil.SelectFormInCRFPage(ItemToSelectInsideCRFPage))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
Ejemplo n.º 2
0
 public void WhenISelectFromFolderMenu(string folderToSelectInsideStudyPage)
 {
     if (!BP_wf_ActionUtil.SelectFolderInDomainsMainPage(folderToSelectInsideStudyPage))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
Ejemplo n.º 3
0
 public void WhenISelectFromDataLabsStandardReportsPage(string folderToSelectInsideDLStandardReportPage)
 {
     if (!BP_wf_ActionUtil.SelectFolderInDomainsMainPage(folderToSelectInsideDLStandardReportPage))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
Ejemplo n.º 4
0
 public void WhenISelectTheStudyFromDomainsMainPage(string StudyName)
 {
     if (!BP_wf_ActionUtil.SelectFolderInDomainsMainPage(StudyName))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
Ejemplo n.º 5
0
 public void WhenIExpandPlusIconFromMainMenu(string item)
 {
     if (!BP_wf_ActionUtil.SelectModalItemsInMainPage(item))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
        public static bool VerifyMinutesPerCRFFieldValue(int valueTOChek)
        {
            String actValue = BP_wf_ActionUtil.GetPropertyOfAnObject(wf_Page_Frame.mintuesPerCRF, "value");

            if (!float.Parse(actValue).Equals(valueTOChek))
            {
                return(false);
            }

            return(true);
        }
        static List <String> GetSelectFormatRadioTexts()
        {
            List <String> allTexts = new List <String>();

            ReadOnlyCollection <IControl> actualText = SyncUtilities.FindElements(By.XPath("//input[@name='outputFmt']"));

            if (actualText != null)
            {
                foreach (IControl item in actualText)
                {
                    allTexts.Add(BP_wf_ActionUtil.GetPropertyOfAnObject(item, "displaytext"));
                }
            }
            return(allTexts);
        }
        public static List <string> GetColumnHeaderTextFromResultTable(By control)
        {
            List <String> allTexts = new List <String>();

            ReadOnlyCollection <IControl> tableRw = SyncUtilities.FindElements(control);
            int iCount = tableRw.Count;

            if (iCount != 0)
            {
                foreach (IControl item in tableRw)
                {
                    allTexts.Add(BP_wf_ActionUtil.GetPropertyOfAnObject(item, "title"));
                }
            }
            return(allTexts);
        }