Example #1
0
        public void KendoTreeViewSelectTest()
        {
            var text     = "logo.png";
            var homePage = new KendoTreeViewPage(this.DriverContext);

            homePage.Open().CollapseTreeView().SelectElementByText(text);
            Assert.AreEqual(text, homePage.SelectedOption);
        }
Example #2
0
        public void KendoTreeViewFindElementsByTextTest()
        {
            var text     = "logo.png";
            var elements = new Collection <string> {
                "logo.png"
            };
            var homePage = new KendoTreeViewPage(this.DriverContext);

            homePage.Open();
            CollectionAssert.AreEqual(elements, homePage.FindElementsByText(text));
        }