class Ferrum::Keyboard
def type(*keys)
-
(self)
-
Parameters:
-
keys
(Array
) --
def type(*keys) keys = normalize_keys(Array(keys)) keys.each do |key| type = key[:text] ? "keyDown" : "rawKeyDown" @page.command("Input.dispatchKeyEvent", type: type, **key) @page.command("Input.dispatchKeyEvent", slowmoable: true, type: "keyUp", **key) end self end