public void ShouldTrimText() { driver.Url = (simpleTestPage); string text = driver.FindElement(By.Id("multiline")).Text; Assert.IsTrue(text.StartsWith("A div containing")); Assert.IsTrue(text.EndsWith("block level elements")); }