protected override IEnumerable <CellResult> execute(IWebElement element, StepValues values) { var handler = ElementHandlers.FindHandler(element); handler.EnterData(SearchContext, element, values.Get(Cell.Key)); return(new [] { CellResult.Ok(Cell.Key) }); }
public void modify_counts_when_ok() { var counts = new Counts(); CellResult.Ok("a").Tabulate(counts); counts.ShouldEqual(0, 0, 0, 0); }
public CellResult ProcessStep(StepValues step, ISpecContext context, object target) { var actual = step.Get(_property.Name); _property.SetValue(target, actual); return(CellResult.Ok(_property.Name)); }
protected override IEnumerable <CellResult> execute(IWebElement element, StepValues values) { assertCondition(element.Enabled, DisabledElementMessage); assertCondition(element.Displayed, HiddenElementMessage); element.Click(); return(new [] { CellResult.Ok(Cell.Key) }); }
public override IEnumerable <CellResult> Execute(StepValues values, ISpecContext context) { var input = (TInput)values.Get(_key); var @object = _creator(input); context.State.CurrentObject = @object; return(new[] { CellResult.Ok(_key) }); }