public static void ValidateIsChecked <T>(this T control, int?timeout = null, int?sleepInterval = null) where T : IElementChecked, IElement { WaitUntil(() => control.IsChecked.Equals(true), "The control should be checked but was NOT.", timeout, sleepInterval); ValidatedIsCheckedEvent?.Invoke(control, new ElementActionEventArgs(control)); }
public static void ValidateIsChecked <T>(this T control, int?timeout = null, int?sleepInterval = null) where T : IComponentChecked, IComponent <IOSElement> { ValidateControlWaitService.WaitUntil <IOSDriver <IOSElement>, IOSElement>(() => control.IsChecked.Equals(true), "The control should be checked but was NOT.", timeout, sleepInterval); ValidatedIsCheckedEvent?.Invoke(control, new ComponentActionEventArgs <IOSElement>(control)); }