public static void ValidateIsNotChecked <T>(this T control, int?timeout = null, int?sleepInterval = null) where T : IElementChecked, IElement { WaitUntil(() => control.IsChecked.Equals(false), "The control should be not checked but it WAS.", timeout, sleepInterval); ValidatedIsNotCheckedEvent?.Invoke(control, new ElementActionEventArgs(control)); }
public static void ValidateIsNotChecked <T>(this T control, int?timeout = null, int?sleepInterval = null) where T : IComponentChecked, IComponent <IOSElement> { ValidateControlWaitService.WaitUntil <IOSDriver <IOSElement>, IOSElement>(() => control.IsChecked.Equals(false), "The control should be not checked but it WAS.", timeout, sleepInterval); ValidatedIsNotCheckedEvent?.Invoke(control, new ComponentActionEventArgs <IOSElement>(control)); }