예제 #1
0
 public void ClickOnButton(Button btnToClick)
 {
     try
     {
         btnToClick.Focus();
         btnToClick.Click();
         VStoreApp.WaitWhileBusy();
         Thread.Sleep(CommonData.iWinLoadingWait);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
         throw;
     }
 }
예제 #2
0
        /// <summary>
        /// Method to Trigger the VStore Application and Set the App to its Base State
        /// </summary>
        public void InitializeAndSetToBaseState()
        {
            Init();

            Label  AppState        = GetLabel(wVStoreMainWindow, "lblState");
            string CurrentAppState = AppState.Text;

            string OutputAppState = CurrentAppState.Split('[', ']')[1];
            int    iAppState      = Int32.Parse(OutputAppState);

            if (Enum.IsDefined(typeof(AppStatus200), iAppState))
            {
                VStoreApp.WaitWhileBusy();
                Thread.Sleep(CommonData.iLoadingTime);
                PressSpecialKey(KeyboardInput.SpecialKeys.F1);
                wVStoreMainWindow.WaitTill(new Window.WaitTillDelegate(IsState200));
                string NewAppState       = AppState.Text;
                string NewOutputAppState = NewAppState.Split('[', ']')[1];
                int    iNewAppState      = Int32.Parse(NewOutputAppState);
            }
        }
예제 #3
0
 public void SetTextByElement(TextBox tbxFieldName, string sTxtvalue)
 {
     tbxFieldName.Focus();
     tbxFieldName.Enter(sTxtvalue);
     VStoreApp.WaitWhileBusy();
 }