Exemplo n.º 1
0
        public static IBrowserDriver AssertValue <TFormType>(this IBrowserDriver driver,
                                                             Expression <Func <TFormType, object> > expression,
                                                             string expectedValue)
        {
            string id    = ReflectionHelper.BuildNameFrom(expression);
            string value = driver.GetValue(id);

            value.ShouldBe(expectedValue);
            return(driver);
        }
Exemplo n.º 2
0
        public override void AssertInputValueMatches(IBrowserDriver browserDriver)
        {
            string actualValue = browserDriver.GetValue(_inputName);

            _value.ShouldEqual(actualValue, "Asserting value for input '" + _inputName + "'.");
        }
Exemplo n.º 3
0
        public override void AssertInputValueMatches(IBrowserDriver browserDriver)
        {
            string actualValue = browserDriver.GetValue(_inputName);

            UITestExceptionFactory.AssertEquals(_value, actualValue, "Asserting value for input '" + _inputName + "'.");
        }