OpenQA.Selenium.TypingTest.AllPrintableKeys C# (CSharp) Method

AllPrintableKeys() private method

private AllPrintableKeys ( ) : void
return 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"));
        }