WatiN two level modal dialog

Posted by lote on Stack Overflow See other posts from Stack Overflow or by lote
Published on 2010-05-31T13:58:27Z Indexed on 2010/05/31 14:03 UTC
Read the original article Hit count: 980

Filed under:
|

Hi folks, i am using WatiN lib for automation test. But some case i have to access a modal dialog which is fired another modal dialog. Above code works fine but last line open a modaldialog again. i can not access it with using ie instance.. any idea ?

        IE ie = new IE("http://localhost/test.htm");
        ie.Link("main_lnk1").ClickNoWait();

        HtmlDialog dialog = ie.HtmlDialog(Find.ByTitle("Modal 1")));

        dialog.TextField("modal1_txt1").Value = "modal 1";
        dialog.Link("modal1_lnk1").ClickNoWait();

© Stack Overflow or respective owner

Related posts about modal-dialog

Related posts about watin