Example #1
0
        public void TestGetPageFromElement()
        {
            var element = new Mock<IWebElement>(MockBehavior.Strict);

            var nativePage = new NativePage();
            var page = new SeleniumPage(nativePage);

            var result = page.GetPageFromElement(element.Object);

            Assert.IsNotNull(result);
            element.VerifyAll();
        }
Example #2
0
        public void TestGetPageFromElement()
        {
            var element = new Mock <IWebElement>(MockBehavior.Strict);

            var nativePage = new NativePage();
            var page       = new SeleniumPage(nativePage, null);

            var result = page.GetPageFromElement(element.Object);

            Assert.IsNotNull(result);
            element.VerifyAll();
        }