Sha256: 83f83cfe0c6223d4ac68b29d36ca07d6f6b8334896ffa6591acfe403e93fe469
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
module RAutomation module Adapter module MsUia class TextField < Control include WaitHelper include Locators # Default locators used for searching text fields. DEFAULT_LOCATORS = {:class => /edit/i} #todo - replace with UIA version # @see RAutomation::TextField#set def set(text) raise "Cannot set value on a disabled text field" if disabled? UiaDll::set_control_value(search_information, text) end # @see RAutomation::TextField#clear def clear raise "Cannot set value on a disabled text field" if disabled? set "" end #todo - replace with UIA version # @see RAutomation::TextField#value def value UiaDll::get_control_value(search_information) end def exist? super && matches_type?(Constants::UIA_EDIT_CONTROL_TYPE, Constants::UIA_DOCUMENT_CONTROL_TYPE) end alias_method :exists?, :exist? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rautomation-0.9.1 | lib/rautomation/adapter/ms_uia/text_field.rb |