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

ShouldBeAbleToSetMoreThanOneLineOfTextInATextArea() private méthode

private ShouldBeAbleToSetMoreThanOneLineOfTextInATextArea ( ) : void
Résultat void
        public void ShouldBeAbleToSetMoreThanOneLineOfTextInATextArea()
        {
            driver.Url = formsPage;
            IWebElement textarea = driver.FindElement(By.Id("withText"));
            textarea.Clear();
            string expectedText = "I like cheese" + newLine + newLine + "It's really nice";
            textarea.SendKeys(expectedText);

            string seenText = textarea.GetAttribute("value");
            Assert.AreEqual(seenText, expectedText);
        }