Real users don’t do everything with a mouse. Keyboard navigation is an important part of any test scenario.
In Playwright, press('Tab') moves focus between fields and press('Enter') submits the form. The goal of this mission: fill the fields and submit the form using the keyboard.
The page object is already available. A “Submitted!” message will appear when the form is submitted successfully.
Clicking the submit button also works — Playwright accepts any correct path.