Esempio n. 1
0
        public void Contains_With_By_True()
        {
            SetUp();
            var parentElement = new PageElement(By.Id("div1"));

            Assert.IsTrue(parentElement.Contains(By.Id("p2")));
        }
Esempio n. 2
0
        public void Contains_With_By_False()
        {
            SetUp();
            var parentElement = new PageElement(By.TagName("h1"));

            Assert.IsFalse(parentElement.Contains(By.Id("p2")));
        }