OpenQA.Selenium.ElementFindingTest.ShouldFindElementsByClassWhenItsNameIsSurroundedByWhitespace C# (CSharp) Method

ShouldFindElementsByClassWhenItsNameIsSurroundedByWhitespace() private method

        public void ShouldFindElementsByClassWhenItsNameIsSurroundedByWhitespace()
        {
            driver.Url = xhtmlTestPage;

            ReadOnlyCollection<IWebElement> elements = driver.FindElements(By.ClassName("spaceAround"));
            Assert.AreEqual(1, elements.Count);
            Assert.AreEqual("Spaced out", elements[0].Text);
        }
ElementFindingTest