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

ShouldBeAbleToEnterDatesAfterFillingInOtherValuesFirst() private méthode

private ShouldBeAbleToEnterDatesAfterFillingInOtherValuesFirst ( ) : void
Résultat void
        public void ShouldBeAbleToEnterDatesAfterFillingInOtherValuesFirst()
        {
            driver.Url = formsPage;
            IWebElement input = driver.FindElement(By.Id("working"));
            string expectedValue = "10/03/2007 to 30/07/1993";
            input.SendKeys(expectedValue);
            string seenValue = input.GetAttribute("value");

            Assert.AreEqual(seenValue, expectedValue);
        }