* 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)
| 2475 | * when the driver has changed focus to the new window. |
| 2476 | */ |
| 2477 | newWindow(typeHint) { |
| 2478 | const driver = this.driver_ |
| 2479 | return this.driver_ |
| 2480 | .execute(new command.Command(command.Name.SWITCH_TO_NEW_WINDOW).setParameter('type', typeHint)) |
| 2481 | .then(function (response) { |
| 2482 | return driver.switchTo().window(response.handle) |
| 2483 | }) |
| 2484 | } |
| 2485 | |
| 2486 | /** |
| 2487 | * Changes focus to the active modal dialog, such as those opened by |
nothing calls this directly
no test coverage detected