Skip to content

Commit fcf23f0

Browse files
Phase 2: Update documentation with Ruby and Python BiDi code references
- browsing_context.en.md: Replace 8 placeholder badges with Ruby/Python code references - script.en.md: Replace 6 placeholder badges with Ruby/Python code references - network.en.md: Replace 4 placeholder badges with Ruby/Python code references - input.en.md: Replace 2 placeholder badges with Ruby/Python code references This enables rendering of examples on the Netlify preview. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 612fe1d commit fcf23f0

4 files changed

Lines changed: 120 additions & 20 deletions

File tree

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

Lines changed: 48 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ Creates a new browsing context in a new window.
2020
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L44-L47" >}}
2121
{{< /tab >}}
2222
{{< tab header="Ruby" >}}
23-
{{< badge-code >}}
23+
{{< badge-version version="4.8" >}}
24+
{{< gh-codeblock path="/examples/ruby/spec/bidi/browsing_context_spec.rb#L17-21" >}}
2425
{{< /tab >}}
2526
{{< tab header="JavaScript" >}}
2627
{{< badge-version version="4.8" >}}
2728
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContext.spec.js#L33-L35" >}}
2829
{{< /tab >}}
30+
{{< tab header="Python" >}}
31+
{{< badge-version version="4.8" >}}
32+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_browsing_context.py#L17-25" >}}
33+
{{< /tab >}}
2934
{{< tab header="Kotlin" >}}
3035
{{< badge-code >}}
3136
{{< /tab >}}
@@ -41,12 +46,17 @@ Creates a new browsing context in a new tab.
4146
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L58-L61" >}}
4247
{{< /tab >}}
4348
{{< tab header="Ruby" >}}
44-
{{< badge-code >}}
49+
{{< badge-version version="4.8" >}}
50+
{{< gh-codeblock path="/examples/ruby/spec/bidi/browsing_context_spec.rb#L24-28" >}}
4551
{{< /tab >}}
4652
{{< tab header="JavaScript" >}}
4753
{{< badge-version version="4.8" >}}
4854
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContext.spec.js#L48-L50" >}}
4955
{{< /tab >}}
56+
{{< tab header="Python" >}}
57+
{{< badge-version version="4.8" >}}
58+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_browsing_context.py#L27-35" >}}
59+
{{< /tab >}}
5060
{{< tab header="Kotlin" >}}
5161
{{< badge-code >}}
5262
{{< /tab >}}
@@ -62,12 +72,17 @@ Creates a browsing context for the existing tab/window to run commands.
6272
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L37-L41" >}}
6373
{{< /tab >}}
6474
{{< tab header="Ruby" >}}
65-
{{< badge-code >}}
75+
{{< badge-version version="4.8" >}}
76+
{{< gh-codeblock path="/examples/ruby/spec/bidi/browsing_context_spec.rb#L9-14" >}}
6677
{{< /tab >}}
6778
{{< tab header="JavaScript" >}}
6879
{{< badge-version version="4.8" >}}
6980
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContext.spec.js#L25-L28" >}}
7081
{{< /tab >}}
82+
{{< tab header="Python" >}}
83+
{{< badge-version version="4.8" >}}
84+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_browsing_context.py#L6-15" >}}
85+
{{< /tab >}}
7186
{{< tab header="Kotlin" >}}
7287
{{< badge-code >}}
7388
{{< /tab >}}
@@ -124,12 +139,17 @@ The API allows to pass the reference browsing context, which is used to create a
124139
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L72-L80" >}}
125140
{{< /tab >}}
126141
{{< tab header="Ruby" >}}
127-
{{< badge-code >}}
142+
{{< badge-version version="4.8" >}}
143+
{{< gh-codeblock path="/examples/ruby/spec/bidi/browsing_context_spec.rb#L31-42" >}}
128144
{{< /tab >}}
129145
{{< tab header="JavaScript" >}}
130146
{{< badge-version version="4.8" >}}
131147
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContext.spec.js#L67" >}}
132148
{{< /tab >}}
149+
{{< tab header="Python" >}}
150+
{{< badge-version version="4.8" >}}
151+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_browsing_context.py#L37-55" >}}
152+
{{< /tab >}}
133153
{{< tab header="Kotlin" >}}
134154
{{< badge-code >}}
135155
{{< /tab >}}
@@ -164,12 +184,17 @@ Provides a tree of all browsing contexts descending from the parent browsing con
164184
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L95-L108" >}}
165185
{{< /tab >}}
166186
{{< tab header="Ruby" >}}
167-
{{< badge-code >}}
187+
{{< badge-version version="4.8" >}}
188+
{{< gh-codeblock path="/examples/ruby/spec/bidi/browsing_context_spec.rb#L59-70" >}}
168189
{{< /tab >}}
169190
{{< tab header="JavaScript" >}}
170191
{{< badge-version version="4.8" >}}
171192
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContext.spec.js#L90-L96" >}}
172193
{{< /tab >}}
194+
{{< tab header="Python" >}}
195+
{{< badge-version version="4.8" >}}
196+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_browsing_context.py#L57-71" >}}
197+
{{< /tab >}}
173198
{{< tab header="Kotlin" >}}
174199
{{< badge-code >}}
175200
{{< /tab >}}
@@ -223,12 +248,17 @@ Provides a tree of all browsing contexts descending from the parent browsing con
223248
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L136-L153" >}}
224249
{{< /tab >}}
225250
{{< tab header="Ruby" >}}
226-
{{< badge-code >}}
251+
{{< badge-version version="4.8" >}}
252+
{{< gh-codeblock path="/examples/ruby/spec/bidi/browsing_context_spec.rb#L92-105" >}}
227253
{{< /tab >}}
228254
{{< tab header="JavaScript" >}}
229255
{{< badge-version version="4.8" >}}
230256
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContext.spec.js#L115-L118" >}}
231257
{{< /tab >}}
258+
{{< tab header="Python" >}}
259+
{{< badge-version version="4.8" >}}
260+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_browsing_context.py#L73-85" >}}
261+
{{< /tab >}}
232262
{{< tab header="Kotlin" >}}
233263
{{< badge-code >}}
234264
{{< /tab >}}
@@ -242,13 +272,18 @@ Provides a tree of all browsing contexts descending from the parent browsing con
242272
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L157-L161" >}}
243273
{{< /tab >}}
244274
{{< tab header="Ruby" >}}
245-
{{< badge-code >}}
275+
{{< badge-version version="4.14.1" >}}
276+
{{< gh-codeblock path="/examples/ruby/spec/bidi/browsing_context_spec.rb#L108-113" >}}
246277
{{< /tab >}}
247278
{{< tab header="JavaScript" >}}
248279
{{< badge-version version="4.15" >}}
249280
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContext.spec.js#L192-L194" >}}
250281
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContext.spec.js#L204" >}}
251282
{{< /tab >}}
283+
{{< tab header="Python" >}}
284+
{{< badge-version version="4.14.1" >}}
285+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_browsing_context.py#L87-99" >}}
286+
{{< /tab >}}
252287
{{< tab header="Kotlin" >}}
253288
{{< badge-code >}}
254289
{{< /tab >}}
@@ -263,12 +298,17 @@ Provides a tree of all browsing contexts descending from the parent browsing con
263298
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L169-L173" >}}
264299
{{< /tab >}}
265300
{{< tab header="Ruby" >}}
266-
{{< badge-code >}}
301+
{{< badge-version version="4.13.0" >}}
302+
{{< gh-codeblock path="/examples/ruby/spec/bidi/browsing_context_spec.rb#L116-125" >}}
267303
{{< /tab >}}
268304
{{< tab header="JavaScript" >}}
269305
{{< badge-version version="4.15" >}}
270306
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContext.spec.js#L351" >}}
271307
{{< /tab >}}
308+
{{< tab header="Python" >}}
309+
{{< badge-version version="4.13.0" >}}
310+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_browsing_context.py#L101-117" >}}
311+
{{< /tab >}}
272312
{{< tab header="Kotlin" >}}
273313
{{< badge-code >}}
274314
{{< /tab >}}

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,17 @@ This section contains the APIs related to input commands.
1717
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/ActionsTest.java#L41-L44" >}}
1818
{{< /tab >}}
1919
{{< tab header="Ruby" >}}
20-
{{< badge-code >}}
20+
{{< badge-version version="4.17" >}}
21+
{{< gh-codeblock path="/examples/ruby/spec/bidi/input_spec.rb#L9-17" >}}
2122
{{< /tab >}}
2223
{{< tab header="JavaScript" >}}
2324
{{< badge-version version="4.17" >}}
2425
{{< gh-codeblock path="/examples/javascript/test/bidirectional/input.spec.js#L27-L29" >}}
2526
{{< /tab >}}
27+
{{< tab header="Python" >}}
28+
{{< badge-version version="4.17" >}}
29+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_input.py#L7-23" >}}
30+
{{< /tab >}}
2631
{{< tab header="Kotlin" >}}
2732
{{< badge-code >}}
2833
{{< /tab >}}
@@ -36,12 +41,17 @@ This section contains the APIs related to input commands.
3641
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/ActionsTest.java#L59-L65" >}}
3742
{{< /tab >}}
3843
{{< tab header="Ruby" >}}
39-
{{< badge-code >}}
44+
{{< badge-version version="4.17" >}}
45+
{{< gh-codeblock path="/examples/ruby/spec/bidi/input_spec.rb#L20-31" >}}
4046
{{< /tab >}}
4147
{{< tab header="JavaScript" >}}
4248
{{< badge-version version="4.17" >}}
4349
{{< gh-codeblock path="/examples/javascript/test/bidirectional/input.spec.js#L55" >}}
4450
{{< /tab >}}
51+
{{< tab header="Python" >}}
52+
{{< badge-version version="4.17" >}}
53+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_input.py#L25-43" >}}
54+
{{< /tab >}}
4555
{{< tab header="Kotlin" >}}
4656
{{< badge-code >}}
4757
{{< /tab >}}

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

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@ This section contains the APIs related to network commands.
1818
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/NetworkCommandsTest.java#L36-L38" >}}
1919
{{< /tab >}}
2020
{{< tab header="Ruby" >}}
21-
{{< badge-code >}}
21+
{{< badge-version version="4.18" >}}
22+
{{< gh-codeblock path="/examples/ruby/spec/bidi/network_spec.rb#L16-20" >}}
2223
{{< /tab >}}
2324
{{< tab header="JavaScript" >}}
2425
{{< badge-version version="4.18" >}}
2526
{{< gh-codeblock path="/examples/javascript/test/bidirectional/network_commands.spec.js#L29" >}}
2627
{{< /tab >}}
28+
{{< tab header="Python" >}}
29+
{{< badge-version version="4.18" >}}
30+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_network.py#L6-21" >}}
31+
{{< /tab >}}
2732
{{< tab header="Kotlin" >}}
2833
{{< badge-code >}}
2934
{{< /tab >}}
@@ -135,12 +140,17 @@ This section contains the APIs related to network events.
135140
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/NetworkEventsTest.java#L30-L35" >}}
136141
{{< /tab >}}
137142
{{< tab header="Ruby" >}}
138-
{{< badge-code >}}
143+
{{< badge-version version="4.15" >}}
144+
{{< gh-codeblock path="/examples/ruby/spec/bidi/network_spec.rb#L30-34" >}}
139145
{{< /tab >}}
140146
{{< tab header="JavaScript" >}}
141147
{{< badge-version version="4.18" >}}
142148
{{< gh-codeblock path="/examples/javascript/test/bidirectional/network_events.spec.js#L23-L29" >}}
143149
{{< /tab >}}
150+
{{< tab header="Python" >}}
151+
{{< badge-version version="4.15" >}}
152+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_network.py#L23-38" >}}
153+
{{< /tab >}}
144154
{{< tab header="Kotlin" >}}
145155
{{< badge-code >}}
146156
{{< /tab >}}
@@ -154,12 +164,17 @@ This section contains the APIs related to network events.
154164
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/NetworkEventsTest.java#L45-L51" >}}
155165
{{< /tab >}}
156166
{{< tab header="Ruby" >}}
157-
{{< badge-code >}}
167+
{{< badge-version version="4.15" >}}
168+
{{< gh-codeblock path="/examples/ruby/spec/bidi/network_spec.rb#L44-49" >}}
158169
{{< /tab >}}
159170
{{< tab header="JavaScript" >}}
160171
{{< badge-version version="4.18" >}}
161172
{{< gh-codeblock path="/examples/javascript/test/bidirectional/network_events.spec.js#L82-L88" >}}
162173
{{< /tab >}}
174+
{{< tab header="Python" >}}
175+
{{< badge-version version="4.15" >}}
176+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_network.py#L55-70" >}}
177+
{{< /tab >}}
163178
{{< tab header="Kotlin" >}}
164179
{{< badge-code >}}
165180
{{< /tab >}}
@@ -192,11 +207,16 @@ This section contains the APIs related to network events.
192207
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/NetworkEventsTest.java#L101-L106" >}}
193208
{{< /tab >}}
194209
{{< tab header="Ruby" >}}
195-
{{< badge-code >}}
210+
{{< badge-version version="4.17" >}}
211+
{{< gh-codeblock path="/examples/ruby/spec/bidi/network_spec.rb#L16-20" >}}
196212
{{< /tab >}}
197213
{{< tab header="JavaScript" >}}
198214
{{< badge-code >}}
199215
{{< /tab >}}
216+
{{< tab header="Python" >}}
217+
{{< badge-version version="4.17" >}}
218+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_network.py#L40-53" >}}
219+
{{< /tab >}}
200220
{{< tab header="Kotlin" >}}
201221
{{< badge-code >}}
202222
{{< /tab >}}

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

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@ This section contains the APIs related to script commands.
1818
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/ScriptTest.java#L52-L75" >}}
1919
{{< /tab >}}
2020
{{< tab header="Ruby" >}}
21-
{{< badge-code >}}
21+
{{< badge-version version="4.15" >}}
22+
{{< gh-codeblock path="/examples/ruby/spec/bidi/script_spec.rb#L9-21" >}}
2223
{{< /tab >}}
2324
{{< tab header="JavaScript" >}}
2425
{{< badge-version version="4.9" >}}
2526
{{< gh-codeblock path="/examples/javascript/test/bidirectional/script_commands.spec.js#L32-L53" >}}
2627
{{< /tab >}}
28+
{{< tab header="Python" >}}
29+
{{< badge-version version="4.15" >}}
30+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_script.py#L7-18" >}}
31+
{{< /tab >}}
2732
{{< tab header="Kotlin" >}}
2833
{{< badge-code >}}
2934
{{< /tab >}}
@@ -56,12 +61,17 @@ This section contains the APIs related to script commands.
5661
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/ScriptTest.java#L219-L229" >}}
5762
{{< /tab >}}
5863
{{< tab header="Ruby" >}}
59-
{{< badge-code >}}
64+
{{< badge-version version="4.15" >}}
65+
{{< gh-codeblock path="/examples/ruby/spec/bidi/script_spec.rb#L57-63" >}}
6066
{{< /tab >}}
6167
{{< tab header="JavaScript" >}}
6268
{{< badge-version version="4.9" >}}
6369
{{< gh-codeblock path="/examples/javascript/test/bidirectional/script_commands.spec.js#L222-L227" >}}
6470
{{< /tab >}}
71+
{{< tab header="Python" >}}
72+
{{< badge-version version="4.15" >}}
73+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_script.py#L56-71" >}}
74+
{{< /tab >}}
6575
{{< tab header="Kotlin" >}}
6676
{{< badge-code >}}
6777
{{< /tab >}}
@@ -75,12 +85,17 @@ This section contains the APIs related to script commands.
7585
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/ScriptTest.java#L239-L242" >}}
7686
{{< /tab >}}
7787
{{< tab header="Ruby" >}}
78-
{{< badge-code >}}
88+
{{< badge-version version="4.15" >}}
89+
{{< gh-codeblock path="/examples/ruby/spec/bidi/script_spec.rb#L24-30" >}}
7990
{{< /tab >}}
8091
{{< tab header="JavaScript" >}}
8192
{{< badge-version version="4.9" >}}
8293
{{< gh-codeblock path="/examples/javascript/test/bidirectional/script_commands.spec.js#L237-L239" >}}
8394
{{< /tab >}}
95+
{{< tab header="Python" >}}
96+
{{< badge-version version="4.15" >}}
97+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_script.py#L20-28" >}}
98+
{{< /tab >}}
8499
{{< tab header="Kotlin" >}}
85100
{{< badge-code >}}
86101
{{< /tab >}}
@@ -113,12 +128,17 @@ This section contains the APIs related to script commands.
113128
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/ScriptTest.java#L293-L299" >}}
114129
{{< /tab >}}
115130
{{< tab header="Ruby" >}}
116-
{{< badge-code >}}
131+
{{< badge-version version="4.15" >}}
132+
{{< gh-codeblock path="/examples/ruby/spec/bidi/script_spec.rb#L66-75" >}}
117133
{{< /tab >}}
118134
{{< tab header="JavaScript" >}}
119135
{{< badge-version version="4.9" >}}
120136
{{< gh-codeblock path="/examples/javascript/test/bidirectional/script_commands.spec.js#L292-L299" >}}
121137
{{< /tab >}}
138+
{{< tab header="Python" >}}
139+
{{< badge-version version="4.15" >}}
140+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_script.py#L56-71" >}}
141+
{{< /tab >}}
122142
{{< tab header="Kotlin" >}}
123143
{{< badge-code >}}
124144
{{< /tab >}}
@@ -132,12 +152,17 @@ This section contains the APIs related to script commands.
132152
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/ScriptTest.java#L322-L322" >}}
133153
{{< /tab >}}
134154
{{< tab header="Ruby" >}}
135-
{{< badge-code >}}
155+
{{< badge-version version="4.15" >}}
156+
{{< gh-codeblock path="/examples/ruby/spec/bidi/script_spec.rb#L33-39" >}}
136157
{{< /tab >}}
137158
{{< tab header="JavaScript" >}}
138159
{{< badge-version version="4.9" >}}
139160
{{< gh-codeblock path="/examples/javascript/test/bidirectional/script_commands.spec.js#L330-L330" >}}
140161
{{< /tab >}}
162+
{{< tab header="Python" >}}
163+
{{< badge-version version="4.15" >}}
164+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_script.py#L30-40" >}}
165+
{{< /tab >}}
141166
{{< tab header="Kotlin" >}}
142167
{{< badge-code >}}
143168
{{< /tab >}}
@@ -287,12 +312,17 @@ This section contains the APIs related to script events.
287312
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/ScriptEventsTest.java#L37-L51" >}}
288313
{{< /tab >}}
289314
{{< tab header="Ruby" >}}
290-
{{< badge-code >}}
315+
{{< badge-version version="4.16" >}}
316+
{{< gh-codeblock path="/examples/ruby/spec/bidi/script_spec.rb#L42-54" >}}
291317
{{< /tab >}}
292318
{{< tab header="JavaScript" >}}
293319
{{< badge-version version="4.18" >}}
294320
{{< gh-codeblock path="/examples/javascript/test/bidirectional/script_events.spec.js#L26-L43" >}}
295321
{{< /tab >}}
322+
{{< tab header="Python" >}}
323+
{{< badge-version version="4.16" >}}
324+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_script.py#L42-54" >}}
325+
{{< /tab >}}
296326
{{< tab header="Kotlin" >}}
297327
{{< badge-code >}}
298328
{{< /tab >}}

0 commit comments

Comments
 (0)