Class: RAutomation::Adapter::WinFfi::Label

Inherits:
Control
  • Object
show all
Includes:
WaitHelper
Defined in:
lib/rautomation/adapter/win_ffi/label.rb

Instance Method Summary collapse

Methods inherited from Control

#assert_enabled, #click, #disabled?, #enabled?, #has_focus?, #initialize, #matches_type, #set_focus, #uia_control

Constructor Details

This class inherits a constructor from RAutomation::Adapter::WinFfi::Control

Instance Method Details

#exist?Boolean Also known as: exists?

Returns:

  • (Boolean)


12
13
14
# File 'lib/rautomation/adapter/win_ffi/label.rb', line 12

def exist?
  @locators[:id].nil? ? super : super && matches_type(Constants::UIA_LABEL_CONTROL_TYPE)
end

#value



8
9
10
# File 'lib/rautomation/adapter/win_ffi/label.rb', line 8

def value
  Functions.control_value(Functions.control_hwnd(@window.hwnd, @locators))
end