public static void ValidateIsNotSelected <T>(this T control, int?timeout = null, int?sleepInterval = null) where T : IElementSelected, IElement { WaitUntil(() => control.IsSelected.Equals(false), "The control should be not selected but it WAS.", timeout, sleepInterval); ValidatedIsNotSelectedEvent?.Invoke(control, new ElementActionEventArgs(control)); }
public static void ValidateIsNotSelected <T>(this T control, int?timeout = null, int?sleepInterval = null) where T : IComponentSelected, IComponent <AndroidElement> { ValidateControlWaitService.WaitUntil <AndroidDriver <AndroidElement>, AndroidElement>(() => control.IsSelected.Equals(false), "The control should be not selected but it WAS.", timeout, sleepInterval); ValidatedIsNotSelectedEvent?.Invoke(control, new ComponentActionEventArgs <AndroidElement>(control)); }