or
if(Data["Name"].ToString() == "") { Item0Caret0.SetText(true, "Hello", 1, 10, false); } else{ Item0Caret0.SetText(true, Data["Name"].ToString(), 1, 10, false); }// Connect to pop-up window : '/Site/main.aspx?'
Manager.WaitForNewBrowserConnect("/Site/main.aspx?", true, 5000);
Manager.ActiveBrowser.WaitUntilReady();
ActiveBrowser.Window.SetFocus();// Connect to modal pop-up window : Look Up Records -- Webpage Dialog
if ((ActiveBrowser.BrowserType == BrowserType.InternetExplorer))
{
ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions ieActions = ((ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions)(ActiveBrowser.Actions));
ieActions.ConnectIEDialog("Look Up Records -- Webpage Dialog", 5000);
}
Manager.WaitForNewBrowserConnect("/Site/_controls/lookup/lookupinfo.aspx?LookupStyle=multi&browse=0&objecttypes" +
"=4300", true, 5000);
Manager.ActiveBrowser.WaitUntilReady();// Connect to modal pop-up window : Add Marketing Lists to Campaign -- Webpage Dialog
if ((ActiveBrowser.BrowserType == BrowserType.InternetExplorer))
{
ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions ieActions = ((ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions)(ActiveBrowser.Actions));
ieActions.ConnectIEDialog("Add Marketing Lists to Campaign -- Webpage Dialog", 5000);
}
Manager.WaitForNewBrowserConnect("/Sitecore/_controls/lookup/lookupinfo.aspx?LookupStyle=multi&browse=0&objecttypes" +
"=4300", true, 5000);
Manager.ActiveBrowser.WaitUntilReady();
ActiveBrowser.Window.SetFocus();// Close modal pop-up window : Add Marketing Lists to Campaign -- Webpage Dialog
ActiveBrowser.Close();