OpenQA.Selenium.TypingTest.AllPrintableKeys C# (CSharp) Méthode

AllPrintableKeys() private méthode

private AllPrintableKeys ( ) : void
Résultat void
        public void AllPrintableKeys()
        {
            driver.Url = javascriptPage;

            IWebElement result = driver.FindElement(By.Id("result"));
            IWebElement element = driver.FindElement(By.Id("keyReporter"));

            String allPrintable =
                "!\"#$%&'()*+,-./0123456789:;<=>?@ ABCDEFGHIJKLMNO" +
                "PQRSTUVWXYZ [\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
            element.SendKeys(allPrintable);

            Assert.AreEqual(element.Value, allPrintable);
            Assert.IsTrue(result.Text.Trim().Contains(" up: 16"));
        }