Method: Selenium::WebDriver::Interactions::KeyInput::TypingInteraction#initialize
- Defined in:
- lib/selenium/webdriver/common/interactions/key_input.rb
#initialize(source, type, key) ⇒ TypingInteraction
Returns a new instance of TypingInteraction.
46 47 48 49 50 |
# File 'lib/selenium/webdriver/common/interactions/key_input.rb', line 46 def initialize(source, type, key) super(source) @type = assert_type(type) @key = Keys.encode_key(key) end |