Exemplo n.º 1
0
        private Page GetLocateValueEditPage(eLocateBy SelectedLocType)
        {
            switch (SelectedLocType)
            {
            case eLocateBy.POMElement:
                //ElementTypeComboBox.IsEnabled = false;
                LocateByPOMElementPage locateByPOMElementPage = new LocateByPOMElementPage(Context.GetAsContext(mAction.Context), mAction, nameof(ActUIElement.ElementType), mAction, nameof(ActUIElement.ElementLocateValue));
                locateByPOMElementPage.ElementChangedPageEvent -= POMElementChanged;
                locateByPOMElementPage.ElementChangedPageEvent += POMElementChanged;
                return(locateByPOMElementPage);

            case eLocateBy.ByXY:
                return(new LocateByXYEditPage(mAction, mAction, ActUIElement.Fields.ElementLocateValue));

            default:
                return(new LocateValueEditPage(Context.GetAsContext(mAction.Context), mAction, ActUIElement.Fields.ElementLocateValue));
            }
        }
Exemplo n.º 2
0
        private Page GetLocateValueEditPage(eLocateBy SelectedLocType)
        {
            switch (SelectedLocType)
            {
            case eLocateBy.POMElement:
                ElementTypeComboBox.IsEnabled = false;
                LocateByPOMElementPage locateByPOMElementPage = new LocateByPOMElementPage(mAction);
                locateByPOMElementPage.ElementChangedPageEvent -= POMElementChanged;
                locateByPOMElementPage.ElementChangedPageEvent += POMElementChanged;
                return(locateByPOMElementPage);

            case eLocateBy.ByXY:
                return(new LocateByXYEditPage(mAction));

            default:
                return(new LocateValueEditPage(mAction));
            }
        }
Exemplo n.º 3
0
        private Page GetLocateValueEditPage(eLocateBy SelectedLocType)
        {
            ActInputValue objValidationElementType         = mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationElement, string.Empty);
            ActInputValue objValidationElementLocatorValue = mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationElementLocatorValue, "");

            switch (SelectedLocType)
            {
            case eLocateBy.POMElement:
                xValidationElementTypeComboBox.IsEnabled = false;
                LocateByPOMElementPage locateByPOMElementPage = new LocateByPOMElementPage(Context.GetAsContext(mAct.Context), objValidationElementType, nameof(ActInputValue.Value), objValidationElementLocatorValue, nameof(ActInputValue.Value));
                return(locateByPOMElementPage);

            case eLocateBy.ByXY:
                return(new LocateByXYEditPage(mAct, objValidationElementLocatorValue, nameof(ActInputValue.Value)));

            default:
                return(new LocateValueEditPage(Context.GetAsContext(mAct.Context), objValidationElementLocatorValue, nameof(ActInputValue.Value)));
            }
        }