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

            PageFactory.InitElements(driver, page);
        }
Example #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");
        }
Example #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");
 }