public void tearDown() { if (ie.notNull()) { ie.parentForm().close(); } }
public static WatiN_IE assert_Has_Valid_Url(this WatiN_IE watinIe, string message = NUnit_WatiN_Messages.ASSERT_HAS_VALID_URL) { if (watinIe.notNull()) { watinIe.url().isUri().assert_True(message); } return(watinIe); }
public Unit_Tests_using_IE set_IE_Object(string key) { ie = key.o2Cache <WatiN_IE>( () => { "[Test_TM_IE] Setting IE object to key ".info(key); ie = "IE for {0}".format(key) .popupWindow(800, 500) .add_IE() .silent(false); ie.WebBrowser.onClosed(() => key.o2Cache(null)); return(ie); }); Assert.That(ie.notNull(), "set_IE_Object ie was null"); return(this); }
public WatiN_IE set_IE_Object(string key) { ie = key.o2Cache <WatiN_IE>( () => { "[Test_TM_IE] Setting IE object to key ".info(key); ie = "IE for {0}".format(key) .popupWindow(800, 500) .add_IE() .silent(true); ie.WebBrowser.onClosed(() => key.o2Cache(null)); return(ie); }); Assert.That(ie.notNull(), "set_IE_Object ie was null"); // check_if_TM_WebServer_is_Running(); return(ie); }
public WatiN_IE set_IE_Object(string key) { ie = key.o2Cache<WatiN_IE>( ()=> { "[Test_TM_IE] Setting IE object to key ".info(key); ie = "IE for {0}".format(key) .popupWindow(800,500) .add_IE() .silent(true); ie.WebBrowser.onClosed(()=> key.o2Cache(null) ); return ie; }); Assert.That(ie.notNull(), "set_IE_Object ie was null"); // check_if_TM_WebServer_is_Running(); return ie; }
public static WatiN_IE open(this WatiN_IE watinIe, Uri uri) { return((watinIe.notNull() && uri.notNull()) ? watinIe.open(uri.str()) : watinIe); }
public static WatiN_IE wait_For_Uri(this WatiN_IE watinIe, Uri expectedUri, int maxWait = 1000) { return((watinIe.notNull() && expectedUri.notNull()) ? watinIe.wait_For_Url(expectedUri.str(), maxWait) : watinIe); }
public Unit_Tests_using_IE close_IE_Object() { Assert.That(ie.notNull(), "close_IE_Object ie was null"); ie.WebBrowser.closeForm_InNSeconds(CLOSE_BROWSER_IN_SECONDS); return(this); }
public void close_IE_Object() { Assert.That(ie.notNull(), "close_IE_Object ie was null"); ie.WebBrowser.closeForm_InNSeconds(Test_TM.CLOSE_BROWSER_IN_SECONDS); }
public static WatiN_IE assert_Uri_Is(this WatiN_IE watinIe, Uri expectedUri, string message = Extra_NUnit_Messages.ASSERT_URL_IS) { return((watinIe.notNull() && expectedUri.notNull()) ? watinIe.assert_Url_Is(expectedUri.str(), message) : watinIe); }