Beispiel #1
0
        public void ShouldBeAbleToUseTabKey()
        {
            var selenium         = Bootstrapper.Container.Resolve <ISeleniumAdapter>();
            var languageResolver = Bootstrapper.Container.Resolve <ILazyExpressionResolver>();

            _interpreter.Please($"gotourl file:///{FileFinder.Find("Iteration1TestPage.html")}");
            _interpreter.AddToPlan(new Fill("login:"******"{\"UserName\"+Key.Tab+\"Password\"}")));
            _interpreter.Please(string.Empty);
            Assert.AreEqual("UserName", selenium.WebDriver.FindElement(By.Id("test4login"))
                            .GetAttribute("value"));
            Assert.AreEqual("Password", selenium.WebDriver.FindElement(By.Id("test4password"))
                            .GetAttribute("value"));
            _interpreter.Please("stop");
        }