Skip to content

Commit 8d94a30

Browse files
Add more examples
1 parent fcf23f0 commit 8d94a30

19 files changed

Lines changed: 595 additions & 79 deletions

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

Lines changed: 77 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,52 @@ Provides a tree of all browsing contexts descending from the parent browsing con
486486
{{< /tab >}}
487487
{{< /tabpane >}}
488488

489+
### Locate nodes
490+
491+
{{< tabpane text=true >}}
492+
{{< tab header="Java" >}}
493+
{{< badge-version version="4.17" >}}
494+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LocateNodesTest.java#L46-L53" >}}
495+
{{< /tab >}}
496+
{{< tab header="Ruby" >}}
497+
{{< badge-version version="4.17" >}}
498+
{{< gh-codeblock path="/examples/ruby/spec/bidi/locate_nodes_spec.rb#L9-17" >}}
499+
{{< /tab >}}
500+
{{< tab header="JavaScript" >}}
501+
{{< badge-code >}}
502+
{{< /tab >}}
503+
{{< tab header="Python" >}}
504+
{{< badge-version version="4.17" >}}
505+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_locate_nodes.py#L5-13" >}}
506+
{{< /tab >}}
507+
{{< tab header="Kotlin" >}}
508+
{{< badge-code >}}
509+
{{< /tab >}}
510+
{{< /tabpane >}}
511+
512+
### Locate nodes with start nodes
513+
514+
{{< tabpane text=true >}}
515+
{{< tab header="Java" >}}
516+
{{< badge-version version="4.17" >}}
517+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LocateNodesTest.java#L107-113" >}}
518+
{{< /tab >}}
519+
{{< tab header="Ruby" >}}
520+
{{< badge-version version="4.17" >}}
521+
{{< gh-codeblock path="/examples/ruby/spec/bidi/locate_nodes_spec.rb#L45-56" >}}
522+
{{< /tab >}}
523+
{{< tab header="JavaScript" >}}
524+
{{< badge-code >}}
525+
{{< /tab >}}
526+
{{< tab header="Python" >}}
527+
{{< badge-version version="4.17" >}}
528+
{{< gh-codeblock path="/examples/python/tests/bidi/test_bidi_locate_nodes.py#L29-41" >}}
529+
{{< /tab >}}
530+
{{< tab header="Kotlin" >}}
531+
{{< badge-code >}}
532+
{{< /tab >}}
533+
{{< /tabpane >}}
534+
489535
## Events
490536
This section contains the APIs related to browsing context events.
491537

