Skip to content

Commit 263152a

Browse files
authored
Merge branch 'trunk' into add-python-bidi-log-examples
2 parents 0c1de49 + be25ccc commit 263152a

6 files changed

Lines changed: 52 additions & 4 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "Warnings"
3+
linkTitle: "Warnings"
4+
weight: 15
5+
description: >
6+
Explanations for the diagnostics, annotations, and IDE warnings Selenium surfaces.
7+
---
8+
9+
Selenium marks some APIs so your IDE or compiler can warn you about how they're meant to
10+
be used. These pages explain what each warning means and what to use instead.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "BiDi implementation API is internal"
3+
linkTitle: "BiDi implementation API"
4+
weight: 1
5+
aliases:
6+
[
7+
"/documentation/warnings/SELENIUM001/"
8+
]
9+
description: >
10+
Why Selenium's low-level BiDi implementation classes are marked internal,
11+
and what to use instead.
12+
---
13+
14+
If your IDE strikes through a Selenium BiDi class or method, shows an "Internal API"
15+
tooltip, or (in .NET) emits a compiler warning, you've reached one of Selenium's
16+
**internal BiDi implementation APIs**.
17+
18+
These are the low-level classes that map directly onto the BiDi (and CDP) wire protocol,
19+
under namespaces like `org.openqa.selenium.bidi.*` (Java), `OpenQA.Selenium.BiDi.*`
20+
(.NET), `selenium.webdriver.common.bidi.*` (Python), and `Selenium::WebDriver::BiDi::*`
21+
(Ruby). They are public only because the higher-level features need them.
22+
23+
## Why they are marked internal
24+
25+
The goal is for the high-level APIs to cover everything you need, so you never have to
26+
reach for these low-level classes directly. They are marked internal to steer you toward
27+
those high-level APIs — but they remain available as an escape hatch if you have a use
28+
case the high-level APIs don't yet cover.
29+
30+
## What to use instead
31+
32+
Use the high-level BiDi APIs:
33+
* [network](/documentation/webdriver/bidi/network/)
34+
* [script](/documentation/webdriver/bidi/script/)
35+
36+
If your use case is only possible through the internal classes, please
37+
[open an issue](https://github.com/SeleniumHQ/selenium/issues) so the high-level API can cover it.
38+

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Creates a new browsing context in a new window.
1717
{{< tabpane text=true >}}
1818
{{< tab header="Java" >}}
1919
{{< badge-version version="4.8" >}}
20-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L44-L47" >}}
20+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L49" >}}
2121
{{< /tab >}}
2222
{{< tab header="Ruby" >}}
2323
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Creates a new browsing context in a new window.
2323
{{< tabpane text=true >}}
2424
{{< tab header="Java" >}}
2525
{{< badge-version version="4.8" >}}
26-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L44-L47" >}}
26+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L49" >}}
2727
{{< /tab >}}
2828
{{< tab header="Ruby" >}}
2929
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.pt-br.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Creates a new browsing context in a new window.
2323
{{< tabpane text=true >}}
2424
{{< tab header="Java" >}}
2525
{{< badge-version version="4.8" >}}
26-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L44-L47" >}}
26+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L49" >}}
2727
{{< /tab >}}
2828
{{< tab header="Ruby" >}}
2929
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Creates a new browsing context in a new window.
2323
{{< tabpane text=true >}}
2424
{{< tab header="Java" >}}
2525
{{< badge-version version="4.8" >}}
26-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L44-L47" >}}
26+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L49" >}}
2727
{{< /tab >}}
2828
{{< tab header="Ruby" >}}
2929
{{< badge-code >}}

0 commit comments

Comments
 (0)