public void ShouldFindElementUsingSequence()
        {
            driver.Url = xhtmlTestPage;
            var page = new PageFactoryBrowserTest.Page();

            PageFactory.InitElements(driver, page);
            Assert.AreEqual("I'm a child", page.NestedElement.Text.Trim());
        }
        public void ShouldFindElementUsingAllFindBys()
        {
            driver.Url = xhtmlTestPage;
            var page = new PageFactoryBrowserTest.Page();

            PageFactory.InitElements(driver, page);
            Assert.True(page.ByAllElement.Displayed);
        }
예제 #3
0
 public void ShouldFindElementUsingSequence()
 {
     driver.Url = xhtmlTestPage;
     var page = new PageFactoryBrowserTest.Page();
     PageFactory.InitElements(driver, page);
     Assert.AreEqual("I'm a child", page.NestedElement.Text.Trim());
 }
예제 #4
0
 public void ShouldFindElementUsingAllFindBys()
 {
     driver.Url = xhtmlTestPage;
     var page = new PageFactoryBrowserTest.Page();
     PageFactory.InitElements(driver, page);
     Assert.True(page.ByAllElement.Displayed);
 }