public Frame GetDialog(string dialogName) { if (PopUpFrame != null) { return(PopUpFrame.Frame(Find.BySrc(s => s.Contains("DialogName=" + dialogName)))); } return(IEInstance.Frame(Find.BySrc(s => s.Contains("DialogName=" + dialogName)))); }
public void DialogMustOpen(string dialogName) { if (HtmlModule.TelerikEditor.PopUpFrame != null) { WatiNAssert.AssertIsTrue(HtmlModule.TelerikEditor.PopUpFrame.Frame(Find.BySrc(s => s.Contains(dialogName))) != null, "DialogNotOpen.png"); } else { WatiNAssert.AssertIsTrue(IEInstance.Frame(Find.BySrc(s => s.Contains(dialogName))) != null, "DialogNotOpen.png"); } }