Sha256: e9c0aea28a7c1a4ddf9382bcf62dd0cb81d5e2b7aa5895d984a549cafe99fb73

Contents?: true

Size: 487 Bytes

Versions: 12

Compression:

Stored size: 487 Bytes

Contents

module Appium
  module Android
    # @private
    # 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 # Android
end # Appium

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
appium_lib-6.0.0 lib/appium_lib/android/patch.rb
appium_lib-5.0.1 lib/appium_lib/android/patch.rb
appium_lib-5.0.0 lib/appium_lib/android/patch.rb
appium_lib-4.1.0 lib/appium_lib/android/patch.rb
appium_lib-4.0.0 lib/appium_lib/android/patch.rb
appium_lib-3.0.3 lib/appium_lib/android/patch.rb
appium_lib-3.0.2 lib/appium_lib/android/patch.rb
appium_lib-3.0.1 lib/appium_lib/android/patch.rb
appium_lib-3.0.0 lib/appium_lib/android/patch.rb
appium_lib-2.1.0 lib/appium_lib/android/patch.rb
appium_lib-2.0.0 lib/appium_lib/android/patch.rb
appium_lib-1.0.0 lib/appium_lib/android/patch.rb