示例#1
0
 /// <summary>
 /// Dismisses the alert
 /// </summary>
 public void AlertDismiss()
 {
     QA.IAlert alert = null;
     alert = wd.SwitchTo().Alert();
     if (alert != null)
     {
         alert.Dismiss();
     }
 }
 /// <summary>
 /// Dismisses the alert
 /// </summary>
 protected void AlertDismiss()
 {
     QA.IAlert alert = null;
     alert = _WebDriver.SwitchTo().Alert();
     if (alert != null)
     {
         alert.Dismiss();
     }
 }