newWindow
Open new window in browser. 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.
Usage
1 | browser.newWindow(url,windowName,windowFeatures); |
Parameters
Param | Type | Details |
---|---|---|
url | String | website URL to open |
windowName | String | name of the new window |
windowFeatures | String | features of opened window (e.g. size, position, scrollbars, etc.) |
Example
1 | it('should open a new tab', function () { |