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

            PageFactory.InitElements(driver, page);
        }
Ejemplo 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");
        }
Ejemplo n.º 3
0
 public void MixingFindBySequenceAndFindByAllShouldThrow()
 {
     driver.Url = xhtmlTestPage;
     var page = new PageFactoryBrowserTest.InvalidAttributeCombinationPage();
     PageFactory.InitElements(driver, page);
 }
Ejemplo n.º 4
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");
 }