File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -9397,3 +9397,58 @@ Since [v4.8.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.8.0)
93979397 <div align = " right" >Since <Link to = " https://github.com/gwen-interpreter/gwen-web/releases/tag/v3.75.0" >v3.75.0</Link ></div >
93989398 </div >
93999399</details >
9400+
9401+ <details id = " step-if-1-open-tab-or-window" >
9402+ <summary class = " dsl" >
9403+
9404+ ``` gherkin
9405+ <step> if there is 1 open <tab|window>
9406+ ```
9407+ <p >Executes a step if there is 1 open tab or window.</p >
9408+ </summary >
9409+ <p >Where</p >
9410+ <ul >
9411+ <li ><code >< ; tab|window> ; </code > is either <code >tab</code > or <code >window</code ></li >
9412+ </ul >
9413+ <p >Examples</p >
9414+
9415+ ``` gherkin {2}
9416+ When I navigate to "https://google.com"
9417+ Then call step 1 if there is 1 open window
9418+ ```
9419+
9420+ <div class = " grid-3" >
9421+ <div ><Link to = " #step-if-1-open-tab-or-window" >Link</Link ></div >
9422+ <div align = " center" ></div >
9423+ <div align = " right" >Since <Link to = " https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.15.0" >v4.15.0</Link ></div >
9424+ </div >
9425+ </details >
9426+
9427+
9428+ <details id = " step-if-n-open-tab-or-window" >
9429+ <summary class = " dsl" >
9430+
9431+ ``` gherkin
9432+ <step> if there are <count> open <tab|window>s
9433+ ```
9434+ <p >Executes a step if the given number of tabs/windows are open.</p >
9435+ </summary >
9436+ <p >Where</p >
9437+ <ul >
9438+ <li ><code >< ; count> ; </code > is the number of open tabs/windows to check</li >
9439+ <li ><code >< ; tab|window> ; </code > is either <code >tab</code > or <code >window</code ></li >
9440+ </ul >
9441+ <p >Examples</p >
9442+
9443+ ``` gherkin {3}
9444+ When I navigate to "https://google.com"
9445+ And I start a new browser tab
9446+ Then call step 1 if there are 2 open windows
9447+ ```
9448+
9449+ <div class = " grid-3" >
9450+ <div ><Link to = " #step-if-n-open-tab-or-window" >Link</Link ></div >
9451+ <div align = " center" ></div >
9452+ <div align = " right" >Since <Link to = " https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.15.0" >v4.15.0</Link ></div >
9453+ </div >
9454+ </details >
You can’t perform that action at this time.
0 commit comments