Menu

#297 Button Click that shows confirm box stops next line of code execution

Version_2.next
open
nobody
None
1
2018-11-29
2018-11-29
rajesh
No

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();
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB