Skip to content

Commit

Permalink
Fix: link for Enabling BiDI fixes #1951
Browse files Browse the repository at this point in the history
  • Loading branch information
harsha509 committed Sep 20, 2024
1 parent b8b267c commit e4ba51c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,33 @@ communication for enhanced browser automation and testing functionality,
including streaming events from the user agent to the controlling software via WebSockets.
Users will be able to listen for and record or manipulate events as they happen during the course of a Selenium session.

To use WebDriver BiDi, you must [enable it in Options](http://www.example.com)
### Enabling BiDi in Selenium

In order to use WebDriver BiDi, setting the capability in the browser options will enable the required functionality:

{{< tabpane langEqualsHeader=true >}}
{{< tab header="Java" >}}
options.setCapability("webSocketUrl", true);
{{< /tab >}}
{{% tab header="Python" text=true %}}
{{< badge-code >}}
{{% /tab %}}
{{< tab header="CSharp" >}}
UseWebSocketUrl = true,
{{< /tab >}}
{{< tab header="Ruby" >}}
options.web_socket_url = true
{{< /tab >}}
{{< tab header="JavaScript" >}}
Options().enableBidi();
{{< /tab >}}
{{< tab header="Kotlin" >}}
options.setCapability("webSocketUrl", true);
{{< /tab >}}
{{< /tabpane >}}

This enables the WebSocket connection for bidirectional communication,
unlocking the full potential of the WebDriver BiDi protocol.

Note that Selenium is updating its entire implementation from WebDriver Classic to WebDriver BiDi (while
maintaining backwards compatibility as much as possible), but this section of documentation focuses on the new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ aliases: [
]
---

Remember that to use WebDriver BiDi, you must [enable it in Options](http://www.example.com)
Remember that to use WebDriver BiDi, you must enable it in Options.
For more details, see [Enabling BiDi in Selenium]({{< ref "BiDi" >}})

## Console Message Handlers

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ aliases: [

The implementation of these features is being tracked here: [#13993](https://github.com/SeleniumHQ/selenium/issues/13993)

Remember that to use WebDriver BiDi, you must [enable it in Options](http://www.example.com)
Remember that to use WebDriver BiDi, you must enable it in Options.
For more details, see [Enabling BiDi in Selenium]({{< ref "BiDi" >}})

## Authentication Handlers

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ aliases: [

The implementation of these features is being tracked here: [#13992](https://github.com/SeleniumHQ/selenium/issues/13992)

Remember that to use WebDriver BiDi, you must [enable it in Options](http://www.example.com)
Remember that to use WebDriver BiDi, you must enable it in Options.
For more details, see [Enabling BiDi in Selenium]({{< ref "BiDi" >}})

## Script Pinning

Expand Down

0 comments on commit e4ba51c

Please sign in to comment.