public void ThenValidIsDisplayed(string expectedMessage)
        {
            var isElementPresent = new KeyPressesPage(this.driverContext).IsResultElementPresent;
            Verify.That(this.driverContext, () => Assert.IsTrue(isElementPresent, "Results element does not exist for unclicked key"), false, false);

            expectedMessage = string.Format(CultureInfo.CurrentCulture, "You entered: {0}", expectedMessage);
            var resultText = new KeyPressesPage(this.driverContext).ResultText;
            Verify.That(this.driverContext, () => Assert.AreEqual(resultText, expectedMessage), false, false);
        }
 public void ThenResultsElementIsNotDisplayed()
 {
     var isElementPresent = new KeyPressesPage(this.driverContext).IsResultElementPresent;
     Verify.That(this.driverContext, () => Assert.IsFalse(isElementPresent, "Results element exists for unclicked key"), false, false);
 }
        public void ThenResultsElementIsNotDisplayed()
        {
            var isElementPresent = new KeyPressesPage(this.driverContext).IsResultElementPresent;

            Verify.That(this.driverContext, () => Assert.IsFalse(isElementPresent, "Results element exists for unclicked key"), false, false);
        }