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

ShouldBeAbleToTypeTheAtCharacter() private méthode

private ShouldBeAbleToTypeTheAtCharacter ( ) : void
Résultat void
        public void ShouldBeAbleToTypeTheAtCharacter()
        {
            // simon: I tend to use a US/UK or AUS keyboard layout with English
            // as my primary language. There are consistent reports that we're
            // not handling i18nised keyboards properly. This test exposes this
            // in a lightweight manner when my keyboard is set to the DE mapping
            // and we're using IE.

            driver.Url = javascriptPage;

            IWebElement keyReporter = driver.FindElement(By.Id("keyReporter"));
            keyReporter.SendKeys("@");

            Assert.AreEqual(keyReporter.Value, "@");
        }