files/en-us/web/webdriver/reference/classic/commands/newwindow/index.md
The New Window command of the WebDriver API opens a new top-level browsing context of type window or tab, and returns with a dictionary containing the handle of the new WebWindow and its created type. If the requested type cannot be created by the browser, the alternative type will be tried to create.
| Method | URI template |
|---|---|
POST | /session/{session id}/window/new |
session id
The input is an object:
type
The response payload is an object:
window has been closed.window.alert, blocks execution of command until it is dealt with.{{Specifications}}
{{Compat}}