Protocollo WebDriver Bidi
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: Sat Apr 26 2025 17:10:07 GMT-0700 (Pacific Daylight 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)
Parametersโ
| Name | Type | Details |
|---|---|---|
params | remote.EmptyParams | {} |
Returnsโ
- <Object>
local.SessionStatusResult: Command return value with the following interface:{
ready: boolean;
message: string;
}
sessionNewโ
WebDriver Bidi command to send command method "session.new" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
Usageโ
browser.sessionNew(params)
Parametersโ
| Name | Type | Details |
|---|---|---|
params | remote.SessionNewParameters | { |
Returnsโ
- <Object>
local.SessionNewResult: Command return value with the following interface:{
sessionId: string;
capabilities: {
acceptInsecureCerts: boolean;
browserName: string;
browserVersion: string;
platformName: string;
setWindowRect: boolean;
userAgent: string;
proxy?: SessionProxyConfiguration;
webSocketUrl?: string;
};
}
sessionEndโ
WebDriver Bidi command to send command method "session.end" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.