Beispiel #1
0
        public UIElementJavaPlatformPage(ActUIElement Action)
        {
            InitializeComponent();

            mAction = Action;

            //if widgets then no need to show and bind WaitforIdle field
            if (Convert.ToBoolean(mAction.GetInputParamValue(ActUIElement.Fields.IsWidgetsElement)))
            {
                lblWaitforIdleComboBox.Visibility = System.Windows.Visibility.Collapsed;
                WaitforIdleComboBox.Visibility    = System.Windows.Visibility.Collapsed;
                return;
            }
            if (mAction.ElementType.ToString() == eElementType.Table.ToString())
            {
                if (mAction.GetInputParamValue(ActUIElement.Fields.ControlAction) == ActUIElement.eElementAction.Click.ToString())
                {
                    mAction.GetOrCreateInputParam(ActUIElement.Fields.WaitforIdle, ActUIElement.eWaitForIdle.Medium.ToString());
                }
            }
            else
            {
                if (mAction.ElementAction.ToString() == ActUIElement.eElementAction.Click.ToString())
                {
                    mAction.GetOrCreateInputParam(ActUIElement.Fields.WaitforIdle, ActUIElement.eWaitForIdle.Medium.ToString());
                }
                else
                {
                    mAction.GetOrCreateInputParam(ActUIElement.Fields.WaitforIdle, ActUIElement.eWaitForIdle.None.ToString());
                }
            }
            WaitforIdleComboBox.Init(mAction.GetOrCreateInputParam(ActUIElement.Fields.WaitforIdle), typeof(ActUIElement.eWaitForIdle));
        }
Beispiel #2
0
        public UIElementJavaPlatformPage(ActUIElement Action)
        {
            InitializeComponent();

            mAction = Action;
            if (mAction.ElementType.ToString() == eElementType.Table.ToString())
            {
                if (mAction.GetInputParamValue(ActUIElement.Fields.ControlAction) == ActUIElement.eElementAction.Click.ToString())
                {
                    mAction.AddOrUpdateInputParamValue(ActUIElement.Fields.WaitforIdle, ActUIElement.eWaitForIdle.Medium.ToString());
                }
            }
            else
            {
                if (mAction.ElementAction.ToString() == ActUIElement.eElementAction.Click.ToString())
                {
                    mAction.AddOrUpdateInputParamValue(ActUIElement.Fields.WaitforIdle, ActUIElement.eWaitForIdle.Medium.ToString());
                }
                else
                {
                    mAction.AddOrUpdateInputParamValue(ActUIElement.Fields.WaitforIdle, ActUIElement.eWaitForIdle.None.ToString());
                }
            }
            WaitforIdleComboBox.Init(mAction.GetOrCreateInputParam(ActUIElement.Fields.WaitforIdle), typeof(ActUIElement.eWaitForIdle));
        }