var modelessFrame = browser.FindModelessHtmlDialog(Search conditions);
var coreObj = new ActiveXObject("OpenTwebst.Core");
var browser = coreObj.StartBrowser("http://www.codecentrix.com/tests/htmdlg.htm");
var openBtn = browser.FindElement("input button", "text=Open Modeless Box");
// Click the button that opens the modeless dialog.
openBtn.Click();
var modelessFrame = browser.FindModelessHtmlDialog();
WScript.Sleep(2000);
// Click the button that closes the modeless dialog.
var closeBtn = modelessFrame.FindElement("input button", "");
closeBtn.Click();