t.openWindow method

Opens a new browser window. Returns the matching window descriptor and can be chained with other TestController methods.

t.openWindow( url )  Object
Parameter Type Description
url String The URL to open. Can be absolute or relative.


import { Selector } from 'testcafe';

fixture `Example page`
    .page `http://www.example.com/`;

test('Open the TestCafe website', async t => {
    await t