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, false);

            //if widgets element, only supported to java platform now.
            if (act.Platform.Equals(ePlatformType.Java))
            {
                ShowWidgetsElementCheckBox();
            }

            BindElementTypeComboBox();

            SetLocateValueFrame();
            ShowPlatformSpecificPage();
            ShowControlSpecificPage();
            ElementLocateByComboBox.SelectionChanged += ElementLocateByComboBox_SelectionChanged;
        }
Example #2
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();
        }
Example #3
0
        public ActBrowserElementEditPage(ActBrowserElement act)
        {
            InitializeComponent();
            mAct = act;

            //TODO: use .Fields
            App.FillComboFromEnumVal(ControlActionComboBox, mAct.ControlAction);
            App.ObjFieldBinding(ControlActionComboBox, ComboBox.SelectedValueProperty, mAct, ActBrowserElement.Fields.ControlAction);
            ValueUC.Init(mAct.GetOrCreateInputParam("Value"));
            LocateValueVE.BindControl(mAct, Act.Fields.LocateValue);
            GotoURLTypeRadioButton.Init(typeof(ActBrowserElement.eGotoURLType), GotoURLRadioButton, mAct.GetOrCreateInputParam(ActBrowserElement.Fields.GotoURLType, ActBrowserElement.eGotoURLType.Current.ToString()));
            ElementLocateByComboBox.BindControl(mAct, Act.Fields.LocateBy);
            ImplicitWaitVE.BindControl(mAct, ActBrowserElement.Fields.ImplicitWait);
            SetVisibleControlsForAction();
        }
Example #4
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);
            }
        }
Example #5
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;
        }