How to check if an element exists on the page in Playwright.js
await page.isVisible(“text=”Delete””) maybe this is the one you’re looking for. From the .isVisible() documentation: Returns whether the element is visible. selector that does not match any elements is considered not visible.