Skip to content

Commit e4ba51c

Browse files
committed
Fix: link for Enabling BiDI fixes #1951
1 parent b8b267c commit e4ba51c

File tree

4 files changed

+33
-4
lines changed

4 files changed

+33
-4
lines changed

website_and_docs/content/documentation/webdriver/bidi/_index.en.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,33 @@ communication for enhanced browser automation and testing functionality,
2626
including streaming events from the user agent to the controlling software via WebSockets.
2727
Users will be able to listen for and record or manipulate events as they happen during the course of a Selenium session.
2828

29-
To use WebDriver BiDi, you must [enable it in Options](http://www.example.com)
29+
### Enabling BiDi in Selenium
30+
31+
In order to use WebDriver BiDi, setting the capability in the browser options will enable the required functionality:
32+
33+
{{< tabpane langEqualsHeader=true >}}
34+
{{< tab header="Java" >}}
35+
options.setCapability("webSocketUrl", true);
36+
{{< /tab >}}
37+
{{% tab header="Python" text=true %}}
38+
{{< badge-code >}}
39+
{{% /tab %}}
40+
{{< tab header="CSharp" >}}
41+
UseWebSocketUrl = true,
42+
{{< /tab >}}
43+
{{< tab header="Ruby" >}}
44+
options.web_socket_url = true
45+
{{< /tab >}}
46+
{{< tab header="JavaScript" >}}
47+
Options().enableBidi();
48+
{{< /tab >}}
49+
{{< tab header="Kotlin" >}}
50+
options.setCapability("webSocketUrl", true);
51+
{{< /tab >}}
52+
{{< /tabpane >}}
53+
54+
This enables the WebSocket connection for bidirectional communication,
55+
unlocking the full potential of the WebDriver BiDi protocol.
3056

3157
Note that Selenium is updating its entire implementation from WebDriver Classic to WebDriver BiDi (while
3258
maintaining backwards compatibility as much as possible), but this section of documentation focuses on the new

website_and_docs/content/documentation/webdriver/bidi/logging.en.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ aliases: [
1111
]
1212
---
1313

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

1617
## Console Message Handlers
1718

website_and_docs/content/documentation/webdriver/bidi/network.en.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ aliases: [
1212

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

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

1718
## Authentication Handlers
1819

website_and_docs/content/documentation/webdriver/bidi/script.en.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ aliases: [
1212

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

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

1718
## Script Pinning
1819

0 commit comments

Comments
 (0)