newWindow
Open new window or tab in browser (defaults to a new window if not specified).
This command is the equivalent function to window.open()
. This command does not work in mobile environments.
Note: When calling this command you automatically switch to the new window or tab.
Usage
browser.newWindow(url, { type, windowName, windowFeatures })