OpenQA.Selenium.TextHandlingTest.ShouldNotCollapseANonBreakingSpaces C# (CSharp) Метод

ShouldNotCollapseANonBreakingSpaces() приватный Метод

private ShouldNotCollapseANonBreakingSpaces ( ) : void
Результат void
        public void ShouldNotCollapseANonBreakingSpaces()
        {
            driver.Url = (simpleTestPage);
            IWebElement element = driver.FindElement(By.Id("nbspandspaces"));
            string text = element.Text;

            Assert.AreEqual(text, "This line has a   non-breaking space and spaces");
        }