Ejemplo n.º 1
0
        public void Test_GetAllWindow()
        {
            INavigationBrowser _navigation = new NavigationBrowser();

            _navigation.SetupTest("IE", "http://www.google.com.br")
            .ExecutionTest();

            _navigation.GetElementById("gsr");

            _navigation.SendKeys(Keys.Control + "t");

            var win = _navigation.GetAllWindow();

            Assert.AreEqual(2, win);
        }
Ejemplo n.º 2
0
        public void GetElementsTagName()
        {
            INavigationBrowser _navigation = new NavigationBrowser();
            IReadOnlyCollection <IWebElement> elements;

            _navigation.SetupTest("EDGE", "http://www.google.com.br").ExecutionTest();
            elements = _navigation.GetSeveralElementsByTagName("div");

            foreach (var item in elements)
            {
                var a = item.FindElements(By.TagName("input"));
            }

            _navigation.CloseBrowser();
        }