Esempio n. 1
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());
            }
        }
Esempio n. 2
0
 public TestSession(TestInternetExplorer browser)
 {
     this._browser = browser;
 }