Sha256: 95a9451684b97ede85d3e7268fe598615c15fd0b912444844f17b336cf01b17b
Contents?: true
Size: 815 Bytes
Versions: 7
Compression:
Stored size: 815 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 attribute('label') end # Cross platform way of entering text into a textfield def type(text) # type $driver.execute_script %(au.getElement('#{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
7 entries across 7 versions & 1 rubygems