mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

These methods are useful for verification in tests, e.g. ```js expect(await page.isEnabled(':text("Remove All")')).toBe(false); await page.click(':text("Add Item")'); expect(await page.isVisible('.item:text("new item")')).toBe(true); expect(await page.isEnabled(':text("Remove All")')).toBe(true); ```