Alterne para a janela no testcafe

await t.switchToWindow(w => w.title === 'Example Domain' && w.url.host === 'example.com');
Annoyed Anteater