selenium.webdriver.remote.websocket_connection#

Classes

WebSocketConnection(url, timeout, interval)

class WebSocketConnection(url, timeout, interval)[source]#

Bases: object

close()[source]#
send_cmd(method, params)[source]#

Send one command and return its raw reply (result or error left intact).

The dumb-send counterpart to execute: no coroutine, no error raising. The caller parses the reply into its declared type and raises on error itself.

execute(command)[source]#
add_callback(event, callback)[source]#
on(event, callback)#
remove_callback(event, callback_id)[source]#