t.openWindow Method

Opens a new browser window. Returns the matching window descriptor and Chainable.

t.openWindow( url ) → this | Promise<unknown>
Parameter Type Description
url String The URL to open. Can be absolute or relative.

Example:

fixture`TestController.openWindow`
    .page`https://www.example.com/`;

test('Open the TestCafe website', async t => {
    await t
        .openWindow('https://devexpress.github.io/testcafe')
        .openWindow('./documentation');
});