Hi there!!
I'm trying to validate some displayed elements in the page before do some things. But I don't know how. Anybody can helps me please?
For e.g.
@step("{0} adds a todo item called #thingToDo")
public void performAs(T actor) {
actor.attemptsTo(
[VALIDATIONS HERE BEFORE ACTIONS]
Enter.theValue(thingToDo).into(ToDoList.NEW_TODO_FIELD),
Hit.the(RETURN).keyIn(ToDoList.NEW_TODO_FIELD)
);
}