Ejemplo n.º 1
0
 public static bool ClickOnTheTab(string tabName)
 {
     try
     {
         return(Control_ActionUtilities.Click(DS_StudyProperties.Tab(tabName), "Not able to click on Link"));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public static bool VerifytabNotPresent(String TabName)
 {
     try
     {
         return(!Control_PropertyUtilities.IsControlVisible(DS_StudyProperties.Tab(TabName)));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
         return(false);
     }
 }
Ejemplo n.º 3
0
 public static bool ClickOnTheCodeList(String Codelist)
 {
     try
     {
         DS_StudyProperties.FilterIconAtPageLevel().WebElement.Click();
         return(true);
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
Ejemplo n.º 4
0
 public static bool EnterTheCodeLIst(String CodeList)
 {
     try
     {
         IControl CodeListName = DS_StudyProperties.CodelistNameForSearch();
         CodeListName.WebElement.SendKeys(CodeList);
         CodeListName.WebElement.SendKeys(Keys.Enter);
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
 public static Boolean ValidateUserIsOnLabMappingsTab()
 {
     try
     {
         if (Control_PropertyUtilities.IsControlVisible(DS_StudyProperties.Tab("Lab Mappings")))
         {
             return(true);
         }
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
        public static bool ChangeTheStudyName(string StudyNameChange)
        {
            try
            {
                IControl studyNameChange = DS_StudyProperties.StudyNameChange();
                studyNameChange.WebElement.Clear();

                studyNameChange.WebElement.SendKeys(StudyNameChange);


                return(true);
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(false);
        }
Ejemplo n.º 7
0
        public static bool ClickOnTheFilterButton(string pageHeaderFromApplication)
        {
            bool found = false;

            try
            {
                IControl pageHeader     = DS_StudyProperties.Page(pageHeaderFromApplication);
                string   pageHeaderName = Control_PropertyUtilities.GetAttributeValue(pageHeader, pageHeaderFromApplication, out found);
                if (pageHeaderName.Equals(pageHeaderFromApplication))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(false);
        }
Ejemplo n.º 8
0
        public static bool UserShouldSeeThePage(string pageHeaderFromApplication)
        {
            bool found = false;

            try
            {
                IControl pageHeader     = DS_StudyProperties.Page(pageHeaderFromApplication);
                string   pageHeaderName = Control_PropertyUtilities.GetText(pageHeader);
                if (pageHeaderName.Contains(pageHeaderFromApplication))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(false);
        }
Ejemplo n.º 9
0
        public static bool SelecttheTab(IEnumerable <Tabs> tabNames)
        {
            bool tabName = false;

            try
            {
                foreach (Tabs tab  in tabNames)
                {
                    IControl tabNameFromApplication = DS_StudyProperties.Tab(tab.TabName);
                    tabName = Control_PropertyUtilities.IsControlVisible(tabNameFromApplication);
                    if (tabName.Equals("false"))
                    {
                        return(false);
                    }
                }
                return(tabName);
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(false);
        }