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