public virtual void SetToMinimum() { var clock = new Clock(CoreAppXmlConfiguration.Instance.BusyTimeout, 0); clock.RunWhile(() => BackLargeChangeButton.PerformClick(), () => Value > 0, delegate { throw new UIActionException(string.Format("Could not set the ScrollBar to minimum visible{0}", Constants.BusyMessage)); }); WhiteLogger.Instance.DebugFormat("ScrollBar position set to {0}", Value); }
public virtual void SetToMinimum() { var value = Retry.For(() => { BackLargeChangeButton.Click(); return(Value); }, v => v > 0, CoreAppXmlConfiguration.Instance.BusyTimeout(), TimeSpan.FromMilliseconds(0)); if (value > 0) { throw new UIActionException(string.Format("Could not set the ScrollBar to minimum visible{0}", Constants.BusyMessage)); } Logger.DebugFormat("ScrollBar position set to {0}", Value); }
public virtual void ScrollLeftLarge() { BackLargeChangeButton.Click(); }
public virtual void ScrollUpLarge() { BackLargeChangeButton.PerformClick(); }