public static TestComponent ScrollIntoView(this TestComponent component, bool alignToTop = false) { if (component.Container == null) { throw new InvalidOperationException("component's container is not defined"); } return(component.ScrollIntoView(component.Container, alignToTop)); }