* Creates a new browser window and switches the focus for future * commands of this driver to the new window. * * @param {string} typeHint 'window' or 'tab'. The created window is not * guaranteed to be of the requested type; if the driver does not support * the requested type
(typeHint)
| 2601 | * when the driver has changed focus to the new window. |
| 2602 | */ |
| 2603 | newWindow(typeHint) { |
| 2604 | const driver = this.driver_ |
| 2605 | return this.driver_ |
| 2606 | .execute(new command.Command(command.Name.SWITCH_TO_NEW_WINDOW).setParameter('type', typeHint)) |
| 2607 | .then(function (response) { |
| 2608 | return driver.switchTo().window(response.handle) |
| 2609 | }) |
| 2610 | } |
| 2611 | |
| 2612 | /** |
| 2613 | * Changes focus to the active modal dialog, such as those opened by |
nothing calls this directly
no test coverage detected