Exemple #1
0
        public ActUIElementEditPage(ActUIElement act)
        {
            InitializeComponent();
            mAction = act;
            ePlatformType ActivityPlatform = GetActionPlatform();

            mPlatform = PlatformInfoBase.GetPlatformImpl(ActivityPlatform);
            ElementTypeComboBox.BindControl(mAction, ActUIElement.Fields.ElementType, mPlatform.GetPlatformUIElementsType());
            ElementLocateByComboBox.BindControl(mAction, ActUIElement.Fields.ElementLocateBy, mPlatform.GetPlatformUIElementLocatorsList());
            ShowPlatformSpecificPage();
            ShowControlSpecificPage();
        }
 private void BindElementTypeComboBox()
 {
     ElementTypeComboBox.Items.Clear();
     if (Convert.ToBoolean(mAction.GetInputParamValue(Fields.IsWidgetsElement)))
     {
         ElementTypeComboBox.BindControl(mAction, nameof(ActUIElement.ElementType), mPlatform.GetPlatformWidgetsUIElementsType());
     }
     else
     {
         ElementTypeComboBox.BindControl(mAction, nameof(ActUIElement.ElementType), mPlatform.GetPlatformUIElementsType());
     }
 }
Exemple #3
0
        public ActUIElementEditPage(ActUIElement act)
        {
            InitializeComponent();
            mAction = act;
            ePlatformType ActivityPlatform = GetActionPlatform();

            mPlatform = PlatformInfoBase.GetPlatformImpl(ActivityPlatform);
            ElementTypeComboBox.BindControl(mAction, ActUIElement.Fields.ElementType, mPlatform.GetPlatformUIElementsType());
            ElementLocateByComboBox.BindControl(mAction, ActUIElement.Fields.ElementLocateBy, mPlatform.GetPlatformUIElementLocatorsList());
            ShowPlatformSpecificPage();
            ShowControlSpecificPage();

            if ((act.ElementType == eElementType.Unknown) && (act.ElementAction == ActUIElement.eElementAction.Unknown))
            {
                ElementLocateByComboBox.SelectedValue = Enum.GetName(typeof(eLocateBy), eLocateBy.POMElement);
            }
        }
Exemple #4
0
        public ActUIElementEditPage(ActUIElement act)
        {
            InitializeComponent();
            mAction = act;
            if (act.Platform == ePlatformType.NA)
            {
                act.Platform = GetActionPlatform();
            }
            mPlatform = PlatformInfoBase.GetPlatformImpl(act.Platform);
            List <eLocateBy> LocateByList = mPlatform.GetPlatformUIElementLocatorsList();

            ElementLocateByComboBox.BindControl(mAction, nameof(ActUIElement.ElementLocateBy), LocateByList);
            ElementTypeComboBox.BindControl(mAction, nameof(ActUIElement.ElementType), mPlatform.GetPlatformUIElementsType());
            SetLocateValueFrame();
            ShowPlatformSpecificPage();
            ShowControlSpecificPage();
            ElementLocateByComboBox.SelectionChanged += ElementLocateByComboBox_SelectionChanged;
        }