Skip to content

Commit cf137ab

Browse files
authored
Merge branch 'trunk' into special_features_ruby_examples
2 parents 556fecb + dd52333 commit cf137ab

26 files changed

+1372
-193
lines changed

examples/javascript/test/waits/waits.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ suite(function (env) {
4747
await driver.get('https://www.selenium.dev/selenium/web/dynamic.html');
4848
let revealed = await driver.findElement(By.id("revealed"));
4949
await driver.findElement(By.id("reveal")).click();
50-
await driver.wait(until.elementIsVisible(revealed), 2000);
50+
await driver.wait(until.elementIsDisabled(revealed), 2000);
5151
await revealed.sendKeys("Displayed");
5252
assert.equal(await revealed.getAttribute("value"), "Displayed")
5353
})

examples/kotlin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<version>1.0.0</version>
1010

1111
<properties>
12-
<kotlin.version>1.9.23</kotlin.version>
12+
<kotlin.version>1.9.24</kotlin.version>
1313

1414
<slf4j.version>2.0.13</slf4j.version>
1515
<logback.version>1.5.6</logback.version>

website_and_docs/content/documentation/webdriver/bidirectional/webdriver_bidi/browsing_context.en.md

Lines changed: 176 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ aliases: [
77
]
88
---
99

10+
## Commands
1011
This section contains the APIs related to browsing context commands.
1112

12-
## Open a new window
13+
### Open a new window
1314

1415
Creates a new browsing context in a new window.
1516

@@ -30,7 +31,7 @@ Creates a new browsing context in a new window.
3031
{{< /tab >}}
3132
{{< /tabpane >}}
3233

33-
## Open a new tab
34+
### Open a new tab
3435

3536
Creates a new browsing context in a new tab.
3637

@@ -51,7 +52,7 @@ Creates a new browsing context in a new tab.
5152
{{< /tab >}}
5253
{{< /tabpane >}}
5354

54-
## Use existing window handle
55+
### Use existing window handle
5556

5657
Creates a browsing context for the existing tab/window to run commands.
5758

@@ -73,7 +74,7 @@ Creates a browsing context for the existing tab/window to run commands.
7374
{{< /tabpane >}}
7475

7576

