Class: RAutomation::Adapter::MsUia::Label
- Includes:
- Locators, WaitHelper
- Defined in:
- lib/rautomation/adapter/ms_uia/label.rb
Instance Method Summary collapse
- #exist? ⇒ Boolean (also: #exists?)
-
#value
todo - replace with UIA version.
Methods inherited from Control
#assert_enabled, #bounding_rectangle, #click, #control_class, #control_name, #disabled?, #enabled?, #focus, #focused?, #get_current_control_type, #hwnd, #initialize, #matches_type?, #new_pid, #uia_element, #visible?
Constructor Details
This class inherits a constructor from RAutomation::Adapter::MsUia::Control
Instance Method Details
#exist? ⇒ Boolean Also known as: exists?
13 14 15 |
# File 'lib/rautomation/adapter/ms_uia/label.rb', line 13 def exist? super && matches_type?(Constants::UIA_TEXT_CONTROL_TYPE) end |
#value
todo - replace with UIA version
9 10 11 |
# File 'lib/rautomation/adapter/ms_uia/label.rb', line 9 def value Functions.control_value(Functions.control_hwnd(@window.hwnd, @locators)) end |