Sha256: 5941e346aa21e5b467715ad5e9fce7db8d37bdaefcacad2feb9afba6dbd874e0

Contents?: true

Size: 451 Bytes

Versions: 12

Compression:

Stored size: 451 Bytes

Contents

# encoding: utf-8
module Appium::Android
  # class_eval inside a method because class Selenium::WebDriver::Element
  # will trigger as soon as the file is required. in contrast a method
  # will trigger only when invoked.
  def patch_webdriver_element
      Selenium::WebDriver::Element.class_eval do
        # Cross platform way of entering text into a textfield
        def type text
          self.send_keys text
        end
      end
    end
  end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
appium_lib-0.3.16 lib/appium_lib/android/patch.rb
appium_lib-0.3.15 lib/appium_lib/android/patch.rb
appium_lib-0.3.14 lib/appium_lib/android/patch.rb
appium_lib-0.3.13 lib/appium_lib/android/patch.rb
appium_lib-0.3.12 lib/appium_lib/android/patch.rb
appium_lib-0.3.11 lib/appium_lib/android/patch.rb
appium_lib-0.3.10 lib/appium_lib/android/patch.rb
appium_lib-0.3.9 lib/appium_lib/android/patch.rb
appium_lib-0.3.8 lib/appium_lib/android/patch.rb
appium_lib-0.3.7 lib/appium_lib/android/patch.rb
appium_lib-0.3.5 lib/appium_lib/android/patch.rb
appium_lib-0.3.4 lib/appium_lib/android/patch.rb