One of Playwright’s most powerful features is this: action methods like click(), fill(), and check() automatically wait for the element to be visible, enabled, and ready for interaction before performing the operation. You never need to write an extra waitFor* call.
This mechanism is called actionability checking — Playwright only executes the action once the element is ready.
page is available. In the browser on the right there is a Confirm button. Simply click it — no waiting code required.