WaitableEvent.Element constructor

WaitableEvent.Element(
  1. AbstractSelector selector, {
  2. bool visible = true,
  3. bool hidden = false,
  4. Duration? timeout,
})

Implementation

factory WaitableEvent.Element(AbstractSelector selector,
        {bool visible = true, bool hidden = false, Duration? timeout}) =>
    WaitableEvent((online) async {
      Show.action('waiting', 'for', selector.selector);
      await (await online.page).waitForSelector(selector.selector,
          visible: visible, hidden: hidden, timeout: timeout);
      return true;
    });