public static void ValidateIsVisible <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 visible but was NOT.", timeout, sleepInterval); ValidatedIsVisibleEvent?.Invoke(control, new ComponentActionEventArgs(control)); }
public static void ValidateIsVisible <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 visible but was NOT.", timeout, sleepInterval); ValidatedIsVisibleEvent?.Invoke(control, new ElementActionEventArgs <IOSElement>(control)); }