@@ -503,6 +549,9 @@ This section contains the APIs related to browsing context events.
503549
{{< badge-version version="4.9.2" >}}
504550
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#L23-L28" >}}
505551
{{< /tab >}}
552+
{{< tab header="Python" >}}
553+
{{< badge-code >}}
554+
{{< /tab >}}
506555
{{< tab header="Kotlin" >}}
507556
{{< badge-code >}}
508557
{{< /tab >}}
@@ -513,7 +562,7 @@ This section contains the APIs related to browsing context events.
513562
{{< tabpane text=true >}}
514563
{{< tab header="Java" >}}
515564
{{< badge-version version="4.10" >}}
516-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L54-L63" >}}
565+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L65-L75" >}}
517566
{{< /tab >}}
518567
{{< tab header="Ruby" >}}
519568
{{< badge-code >}}
@@ -522,6 +571,9 @@ This section contains the APIs related to browsing context events.
522571
{{< badge-version version="4.9.2" >}}
523572
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#L53-L62" >}}
524573
{{< /tab >}}
574+
{{< tab header="Python" >}}
575+
{{< badge-code >}}
576+
{{< /tab >}}
525577
{{< tab header="Kotlin" >}}
526578
{{< badge-code >}}
527579
{{< /tab >}}
@@ -532,7 +584,7 @@ This section contains the APIs related to browsing context events.
532584
{{< tabpane text=true >}}
533585
{{< tab header="Java" >}}
534586
{{< badge-version version="4.10" >}}
535-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L81-88" >}}
587+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L81-L91" >}}
536588
{{< /tab >}}
537589
{{< tab header="Ruby" >}}
538590
{{< badge-code >}}
@@ -541,6 +593,9 @@ This section contains the APIs related to browsing context events.
541593
{{< badge-version version="4.9.2" >}}
542594
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#L70-L78" >}}
543595
{{< /tab >}}
596+
{{< tab header="Python" >}}
597+
{{< badge-code >}}
598+
{{< /tab >}}
544599
{{< tab header="Kotlin" >}}
545600
{{< badge-code >}}
546601
{{< /tab >}}
@@ -551,14 +606,17 @@ This section contains the APIs related to browsing context events.
551606
{{< tabpane text=true >}}
552607
{{< tab header="Java" >}}
553608
{{< badge-version version="4.15" >}}
554-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L97-104" >}}
609+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L97-L107" >}}
555610
{{< /tab >}}
556611
{{< tab header="Ruby" >}}
557612
{{< badge-code >}}
558613
{{< /tab >}}
559614
{{< tab header="JavaScript" >}}
560615
{{< badge-code >}}
561616
{{< /tab >}}
617+
{{< tab header="Python" >}}
618+
{{< badge-code >}}
619+
{{< /tab >}}
562620
{{< tab header="Kotlin" >}}
563621
{{< badge-code >}}
564622
{{< /tab >}}
@@ -569,7 +627,7 @@ This section contains the APIs related to browsing context events.
569627
{{< tabpane text=true >}}
570628
{{< tab header="Java" >}}
571629
{{< badge-version version="4.15" >}}
572-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L113-123" >}}
630+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L113-L126" >}}
573631
{{< /tab >}}
574632
{{< tab header="Ruby" >}}
575633
{{< badge-code >}}
@@ -578,6 +636,9 @@ This section contains the APIs related to browsing context events.
578636
{{< badge-version version="4.15.0" >}}
579637
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#L86-L97" >}}
580638
{{< /tab >}}
639+
{{< tab header="Python" >}}
640+
{{< badge-code >}}
641+
{{< /tab >}}
581642
{{< tab header="Kotlin" >}}
582643
{{< badge-code >}}
583644
{{< /tab >}}
@@ -588,14 +649,17 @@ This section contains the APIs related to browsing context events.
588649
{{< tabpane text=true >}}
589650
{{< tab header="Java" >}}
590651
{{< badge-version version="4.15" >}}
591-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L113-123" >}}
652+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L132-L144" >}}
592653
{{< /tab >}}
593654
{{< tab header="Ruby" >}}
594655
{{< badge-code >}}
595656
{{< /tab >}}
596657
{{< tab header="JavaScript" >}}
597658
{{< badge-code >}}
598659
{{< /tab >}}
660+
{{< tab header="Python" >}}
661+
{{< badge-code >}}
662+
{{< /tab >}}
599663
{{< tab header="Kotlin" >}}
600664
{{< badge-code >}}
601665
{{< /tab >}}
@@ -606,14 +670,17 @@ This section contains the APIs related to browsing context events.
606670
{{< tabpane text=true >}}
607671
{{< tab header="Java" >}}
608672
{{< badge-version version="4.15" >}}
609-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L150-163" >}}
673+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L150-L164" >}}
610674
{{< /tab >}}
611675
{{< tab header="Ruby" >}}
612676
{{< badge-code >}}
613677
{{< /tab >}}
614678
{{< tab header="JavaScript" >}}
615679
{{< badge-code >}}
616680
{{< /tab >}}
681+
{{< tab header="Python" >}}
682+
{{< badge-code >}}
683+
{{< /tab >}}
617684
{{< tab header="Kotlin" >}}
618685
{{< badge-code >}}
619686
{{< /tab >}}
@@ -624,7 +691,7 @@ This section contains the APIs related to browsing context events.
624691
{{< tabpane text=true >}}
625692
{{< tab header="Java" >}}
626693
{{< badge-version version="4.18" >}}
627-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L170-L181" >}}
694+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L170-L183" >}}
628695
{{< /tab >}}
629696
{{< tab header="Ruby" >}}
630697
{{< badge-code >}}
@@ -633,6 +700,9 @@ This section contains the APIs related to browsing context events.
633700
{{< badge-version version="4.18.0" >}}
634701
{{< gh-codeblock path="/examples/javascript/test/bidirectional/browsingContextInspector.spec.js#L105-L113" >}}
635702
{{< /tab >}}
703+
{{< tab header="Python" >}}
704+
{{< badge-code >}}
705+
{{< /tab >}}
636706
{{< tab header="Kotlin" >}}
637707
{{< badge-code >}}
638708
{{< /tab >}}

0 commit comments

Comments
 (0)