Sha256: 78ac77e690072cd4905ddd3310101871c11a6f3b380cb5d137768fef5c3aeccc

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 Bytes

Contents

# encoding: utf-8
module Appium::Ios
  # Implement useful features for element.
  class Selenium::WebDriver::Element
    # Cross platform way of entering text into a textfield
    def type text
      # enter text then tap window to hide the keyboard.
      js = %Q(
      au.getElement('#{self.ref}').setValue('#{text}');
      au.lookup('window')[0].tap()
    )
      @driver.execute_script js
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
appium_lib-0.3.3 lib/appium_lib/ios/patch.rb
appium_lib-0.3.2 lib/appium_lib/ios/patch.rb
appium_lib-0.3.1 lib/appium_lib/ios/patch.rb
appium_lib-0.3.0 lib/appium_lib/ios/patch.rb