class Playwright::Page
def wait_for_event(event, predicate: nil, timeout: nil)
event's value into the `predicate` function and waits for `predicate(event)` to return a truthy value.
Waits for given `event` to fire. If predicate is provided, it passes
**NOTE**: In most cases, you should use [`method: Page.waitForEvent`].
def wait_for_event(event, predicate: nil, timeout: nil) raise NotImplementedError.new('wait_for_event is not implemented yet.') end