Skip to content

Commit ea37db4

Browse files
committed
split parent and root window switching DSLs
1 parent 4f8d36d commit ea37db4

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

docs/04-dsl.mdx

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3699,7 +3699,7 @@ Since [v4.8.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.8.0)
36993699
```gherkin
37003700
I switch to child <tab|window> <occurrence>
37013701
```
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>
37033703
</summary>
37043704
<p>Where</p>
37053705
<ul>
@@ -3756,13 +3756,12 @@ Since [v4.8.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.8.0)
37563756
<summary class="dsl">
37573757

37583758
```gherkin
3759-
I switch to the <parent|root> <tab|window>
3759+
I switch to the parent <tab|window>
37603760
```
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>
37623762
</summary>
37633763
<p>Where</p>
37643764
<ul>
3765-
<li><code>&lt;parent|root&gt;</code> is either <code>parent</code> (or <code>root</code> since <Link to="https://github.com/gwen-interpreter/gwen-web/releases/tag/v2.49.0">v2.49.0</Link>)</li>
37663765
<li><code>&lt;tab|window&gt;</code> is either <code>tab</code> or <code>window</code></li>
37673766
</ul>
37683767
<p>Example</p>
@@ -3782,6 +3781,35 @@ Since [v4.8.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.8.0)
37823781
</div>
37833782
</details>
37843783

3784+
<details id="i-switch-to-the-root-tab-or-window">
3785+
<summary class="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>&lt;tab|window&gt;</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/"
3801+
And I click the new window button
3802+
And I switch to child window 1
3803+
And I switch to the root window
3804+
```
3805+
3806+
<div class="grid-3">
3807+
<div><Link to="#i-switch-to-the-root-tab-or-window">Link</Link></div>
3808+
<div align="center"></div>
3809+
<div align="right">Since <Link to="https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.14.0">v4.14.0</Link></div>
3810+
</div>
3811+
</details>
3812+
37853813
<details id="i-maximize-the-window">
37863814
<summary class="dsl">
37873815

0 commit comments

Comments
 (0)