mcp-playwright icon indicating copy to clipboard operation
mcp-playwright copied to clipboard

playwright_evaluate does not failed on fail

Open nkuacac opened this issue 8 months ago • 0 comments

{
  "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

nkuacac avatar Mar 24 '25 02:03 nkuacac