Class: RAutomation::Adapter::Win32::Table

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

Constant Summary collapse

DEFAULT_LOCATORS =

Default locators used for searching buttons.

{:class => /syslistview/i}

Instance Method Summary collapse

Methods inherited from Control

#class_name, #click, #disabled?, #enabled?, #exist?, #focus, #focused?, #hwnd, #initialize, #value

Constructor Details

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

Instance Method Details

#select(row)



11
12
13
# File 'lib/rautomation/adapter/win_32/table.rb', line 11

def select(row)
  Functions.select_table_row(Window.oleacc_module_handle, Functions.control_hwnd(@window.hwnd, @locators), row)
end

#selected?(row) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
18
19
20
21
# File 'lib/rautomation/adapter/win_32/table.rb', line 15

def selected?(row)
  handle = Window.oleacc_module_handle
  control_hwnd = Functions.control_hwnd(@window.hwnd, @locators)

  state = Functions.get_table_row_state(handle, control_hwnd, row)
  state & Constants::STATE_SYSTEM_SELECTED != 0
end