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

NumericShiftKeys() private method

private NumericShiftKeys ( ) : void
return void
        public void NumericShiftKeys()
        {
            driver.Url = javascriptPage;

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

            String numericShiftsEtc = "~!@#$%^&*()_+{}:\"<>?|END~";
            element.SendKeys(numericShiftsEtc);

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