public AutomationElement OkCapture(int?timeout = null) { return(Element.CaptureWindow( () => OkButton.ButtonInvoke(), () => "Accept button on search window", timeout)); }
public void Ok() { OkButton.ButtonInvoke(); Element.Wait(() => this.IsClosed, () => "Waiting for SearchWindow {0} to close after Ok pressed".FormatWith(Element.Current.Name)); }