You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/04-dsl.mdx
+32-4Lines changed: 32 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3699,7 +3699,7 @@ Since [v4.8.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.8.0)
3699
3699
```gherkin
3700
3700
I switch to child <tab|window> <occurrence>
3701
3701
```
3702
-
<p>Switches to a child tab or window occurrence (without closing the parent window).</p>
3702
+
<p>Switches to a child tab or window occurrence (without closing the parent window) or reports and error if there is no child window.</p>
3703
3703
</summary>
3704
3704
<p>Where</p>
3705
3705
<ul>
@@ -3756,13 +3756,12 @@ Since [v4.8.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.8.0)
3756
3756
<summaryclass="dsl">
3757
3757
3758
3758
```gherkin
3759
-
I switch to the <parent|root> <tab|window>
3759
+
I switch to the parent <tab|window>
3760
3760
```
3761
-
<p>Switches to the parent window (without closing the currently active child window).</p>
3761
+
<p>Switches to the parent window of the currently active window (without closing the currently active window) or stays on the root window if there is no other window open.</p>
3762
3762
</summary>
3763
3763
<p>Where</p>
3764
3764
<ul>
3765
-
<li><code><parent|root></code> is either <code>parent</code> (or <code>root</code> since <Linkto="https://github.com/gwen-interpreter/gwen-web/releases/tag/v2.49.0">v2.49.0</Link>)</li>
3766
3765
<li><code><tab|window></code> is either <code>tab</code> or <code>window</code></li>
3767
3766
</ul>
3768
3767
<p>Example</p>
@@ -3782,6 +3781,35 @@ Since [v4.8.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.8.0)
3782
3781
</div>
3783
3782
</details>
3784
3783
3784
+
<detailsid="i-switch-to-the-root-tab-or-window">
3785
+
<summaryclass="dsl">
3786
+
3787
+
```gherkin
3788
+
I switch to the root <tab|window>
3789
+
```
3790
+
<p>Switches to the topmost parent window (without closing the currently active window) or stays on the current window if it is the root window.</p>
3791
+
</summary>
3792
+
<p>Where</p>
3793
+
<ul>
3794
+
<li><code><tab|window></code> is either <code>tab</code> or <code>window</code></li>
3795
+
</ul>
3796
+
<p>Example</p>
3797
+
3798
+
```gherkin {5}
3799
+
Given the new window button can be located by name "newbrowserwindow123"
3800
+
When I navigate to "https://nxtgenaiacademy.com/multiplewindows/"
0 commit comments