Hi,
I have a button click that works properlly and it shows a confirm box. Confirm box also displayed but just after this button click my code execution stops to go to the next line of code where i wrote code to handle with confirm box.
My code sample is as below
browser.Button(Find.ById("cphMaster_btnPublish")).Click(); // This line shows the confirm box but debugging does not go to the next line
browser.WaitForComplete();
ConfirmDialogHandler ConfirmDialogHandler = new ConfirmDialogHandler();
using (new UseDialogOnce(browser.DialogWatcher, ConfirmDialogHandler))
{
ConfirmDialogHandler.WaitUntilExists();
ConfirmDialogHandler.OKButton.Click();
browser.WaitForComplete();
}