/// <summary> /// Clicks the specified button on the <see cref="MessageBox"/> with the specified message. /// </summary> /// <param name="driver">The <see cref="WisejWebDriver"/> to use.</param> /// <param name="message">The MessageBox message to search for.</param> /// <param name="resultButton">The result button to click.</param> /// <param name="timeoutInSeconds">The number of seconds to wait for the MessageBox (default is 5).</param> public static void MessageBoxWithMessageButtonClick(this WisejWebDriver driver, string message, DialogResult resultButton, int timeoutInSeconds = 5) { MessageBox messageBox = driver.GetMessageBoxWithMessage(message, true, timeoutInSeconds); messageBox.ButtonClick(resultButton); }