waitFor method
Waits up to timeout (10 seconds by default) for target.
Implementation
PlaybookStep waitFor(Object target, {Duration? timeout}) {
final PlaybookFinder finder = Find.target(target);
return PlaybookStep(
'Wait for ${finder.description}',
(PlaybookActor actor) => actor.waitFor(finder, timeout: timeout),
);
}