lib/puppeteer/keyboard.rb in puppeteer-ruby-0.0.16 vs lib/puppeteer/keyboard.rb in puppeteer-ruby-0.0.17

- old
+ new

@@ -147,12 +147,13 @@ end define_async_method :async_type_text # @param key [String] + # @param text [String] # @return [Future] - def press(key, delay: nil) - down(key) + def press(key, delay: nil, text: nil) + down(key, text: text) if delay sleep(delay.to_i / 1000.0) end up(key) end