Module: Bewildr::ControlTypeAdditions::TreeItemAdditions

Defined in:
lib/bewildr/control_type_additions/tree_item_additions.rb

Instance Method Summary collapse

Instance Method Details

#child_nodesObject

Returns the tree item’s child nodes



7
8
9
# File 'lib/bewildr/control_type_additions/tree_item_additions.rb', line 7

def child_nodes
  get(:type => :tree_item, :scope => :children)
end

#clickable_pointObject

horrible, but necessary - clickable point for tree items doesn’t work like you think it would… I’ve added 7 to y and 22 to x… that’s working for now… this is hardly the ideal solution… To see what’s going on with the following code, take a look at a tree node under uispy - you’ll understand - a picture paints a thousand words and all that.



15
16
17
18
19
20
21
# File 'lib/bewildr/control_type_additions/tree_item_additions.rb', line 15

def clickable_point
  existence_check
  ae_top_left_point = @automation_element.current.bounding_rectangle.top_left
  ae_top_left_point.x += 22
  ae_top_left_point.y += 7
  ae_top_left_point
end