Example #1
0
        private IWebElement GetCheckboxElement(IWebElement nodeElement)
        {
            Locator checkboxInputLocator = ControlLocatorRepository.GetLocator(ControlLocatorKey.TreeNodeCheckbox);

            IWebElement checkboxInput = ElementHandler.FindElement(checkboxInputLocator, nodeElement);// nodeElement.FindElements(imageButtonsLocator.ToBy()).ToArray();

            return(checkboxInput);
        }
Example #2
0
        private IWebElement GetExpanderElement(IWebElement nodeElement)
        {
            Locator imageButtonsLocator = ControlLocatorRepository.GetLocator(ControlLocatorKey.TreeNodeImage);

            IWebElement[] imageButtons = ElementHandler.FindElements(imageButtonsLocator, nodeElement);// nodeElement.FindElements(imageButtonsLocator.ToBy()).ToArray();

            return(imageButtons[imageButtons.Length - 2]);
        }
Example #3
0
        private IWebElement GetWidgetTemplateFieldElement(string itemResourceVariable1, string itemResourceVariable2)
        {
            Hashtable variables = new Hashtable()
            {
                { ITEMRESOURCEVARIABLE1, itemResourceVariable1 }, { ITEMRESOURCEVARIABLE2, itemResourceVariable2 }
            };

            return(FindChild(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.CheckBoxWidgetTemplateTable), variables)));
        }
Example #4
0
        private string NewJazz_GetDate()
        {
            var monthLocator = ControlLocatorRepository.GetLocator(ControlLocatorKey.NewReactJSjazzInnerMonthPickerMonth);
            var yearLocator  = ControlLocatorRepository.GetLocator(ControlLocatorKey.NewReactJSjazzInnerMonthPickerYear);

            string monthTemp  = FindChild(monthLocator).Text;
            string monthValue = NewJazzMonthItem[monthTemp];
            string yearValue  = FindChild(yearLocator).Text;

            return(yearValue + "-" + monthValue);
        }
Example #5
0
 private Locator Pop_GetCheckBoxInputLocator(string itemName)
 {
     return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.PopCheckBoxInput), ITEMNAME, itemName));
 }
Example #6
0
 private Locator Alarm_GetCheckBoxFieldLocator(string itemName)
 {
     return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.Alarm_CheckBoxInput), ITEMNAME, itemName));
 }
Example #7
0
        private string GetDate()
        {
            var locator = ControlLocatorRepository.GetLocator(ControlLocatorKey.InnerMonthPickerButton);

            return(FindChild(locator).Text);
        }
Example #8
0
        protected virtual void ClickCanceLButton()
        {
            var locator = ControlLocatorRepository.GetLocator(ControlLocatorKey.MonthPickerCancel);

            FindChild(locator).Click();
        }
Example #9
0
        protected virtual void ClickInnerMonthPickerConfirmButton()
        {
            var locator = ControlLocatorRepository.GetLocator(ControlLocatorKey.InnerMonthPickerConfirm);

            FindChild(locator).Click();
        }
Example #10
0
 // Get MenuCheckItem
 private Locator GetMenuCheckItemItemLocator(string itemName)
 {
     return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.MenuCheckItemItem), ITEMNAME, itemName));
 }
Example #11
0
 public IWebElement GetMenuCheckExtraCompElement(string itemName)
 {
     return(FindChild(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.MenuCheckExtraComp), ITEMNAME, itemName)));
 }
Example #12
0
        protected virtual Locator Pop_GetComboBoxItemLocator(string itemKey)
        {
            string itemRealValue = ComboBoxItemRepository.GetComboBoxItemRealValue(itemKey);

            return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.PopComboBoxItem), COMBOBOXITEMVARIABLENAME, itemRealValue));
        }
Example #13
0
 /// <summary>
 /// Return whether combobox list is empty
 /// </summary>
 /// <returns>True if enabled</returns>
 public Boolean IsComboxListEmpty()
 {
     return(ElementHandler.Exists(ControlLocatorRepository.GetLocator(ControlLocatorKey.ComboBoxDropdownListItems), this.RootElement));
 }
