strong textcheck(page, {
‘header’: page.locator(‘h2’).textContent() == ‘Welcome, admin!’,
});
Hi @igormelanoff, welcome to the community forum!
Please try with:
check(page, {
'header': (page) => page.locator('h2').textContent() == 'Welcome, admin!',
});
3 Likes