123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::Interactions::KeyInput Private

Do not use. This class is for internal use only.
Relationships & Source Files
Namespace Children
Classes:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, InputDevice
Instance Chain:
self, InputDevice
Inherits: Selenium::WebDriver::Interactions::InputDevice
Defined in: rb/lib/selenium/webdriver/common/interactions/key_input.rb

Overview

Creates actions specific to Key Input devices

Constant Summary

Class Method Summary

InputDevice - Inherited

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(name = nil) ⇒ KeyInput

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/key_input.rb', line 32

def initialize(name = nil)
  super
  @type = Interactions::KEY
end

Instance Method Details

#create_key_down(key)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/key_input.rb', line 37

def create_key_down(key)
  add_action(TypingInteraction.new(self, :down, key))
end

#create_key_up(key)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/key_input.rb', line 41

def create_key_up(key)
  add_action(TypingInteraction.new(self, :up, key))
end