Keyboard Type
page.keyboard.type(text) types text character by character. Unlike fill(), this simulates real keystroke events.
Task:
- Navigate to
https://testkru.com/Elements/TextFields - Click on the
#lastNameWithPlaceholderfield to focus it - Type the word Hello with
page.keyboard.type(), which sends one key event per character - Print the field value
Expected output:
Typed: Hello
TestKru