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

NumericShiftKeys() private méthode

private NumericShiftKeys ( ) : void
Résultat 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"));
        }