waitForPage method

PlaybookStep waitForPage(
  1. Object path, {
  2. Duration? timeout,
})

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),
  );
}