public static void ValidateIsNotDisabled <T>(this T control, int?timeout = null, int?sleepInterval = null) where T : IElementDisabled, IElement { WaitUntil(() => !control.IsDisabled.Equals(true), "The control should NOT be disabled but it was.", timeout, sleepInterval); ValidatedIsNotDisabledEvent?.Invoke(control, new ElementActionEventArgs(control)); }
public static void ValidateIsNotDisabled <T>(this T control, int?timeout = null, int?sleepInterval = null) where T : IComponentDisabled, IComponent <AndroidElement> { ValidateControlWaitService.WaitUntil <AndroidDriver <AndroidElement>, AndroidElement>(() => !control.IsDisabled.Equals(true), "The control should NOT be disabled but it was.", timeout, sleepInterval); ValidatedIsNotDisabledEvent?.Invoke(control, new ComponentActionEventArgs <AndroidElement>(control)); }