public void MixingFindBySequenceAndFindByAllShouldThrow()
        {
            driver.Url = xhtmlTestPage;
            var page = new PageFactoryBrowserTest.InvalidAttributeCombinationPage();

            PageFactory.InitElements(driver, page);
        }
예제 #2
0
        public void MixingFindBySequenceAndFindByAllShouldThrow()
        {
            driver.Url = xhtmlTestPage;
            var page = new PageFactoryBrowserTest.InvalidAttributeCombinationPage();

            Assert.Throws <ArgumentException>(() => PageFactory.InitElements(driver, page), "Cannot specify FindsBySequence and FindsByAll on the same member");
        }
예제 #3
0
 public void MixingFindBySequenceAndFindByAllShouldThrow()
 {
     driver.Url = xhtmlTestPage;
     var page = new PageFactoryBrowserTest.InvalidAttributeCombinationPage();
     PageFactory.InitElements(driver, page);
 }
 public void MixingFindBySequenceAndFindByAllShouldThrow()
 {
     driver.Url = xhtmlTestPage;
     var page = new PageFactoryBrowserTest.InvalidAttributeCombinationPage();
     Assert.Throws<ArgumentException>(() => PageFactory.InitElements(driver, page), "Cannot specify FindsBySequence and FindsByAll on the same member");
 }