Пример #1
0
        public TestIEDocument(IHTMLDocument2 doc, TestInternetExplorer browser)
        {
            if (doc == null)
            {
                throw new CannotBuildObjectException("Document can not be null.");
            }

            this._document = doc;
            this._browser  = browser;
            RegisterEvents();
        }
Пример #2
0
        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());
            }
        }
Пример #3
0
 public TestSession(TestInternetExplorer browser)
 {
     this._browser = browser;
 }