mcp-playwright
mcp-playwright copied to clipboard
playwright_evaluate does not failed on fail
{
"script": "async () => { const bodyText = await page.textContent('body'); if (bodyText.includes('Invalid username or password')) { throw new Error('Login failed'); }}"
}
Execution result:
undefined
Console output:
By The Way, How to decide whether to retry or fail using MCP