Beispiel #1
0
 public void DoJAction(string actionName, Action <WebBaseElement> action, LogLevels level = LogLevels.Info)
 {
     TimerExtensions.ForceDone(() => {
         ProcessDemoMode();
         ActionScenrios.SetElement(_element).ActionScenario(actionName, action, level);
     });
 }
Beispiel #2
0
 public void WaitSelected(string name)
 {
     Actions.Selected(name, (el, n) => TimerExtensions.ForceDone(() => SelectedNameAction(this, n)));
 }
Beispiel #3
0
        /// <summary>
        /// Starts a timer with a custom starting time.
        /// </summary>
        /// <param name="timeoutMethod"></param>
        /// <param name="time"></param>
        public void Start(TimeoutDelegate timeoutMethod, float time)
        {
            string timeoutName = timeoutMethod.Method.Name;

            TimerExtensions.Start(Timers[timeoutName], time);
        }