Class: RAutomation::Adapter::MsUia::TabControl::TabItem
- Inherits:
-
Object
- Object
- RAutomation::Adapter::MsUia::TabControl::TabItem
- Defined in:
- lib/rautomation/adapter/ms_uia/tab_control.rb
Instance Attribute Summary collapse
-
#index
readonly
Returns the value of attribute index.
-
#text
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(tab_control, text, index) ⇒ TabItem
constructor
A new instance of TabItem.
- #select
- #selected? ⇒ Boolean
Constructor Details
#initialize(tab_control, text, index) ⇒ TabItem
Returns a new instance of TabItem.
9 10 11 |
# File 'lib/rautomation/adapter/ms_uia/tab_control.rb', line 9 def initialize(tab_control, text, index) @tab_control, @text, @index = tab_control, text, index end |
Instance Attribute Details
#index (readonly)
Returns the value of attribute index.
7 8 9 |
# File 'lib/rautomation/adapter/ms_uia/tab_control.rb', line 7 def index @index end |
#text (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/rautomation/adapter/ms_uia/tab_control.rb', line 7 def text @text end |
Instance Method Details
#select
13 14 15 |
# File 'lib/rautomation/adapter/ms_uia/tab_control.rb', line 13 def select UiaDll::select_tab(@tab_control.search_information, index) end |
#selected? ⇒ Boolean
17 18 19 |
# File 'lib/rautomation/adapter/ms_uia/tab_control.rb', line 17 def selected? @index == UiaDll::tab_control_selected_index(@tab_control.search_information) end |