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

ShiftSelectionDeletes() private méthode

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

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

            element.SendKeys("abcd efgh");
            Assert.AreEqual(element.Value, "abcd efgh");

            //Could be chord problem
            element.SendKeys(Keys.Shift + Keys.Left + Keys.Left + Keys.Left);
            element.SendKeys(Keys.Delete);
            Assert.AreEqual(element.Value, "abcd e");
        }