Sha256: d204a2dee3c7f79a7d97a807c9efdd9e2f04d699b74a30591469094147930578
Contents?: true
Size: 823 Bytes
Versions: 3
Compression:
Stored size: 823 Bytes
Contents
module Appium module Ios # @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 # Enable access to iOS accessibility label # accessibility identifier is supported as 'name' def label self.attribute('label') end # Cross platform way of entering text into a textfield def type text # type $driver.execute_script %(au.getElement('#{self.ref}').setValue('#{text}');) end # def type end # Selenium::WebDriver::Element.class_eval end # def patch_webdriver_element end # module Ios end # module Appium
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appium_lib-6.0.0 | lib/appium_lib/ios/patch.rb |
appium_lib-5.0.1 | lib/appium_lib/ios/patch.rb |
appium_lib-5.0.0 | lib/appium_lib/ios/patch.rb |