public TestIEDocument(IHTMLDocument2 doc, TestInternetExplorer browser) { if (doc == null) { throw new CannotBuildObjectException("Document can not be null."); } this._document = doc; this._browser = browser; RegisterEvents(); }
public TestIEPage(TestInternetExplorer browser, InternetExplorer ie) { if (browser == null || ie == null) { throw new CannotGetTestPageException("Browser can not be null."); } try { this._browser = browser; this._internalIE = ie; this._rootDocument = new TestIEDocument(ie.Document as IHTMLDocument2); } catch (TestException) { throw; } catch (Exception ex) { throw new CannotGetTestPageException(ex.ToString()); } }
public TestSession(TestInternetExplorer browser) { this._browser = browser; }