@serenity-is/corelib / windowOpen
Function: windowOpen()
windowOpen(
url?,target?,features?):Window
Defined in: src/base/services.ts:82
Opens an address in a new window or tab.
Applications should open addresses through this function instead of calling
window.open directly, so tests can replace it: jsdom does not implement it,
and it cannot always be spied on.
Parameters
url?
The address.
string | URL
target?
string
Where to open it, _blank for a new tab.
features?
string
The features of the new window, e.g. noopener.
Returns
Window
The new window, or null when the browser blocked it.