예제 #1
0
 /// <summary>
 /// AcceptOrDissmissAlertIfPresent method Accepts/dismiss alert if present.
 /// </summary>
 /// <param name="driver"></param>
 /// <param name="reporter"></param>
 public static void AcceptOrDissmissAlertIfPresent(RemoteWebDriver driver, Iteration reporter)
 {
     //reporter.Add(new Act(string.Format(@"Accepts if alert present")));
     if (Selenide.IsAlertPresent(driver))
     {
         Selenide.AcceptorDismissAlert(driver);
     }
     else
     {
     }
 }