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); }
public override void AssertInputValueMatches(IBrowserDriver browserDriver) { string actualValue = browserDriver.GetValue(_inputName); _value.ShouldEqual(actualValue, "Asserting value for input '" + _inputName + "'."); }
public override void AssertInputValueMatches(IBrowserDriver browserDriver) { string actualValue = browserDriver.GetValue(_inputName); UITestExceptionFactory.AssertEquals(_value, actualValue, "Asserting value for input '" + _inputName + "'."); }