public static void ValidateIsNotVisible <T>(this T control, int?timeout = null, int?sleepInterval = null)
     where T : IComponentVisible, IComponent
 {
     WaitUntil(() => !control.IsVisible.Equals(true), $"The control {control.ComponentName} should be NOT visible but it was.", timeout, sleepInterval);
     ValidatedIsNotVisibleEvent?.Invoke(control, new ComponentActionEventArgs(control));
 }
Ejemplo n.º 2
0
 public static void ValidateIsNotVisible <T>(this T control, int?timeout = null, int?sleepInterval = null)
     where T : IElementVisible, IElement <IOSElement>
 {
     ValidateControlWaitService.WaitUntil <IOSDriver <IOSElement>, IOSElement>(() => !control.IsVisible.Equals(true), "The control should be NOT visible but was NOT.", timeout, sleepInterval);
     ValidatedIsNotVisibleEvent?.Invoke(control, new ElementActionEventArgs <IOSElement>(control));
 }