Exemple #1
0
 public static void ValidateIsDisabled <T>(this T control, int?timeout = null, int?sleepInterval = null)
     where T : IElementDisabled, IElement
 {
     WaitUntil(() => control.IsDisabled.Equals(true), "The control should be disabled but it was NOT.", timeout, sleepInterval);
     ValidatedIsDisabledEvent?.Invoke(control, new ElementActionEventArgs(control));
 }
 public static void ValidateIsDisabled <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 be disabled but it was NOT.", timeout, sleepInterval);
     ValidatedIsDisabledEvent?.Invoke(control, new ComponentActionEventArgs <AndroidElement>(control));
 }