Skip to content

Commit 01b3b90

Browse files
committed
feat: add switchToTab
1 parent 875a660 commit 01b3b90

File tree

4 files changed

+284
-191
lines changed

4 files changed

+284
-191
lines changed

docs/helpers/Playwright.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,6 +2335,19 @@ I.switchToPreviousTab(2);
23352335

23362336
* `num` **[number][20]**
23372337

2338+
### switchToTab
2339+
2340+
Switch focus to a particular tab by its number. It waits tabs loading and then switch tab
2341+
2342+
```js
2343+
I.switchToTab(2);
2344+
```
2345+
2346+
#### Parameters
2347+
2348+
* `num`  
2349+
* `number`  
2350+
23382351
### type
23392352

23402353
Types out the given text into an active field.

0 commit comments

Comments
 (0)