OpenQA.Selenium.TextHandlingTest.ShouldNotCollapseANonBreakingSpaces C# (CSharp) Méthode

ShouldNotCollapseANonBreakingSpaces() private méthode

private ShouldNotCollapseANonBreakingSpaces ( ) : void
Résultat 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");
        }