waitFor method

Future<Online> waitFor(
  1. AbstractSelector waitable, {
  2. Duration? timeout,
})

Implementation

Future<Online> waitFor(AbstractSelector waitable, {Duration? timeout}) async {
  await (await page).waitForSelector(waitable.selector,
      timeout: timeout ?? default_timeout);
  return this;
}