class RAutomation::Adapter::MsUia::TextField
Constants
- DEFAULT_LOCATORS
Default locators used for searching text fields.
Public Instance Methods
clear()
click to toggle source
@see RAutomation::TextField#clear
# File lib/rautomation/adapter/ms_uia/text_field.rb, line 19 def clear raise "Cannot set value on a disabled text field" if disabled? set "" end
exist?()
click to toggle source
Calls superclass method
RAutomation::Adapter::MsUia::Control#exist?
# File lib/rautomation/adapter/ms_uia/text_field.rb, line 30 def exist? super && matches_type?(Constants::UIA_EDIT_CONTROL_TYPE, Constants::UIA_DOCUMENT_CONTROL_TYPE) end
Also aliased as: exists?
set(text)
click to toggle source
todo - replace with UIA version
@see RAutomation::TextField#set
# File lib/rautomation/adapter/ms_uia/text_field.rb, line 13 def set(text) raise "Cannot set value on a disabled text field" if disabled? UiaDll::set_text(search_information, text) end
value()
click to toggle source
todo - replace with UIA version
@see RAutomation::TextField#value
# File lib/rautomation/adapter/ms_uia/text_field.rb, line 26 def value UiaDll::get_text(search_information) end