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