public void DoJAction(string actionName, Action <WebBaseElement> action, LogLevels level = LogLevels.Info) { TimerExtensions.ForceDone(() => { ProcessDemoMode(); ActionScenrios.SetElement(_element).ActionScenario(actionName, action, level); }); }
public void WaitSelected(string name) { Actions.Selected(name, (el, n) => TimerExtensions.ForceDone(() => SelectedNameAction(this, n))); }
/// <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); }