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

            PageFactory.InitElements(driver, page);
        }
Exemplo n.º 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");
        }
Exemplo n.º 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");
 }