Ultimate

X_E2E_LOCATOR_EMPTY

Means

an e2e locator matched no element

Typical cause

resolved lazily, so this is raised at the question, not at construction — the selector, role or text is quoted back as the call that was written

Fix

print what the page actually rendered: await page.evaluate(() => document.body.innerHTML), then narrow or correct the locator call the cause quotes back

Listed under Testing

This page as markdown