Example #14
0
        protected virtual Locator NewJazz_GetDatePickerTimeLocator(string itemKey)
        {
            string itemRealValue = ComboBoxItemRepository.GetComboBoxItemRealValue(itemKey);

            return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.NewReactJSjazzDatePickerTimeItem), DATEPICKERITEMVARIABLENAME, itemRealValue));
        }
Example #15
0
        protected virtual void NewJazz_ClickDatePickerNextMonthButton()
        {
            var locator = ControlLocatorRepository.GetLocator(ControlLocatorKey.NewReactJSjazzDatePickerNextMonth);

            FindChild(locator).Click();
        }
Example #16
0
        protected virtual Locator GetDatePickerDayLocator(string itemKey)
        {
            string itemRealValue = ComboBoxItemRepository.GetComboBoxItemRealValue(itemKey);

            return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.DatePickerDayItem), DATEPICKERITEMVARIABLENAME, itemRealValue));
        }
Example #17
0
 public MessageBox() : base(ControlLocatorRepository.GetLocator(ControlLocatorKey.MessageBox))
 {
 }
Example #18
0
 public FormulaField() : base(ControlLocatorRepository.GetLocator(ControlLocatorKey.FormulaTextBox))
 {
 }
Example #19
0
 public IWebElement GetMenuCheckSearchingElement()
 {
     return(FindChild(ControlLocatorRepository.GetLocator(ControlLocatorKey.MenuCheckSearching)));
 }
Example #20
0
        protected virtual void ClickDatePickerPreviousMonthButton()
        {
            var locator = ControlLocatorRepository.GetLocator(ControlLocatorKey.DatePickerPreviousMonth);

            FindChild(locator).Click();
        }
Example #21
0
 public IWebElement GetMenuAssociateStatusElement()
 {
     return(FindChild(ControlLocatorRepository.GetLocator(ControlLocatorKey.MenuAssociateStatusItem)));
 }
Example #22
0
 protected virtual Locator Pop_GetTreeNodeLocator(string nodeText)
 {
     return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.PopTreeNode), TREENODEVARIABLENAME, nodeText));
 }
Example #23
0
 private Locator GetCheckBoxInputLocatorInWidgetTemplate(string itemName)
 {
     return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.CheckBoxInput), ITEMNAME, itemName));
 }
Example #24
0
        protected virtual void ClickInnerMonthPreviousNavigator()
        {
            var locator = ControlLocatorRepository.GetLocator(ControlLocatorKey.InnerMonthPickerPreviousNavigator);

            FindChild(locator).Click();
        }
Example #25
0
 protected virtual Locator NewJazzGetFolderTreeNodeExpanderLocator(string nodeText)
 {
     return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.NewReactJSjazzFolderTreeNodeImage), TREENODEVARIABLENAME, nodeText));
 }
Example #26
0
        /*
         * public void CommonCheck(string item)
         * {
         *  IWebElement checkbox = get
         *
         *  if (IsChecked(permissionName))
         *      checkbox.Click();
         * }
         */

        #region private methods
        private Locator GetPermissonFieldLocator(string permissionName)
        {
            return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.PermissionCheckBoxTable), PERMISSIONNAME, permissionName));
        }
Example #27
0
        protected virtual void ClickNextNavigator()
        {
            var locator = ControlLocatorRepository.GetLocator(ControlLocatorKey.MonthPickerNextNavigator);

            FindChild(locator).Click();
        }
Example #28
0
        // Get common check

        private Locator GetCheckBoxFieldLocator(string itemName)
        {
            return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.CheckBoxTable), ITEMNAME, itemName));
        }
Example #29
0
        protected virtual Locator GetMonthPickerMonthLocator(string itemKey)
        {
            string itemRealValue = ComboBoxItemRepository.GetComboBoxItemRealValue(itemKey);

            return(Locator.GetVariableLocator(ControlLocatorRepository.GetLocator(ControlLocatorKey.MonthPickerMonthItem), MONTHPICKERITEMVARIABLENAME, itemRealValue));
        }
Example #30
0
        private void  DisplayMonthPicker()
        {
            var locator = ControlLocatorRepository.GetLocator(ControlLocatorKey.InnerMonthPickerButton);

            FindChild(locator).Click();
        }