class Playwright::Page
def expect_websocket(predicate: nil, timeout: nil, &block)
`WebSocket` value into the `predicate` function and waits for `predicate(webSocket)` to return a truthy value.
Performs action and waits for a new `WebSocket`. If predicate is provided, it passes
def expect_websocket(predicate: nil, timeout: nil, &block) wrap_impl(@impl.expect_websocket(predicate: unwrap_impl(predicate), timeout: unwrap_impl(timeout), &wrap_block_call(block))) end