Method: Playwright::Keyboard#insert_text

Defined in:
lib/playwright_api/keyboard.rb

#insert_text(text) ⇒ Object

Dispatches only ‘input` event, does not emit the `keydown`, `keyup` or `keypress` events.

Usage

“‘python sync page.keyboard.insert_text(“嗨”) “`

NOTE: Modifier keys DO NOT effect ‘keyboard.insertText`. Holding down `Shift` will not type the text in upper case.



78
79
80
# File 'lib/playwright_api/keyboard.rb', line 78

def insert_text(text)
  wrap_impl(@impl.insert_text(unwrap_impl(text)))
end