76-
## Open a window with a reference browsing context
77+
### Open a window with a reference browsing context
7778
A reference browsing context is a [top-level browsing context](https://html.spec.whatwg.org/multipage/document-sequences.html#top-level-browsing-context).
7879
The API allows to pass the reference browsing context, which is used to create a new window. The implementation is operating system specific.
7980

@@ -94,7 +95,7 @@ The API allows to pass the reference browsing context, which is used to create a
9495
{{< /tab >}}
9596
{{< /tabpane >}}
9697

97-
## Open a tab with a reference browsing context
98+
### Open a tab with a reference browsing context
9899
A reference browsing context is a [top-level browsing context](https://html.spec.whatwg.org/multipage/document-sequences.html#top-level-browsing-context).
99100
The API allows to pass the reference browsing context, which is used to create a new tab. The implementation is operating system specific.
100101

@@ -115,7 +116,7 @@ The API allows to pass the reference browsing context, which is used to create a
115116
{{< /tab >}}
116117
{{< /tabpane >}}
117118

118-
## Navigate to a URL
119+
### Navigate to a URL
119120

120121
{{< tabpane text=true >}}
121122
{{< tab header="Java" >}}
@@ -134,7 +135,7 @@ The API allows to pass the reference browsing context, which is used to create a
134135
{{< /tab >}}
135136
{{< /tabpane >}}
136137

137-
## Navigate to a URL with readiness state
138+
### Navigate to a URL with readiness state
138139

139140
{{< tabpane text=true >}}
140141
{{< tab header="Java" >}}
@@ -153,7 +154,7 @@ The API allows to pass the reference browsing context, which is used to create a
153154
{{< /tab >}}
154155
{{< /tabpane >}}
155156

156-
## Get browsing context tree
157+
### Get browsing context tree
157158

158159
Provides a tree of all browsing contexts descending from the parent browsing context, including the parent browsing context.
159160

@@ -174,7 +175,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
174175
{{< /tab >}}
175176
{{< /tabpane >}}
176177

177-
## Get browsing context tree with depth
178+
### Get browsing context tree with depth
178179

179180
Provides a tree of all browsing contexts descending from the parent browsing context, including the parent browsing context upto the depth value passed.
180181

@@ -195,7 +196,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
195196
{{< /tab >}}
196197
{{< /tabpane >}}
197198

198-
## Get All Top level browsing contexts
199+
### Get All Top level browsing contexts
199200

200201
{{< tabpane text=true >}}
201202
{{< tab header="Java" >}}
@@ -214,7 +215,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
214215
{{< /tab >}}
215216
{{< /tabpane >}}
216217

217-
## Close a tab/window
218+
### Close a tab/window
218219

219220
{{< tabpane text=true >}}
220221
{{< tab header="Java" >}}
@@ -233,7 +234,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
233234
{{< /tab >}}
234235
{{< /tabpane >}}
235236

236-
## Activate a browsing context
237+
### Activate a browsing context
237238

238239
{{< tabpane text=true >}}
239240
{{< tab header="Java" >}}
@@ -253,7 +254,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
253254
{{< /tabpane >}}
254255

255256

256-
## Reload a browsing context
257+
### Reload a browsing context
257258

258259
{{< tabpane text=true >}}
259260
{{< tab header="Java" >}}
@@ -272,7 +273,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
272273
{{< /tab >}}
273274
{{< /tabpane >}}
274275

275-
## Handle user prompt
276+
### Handle user prompt
276277

277278
{{< tabpane text=true >}}
278279
{{< tab header="Java" >}}
@@ -291,7 +292,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
291292
{{< /tab >}}
292293
{{< /tabpane >}}
293294

294-
## Capture Screenshot
295+
### Capture Screenshot
295296

296297
{{< tabpane text=true >}}
297298
{{< tab header="Java" >}}
@@ -310,7 +311,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
310311
{{< /tab >}}
311312
{{< /tabpane >}}
312313

313-
## Capture Viewport Screenshot
314+
### Capture Viewport Screenshot
314315

315316
{{< tabpane text=true >}}
316317
{{< tab header="Java" >}}
@@ -329,7 +330,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
329330
{{< /tab >}}
330331
{{< /tabpane >}}
331332

332-
## Capture Element Screenshot
333+
### Capture Element Screenshot
333334

334335
{{< tabpane text=true >}}
335336
{{< tab header="Java" >}}
@@ -348,7 +349,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
348349
{{< /tab >}}
349350
{{< /tabpane >}}
350351

351-
## Set Viewport
352+
### Set Viewport
352353

353354
{{< tabpane text=true >}}
354355
{{< tab header="Java" >}}
@@ -368,7 +369,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
368369
{{< /tabpane >}}
369370

370371

371-
## Print page
372+
### Print page
372373

373374
{{< tabpane text=true >}}
374375
{{< tab header="Java" >}}
@@ -387,7 +388,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
387388
{{< /tab >}}
388389
{{< /tabpane >}}
389390

390-
## Navigate back
391+
### Navigate back
391392

392393
{{< tabpane text=true >}}
393394
{{< tab header="Java" >}}
@@ -406,7 +407,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
406407
{{< /tab >}}
407408
{{< /tabpane >}}
408409

409-
## Navigate forward
410+
### Navigate forward
410411

411412
{{< tabpane text=true >}}
412413
{{< tab header="Java" >}}
@@ -425,7 +426,7 @@ Provides a tree of all browsing contexts descending from the parent browsing con
425426
{{< /tab >}}
426427
{{< /tabpane >}}
427428

428-
## Traverse history
429+
### Traverse history
429430

430431
{{< tabpane text=true >}}
431432
{{< tab header="Java" >}}
@@ -442,4 +443,156 @@ Provides a tree of all browsing contexts descending from the parent browsing con
442443
{{< tab header="Kotlin" >}}
443444
{{< badge-code >}}
444445
{{< /tab >}}
445-
{{< /tabpane >}}
446+
{{< /tabpane >}}
447+
448+
## Events
449+
This section contains the APIs related to browsing context events.
450+
451+
### Browsing Context Created Event
452+
453+
{{< tabpane text=true >}}
454+
{{< tab header="Java" >}}
455+
{{< badge-version version="4.10" >}}
456+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L34-L41" >}}
457+
{{< /tab >}}
458+
{{< tab header="Ruby" >}}
459+
{{< badge-code >}}
460+
{{< /tab >}}
461+
{{< tab header="JavaScript" >}}
462+
{{< badge-version version="4.9.2" >}}
463+
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#L24-L29" >}}
464+
{{< /tab >}}
465+
{{< tab header="Kotlin" >}}
466+
{{< badge-code >}}
467+
{{< /tab >}}
468+
{{< /tabpane >}}
469+
470+
### Dom Content loaded Event
471+
472+
{{< tabpane text=true >}}
473+
{{< tab header="Java" >}}
474+
{{< badge-version version="4.10" >}}
475+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L54-L63" >}}
476+
{{< /tab >}}
477+
{{< tab header="Ruby" >}}
478+
{{< badge-code >}}
479+
{{< /tab >}}
480+
{{< tab header="JavaScript" >}}
481+
{{< badge-version version="4.9.2" >}}
482+
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#L54-L63" >}}
483+
{{< /tab >}}
484+
{{< tab header="Kotlin" >}}
485+
{{< badge-code >}}
486+
{{< /tab >}}
487+
{{< /tabpane >}}
488+
489+
### Browsing Context Loaded Event
490+
491+
{{< tabpane text=true >}}
492+
{{< tab header="Java" >}}
493+
{{< badge-version version="4.10" >}}
494+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L81-88" >}}
495+
{{< /tab >}}
496+
{{< tab header="Ruby" >}}
497+
{{< badge-code >}}
498+
{{< /tab >}}
499+
{{< tab header="JavaScript" >}}
500+
{{< badge-version version="4.9.2" >}}
501+
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#L71-L79" >}}
502+
{{< /tab >}}
503+
{{< tab header="Kotlin" >}}
504+
{{< badge-code >}}
505+
{{< /tab >}}
506+
{{< /tabpane >}}
507+
508+
### Navigated Started Event
509+
510+
{{< tabpane text=true >}}
511+
{{< tab header="Java" >}}
512+
{{< badge-version version="4.15" >}}
513+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L97-104" >}}
514+
{{< /tab >}}
515+
{{< tab header="Ruby" >}}
516+
{{< badge-code >}}
517+
{{< /tab >}}
518+
{{< tab header="JavaScript" >}}
519+
{{< badge-code >}}
520+
{{< /tab >}}
521+
{{< tab header="Kotlin" >}}
522+
{{< badge-code >}}
523+
{{< /tab >}}
524+
{{< /tabpane >}}
525+
526+
### Fragment Navigated Event
527+
528+
{{< tabpane text=true >}}
529+
{{< tab header="Java" >}}
530+
{{< badge-version version="4.15" >}}
531+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L113-123" >}}
532+
{{< /tab >}}
533+
{{< tab header="Ruby" >}}
534+
{{< badge-code >}}
535+
{{< /tab >}}
536+
{{< tab header="JavaScript" >}}
537+
{{< badge-version version="4.15.0" >}}
538+
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#L87-L98" >}}
539+
{{< /tab >}}
540+
{{< tab header="Kotlin" >}}
541+
{{< badge-code >}}
542+
{{< /tab >}}
543+
{{< /tabpane >}}
544+
545+
### User Prompt Opened Event
546+
547+
{{< tabpane text=true >}}
548+
{{< tab header="Java" >}}
549+
{{< badge-version version="4.15" >}}
550+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L113-123" >}}
551+
{{< /tab >}}
552+
{{< tab header="Ruby" >}}
553+
{{< badge-code >}}
554+
{{< /tab >}}
555+
{{< tab header="JavaScript" >}}
556+
{{< badge-code >}}
557+
{{< /tab >}}
558+
{{< tab header="Kotlin" >}}
559+
{{< badge-code >}}
560+
{{< /tab >}}
561+
{{< /tabpane >}}
562+
563+
### User Prompt Closed Event
564+
565+
{{< tabpane text=true >}}
566+
{{< tab header="Java" >}}
567+
{{< badge-version version="4.15" >}}
568+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L150-163" >}}
569+
{{< /tab >}}
570+
{{< tab header="Ruby" >}}
571+
{{< badge-code >}}
572+
{{< /tab >}}
573+
{{< tab header="JavaScript" >}}
574+
{{< badge-code >}}
575+
{{< /tab >}}
576+
{{< tab header="Kotlin" >}}
577+
{{< badge-code >}}
578+
{{< /tab >}}
579+
{{< /tabpane >}}
580+
581+
### Browsing Context Destroyed Event
582+
583+
{{< tabpane text=true >}}
584+
{{< tab header="Java" >}}
585+
{{< badge-version version="4.18" >}}
586+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L170-L181" >}}
587+
{{< /tab >}}
588+
{{< tab header="Ruby" >}}
589+
{{< badge-code >}}
590+
{{< /tab >}}
591+
{{< tab header="JavaScript" >}}
592+
{{< badge-version version="4.18.0" >}}
593+
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#106-L114" >}}
594+
{{< /tab >}}
595+
{{< tab header="Kotlin" >}}
596+
{{< badge-code >}}
597+
{{< /tab >}}
598+
{{< /tabpane >}}

0 commit comments

Comments
 (0)