public static void ValidateTimeIs <T>(this T control, string value, int?timeout = null, int?sleepInterval = null) where T : IElementTime, IElement <AndroidElement> { ValidateControlWaitService.WaitUntil <AndroidDriver <AndroidElement>, AndroidElement>(() => control.GetTime().Equals(value), $"The control's time should be '{value}' but was '{control.GetTime()}'.", timeout, sleepInterval); ValidatedTimeIsEvent?.Invoke(control, new ElementActionEventArgs <AndroidElement>(control, value)); }
public static void ValidateTimeIs <T>(this T control, string value, int?timeout = null, int?sleepInterval = null) where T : IComponentTime, IComponent { WaitUntil(() => control.GetTime().Equals(value), $"The control's time should be '{value}' but was '{control.GetTime()}'.", timeout, sleepInterval); ValidatedTimeIsEvent?.Invoke(control, new ComponentActionEventArgs(control, value)); }