Exemple #1
0
 /// <summary>
 /// Closed an <see cref="AlertBox"/> matching the specified icon.
 /// </summary>
 /// <param name="driver">The <see cref="WisejWebDriver"/> to use.</param>
 /// <param name="icon">The AlertBox icon to look for.</param>
 /// <param name="timeoutInSeconds">The number of seconds to wait for the AlertBox (default is 5).</param>
 public static void AlertBoxClose(this WisejWebDriver driver, MessageBoxIcon icon, int timeoutInSeconds = 5)
 {
     driver.AlertBoxCloseCore(icon, null, timeoutInSeconds);
 }
Exemple #2
0
 /// <summary>
 /// Closed an <see cref="AlertBox"/> matching the specified message.
 /// </summary>
 /// <param name="driver">The <see cref="WisejWebDriver"/> to use.</param>
 /// <param name="message">The AlertBox message to search for (default is an empty string).</param>
 /// <param name="timeoutInSeconds">The number of seconds to wait for the AlertBox (default is 5).</param>
 public static void AlertBoxClose(this WisejWebDriver driver, string message = "", int timeoutInSeconds = 5)
 {
     driver.AlertBoxCloseCore(MessageBoxIcon.None, message, timeoutInSeconds);
 }
 /// <summary>
 /// Closed an <see cref="AlertBox"/> matching the specified icon.
 /// </summary>
 /// <param name="driver">The <see cref="WisejWebDriver"/> to use.</param>
 /// <param name="icon">The AlertBox icon to look for.</param>
 /// <param name="timeoutInSeconds">The number of seconds to wait for the AlertBox (default is 5).</param>
 public static void AlertBoxClose(this WisejWebDriver driver, MessageBoxIcon icon, long timeoutInSeconds = 5)
 {
     driver.AlertBoxCloseCore(icon, false, string.Empty, timeoutInSeconds);
 }