waitForPage method
Waits for the page at path to be on screen.
path is a route path or a page's RouteView, e.g. HomePage.path.
Implementation
PlaybookStep waitForPage(Object path, {Duration? timeout}) {
final String route = _path(path);
return PlaybookStep(
'Wait for page $route',
(PlaybookActor actor) => actor.waitForPage(route, timeout: timeout),
);
}