* Close current tab and switches to previous. * * ```js * I.closeCurrentTab(); * ```
()
| 1141 | * ``` |
| 1142 | */ |
| 1143 | async closeCurrentTab() { |
| 1144 | const oldPage = this.page |
| 1145 | await this.switchToPreviousTab() |
| 1146 | await oldPage.close() |
| 1147 | return this._waitForAction() |
| 1148 | } |
| 1149 | |
| 1150 | /** |
| 1151 | * Close all tabs except for the current one. |
no test coverage detected