PlaybookStep class
One step of a playbook: a title, and what the actor does.
Steps come from the verbs a Playbook inherits (tap, type, see,
...). Write your own with step():
step('Accept cookies if asked', (actor) async {
if (await actor.exists('Accept')) await actor.tap('Accept');
}),
Constructors
-
PlaybookStep(String title, Future<
void> action(PlaybookActor actor)) -
Creates a step called
titlethat runsaction.const
Properties
-
action
→ Future<
void> Function(PlaybookActor actor) -
Performs the step.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
What the step does, shown in the caption and the report.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited