lib/appium_lib/android/patch.rb in appium_lib-0.24.1 vs lib/appium_lib/android/patch.rb in appium_lib-1.0.0
- old
+ new
@@ -1,15 +1,16 @@
-# encoding: utf-8
-module Appium::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
+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
+ end # Android
+end # Appium
\ No newline at end of file