How to get Window pop-up?

May 19, 2012 at 10:20 AM

I use my code to get Window pop-up after click on Delete button on web. But it does not works. Please help me how to get this pop-up

browserWindow = InternetExplorer.Launch(strURL, strWebTitle);

White.Core.UIItems.WindowItems.Window popup = browserWindow.ModalWindow("Delete Component");
            White.Core.UIItems.Finders.SearchCriteria searchCriteria = White.Core.UIItems.Finders.SearchCriteria.ByText("OK");
            White.Core.UIItems.Button b = popup.Get<White.Core.UIItems.Button>(searchCriteria);
            b.Click();

Thanks,

Dat Nguyen