WaitableEvent.Element constructor
WaitableEvent.Element(
- AbstractSelector selector, {
- bool visible = true,
- 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;
});