WebDriver Bidi Protocol
These protocol commands are generated based on the current living
WebDriver Bidi specification. To enable the protocol
for your test make sure to have webSocketUrl: true
set in your capabilities.
Browser support is not guaranteed and interfaces can change in the future. The standard is currently under development and browser vendors will add these capabilities based on their own timelines.
Last Updated: Tue Apr 16 2024 14:33:45 GMT+0000 (Coordinated Universal Time)
send
Send socket commands via WebDriver Bidi
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
Usage
browser.send(params)
Parameters
Name | Type | Details |
---|---|---|
params | CommandData | socket payload |
Returns
- <Object>
CommandResponse
: WebDriver Bidi response
sendAsync
Send asynchronous socket commands via WebDriver Bidi
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
Usage
browser.sendAsync(params)
Parameters
Name | Type | Details |
---|---|---|
params | CommandData | socket payload |
Returns
- <Number>
id
: id of WebDriver Bidi request
sessionStatus
WebDriver Bidi command to send command method "session.status" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
Usage
browser.sessionStatus(params)